Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Helm CRD template sanitization to fix YAML parsing for Linkerd #654

Merged

Conversation

souvikinator
Copy link
Contributor

Description

This PR fixes #

Notes for Reviewers

Changes:

  • Implemented RemoveHelmPlaceholders to handle templated CRD files (before: Helm templates breaking YAML parsing)
  • Updated LoadHelmChart to search entire chart directory for CRDs (before: only look for crd/ dir)
  • Handles Helm template expressions while maintaining valid YAML structure

This change allows the model generator to process CRDs from Helm charts that use templating, avoiding parse errors while maintaining a valid YAML structure.

Tests:

  • Tested with Linkerd CRD chart
  • Verified YAML validity after template removal
  • Checked component generation with sanitized CRDs

image

Signed commits

  • Yes, I signed my commits.

Signed-off-by: Souvik Kar Mahapatra <[email protected]>
Signed-off-by: Souvik Kar Mahapatra <[email protected]>
Signed-off-by: Souvik Kar Mahapatra <[email protected]>
@leecalcote leecalcote merged commit b85d51c into meshery:master Jan 26, 2025
2 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants