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

feat: Extract CAAPH values templates to files #809

Closed
wants to merge 1 commit into from

Conversation

jimmidyson
Copy link
Member

This simplifies the Helm templating directives by not requiring
inception-style escaping of templating braces, e.g. `{{ "{{" }}``
which are very hard to read and can introduce bugs.

Comment on lines 14 to 18
{{ "{{" }} $k8sMinorVersionToCCMVersion := dict
{{ range $k8sVersion, $ccmVersion := .Values.hooks.ccm.aws.k8sMinorVersionToCCMVersion -}}
"{{ $k8sVersion }}" "{{ $ccmVersion }}"
{{ end -}}
{{ "}}" }}
Copy link
Contributor

Choose a reason for hiding this comment

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

should this map be gone now?

Copy link
Member Author

Choose a reason for hiding this comment

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

No that is still required as it is configured by Helm template from Helm values. If you render the whole template you'll see why it's needed.

Copy link
Contributor

Choose a reason for hiding this comment

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

Can it be placed in the file as well?

Copy link
Member Author

Choose a reason for hiding this comment

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

No because it is Helm templated, not an file to be included as-is.

@faiq
Copy link
Contributor

faiq commented Jul 22, 2024

I think we should consolidate the work in here and #798. This change would make it so we can have a simpler syncing process between the values in hack/addons/kustomize and charts.

Once it's all consolidated, we can finally address the image listing problem in #769

This simplifies the Helm templating directives by not requiring
inception-style escaping of templating braces, e.g. `{{ "{{" }}``
which are very hard to read and can introduce bugs.
@faiq faiq force-pushed the jimmi/helm-values-include branch from ae521bd to 8029525 Compare July 22, 2024 17:21
@faiq
Copy link
Contributor

faiq commented Jul 23, 2024

closing this because the work is included in #819

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants