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

helm: Add extensions templates #1846

Merged
merged 1 commit into from
Dec 15, 2023

Conversation

lambdanis
Copy link
Contributor

@lambdanis lambdanis commented Dec 5, 2023

The goal is to make it easy to build custom distributions of Tetragon Helm chart.

@lambdanis lambdanis changed the title Pr/lambdanis/helm extensions helm: Add extensions templates Dec 5, 2023
@lambdanis lambdanis added area/helm Related to the Helm chart release-note/misc This PR makes changes that have no direct user impact. labels Dec 5, 2023
The goal is to make it easy to build custom distributions of Tetragon Helm
chart.

Signed-off-by: Anna Kapuscinska <anna@isovalent.com>
@lambdanis lambdanis marked this pull request as ready for review December 12, 2023 12:59
@lambdanis lambdanis requested a review from a team as a code owner December 12, 2023 12:59
@@ -51,6 +51,7 @@
mountPath: {{ .mountPath }}
readOnly: {{ .readOnly }}
{{- end }}
{{- include "tetragon.volumemounts.extra" . | nindent 4 }}
Copy link
Contributor

@chancez chancez Dec 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it make sense to pass the output of include to toYaml before indenting? eg:

 {{- include "tetragon.volumemounts.extra" . | toYaml | nindent 4 }}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would expect these extensions to be yaml already, but I guess it won't hurt

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, toYaml converts templates to string literals actually. I think it's less error-prone to define yaml correctly in the extension and avoid complicating it here.

@lambdanis lambdanis merged commit f01f40a into cilium:main Dec 15, 2023
29 of 30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/helm Related to the Helm chart release-note/misc This PR makes changes that have no direct user impact.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants