tetragon
tetragon copied to clipboard
helm: Template CRDs directly to get standard k8s labels
So far CRDs were included in the Helm chart like this:
- Copy into crds-yaml directory
- Concatenate in a template using .Files.Get
With such approach, Helm doesn't add standard k8s "app.kubernetes.io/*" labels (e.g. version, managed-by) to CRDs like it does for other resources. Having these labels is useful from the operational perspective, so this commit changes how CRDs are included in the Helm chart. It now works like this:
- Copy inside the templates directory
- Wrap each CRD in an if block to check if it should be included