Skip to content

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