Skip to content

Conversation

@ljluestc
Copy link

This PR fixes an issue where upstream CRDs containing Go template syntax (e.g., {{ .cluster.name }} in descriptions) caused Helm templating errors during installation.

Changes:

  • Modified pkg/processor/crd/crd.go to escape all occurrences of {{ and }} in the CRD spec to {{ "{{" }} and {{ "}}" }}.
  • Added regression test in pkg/processor/crd/crd_test.go.

Fixes: #142

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.

1 participant