-
Notifications
You must be signed in to change notification settings - Fork 391
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-chart: minor refactoring of syntax #1419
Conversation
consideRatio
commented
Oct 10, 2021
- helm-chart: consistent use of with
- helm-chart: don't use trimSuffix after toYaml, not needed
{{- range $key, $value := .Values.ingress.annotations }} | ||
{{ $key }}: {{ $value | quote }} | ||
{{- with .Values.ingress.annotations }} | ||
{{- . | toYaml | nindent 4 }} | ||
{{- end }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The old pattern has been useful in the past to enforce passed values are strings, but we now have a schema to force users to make their annotations strings in the first place - so we can now use toYaml
without additional interventions.
{{- end }} | ||
{{- end }} | ||
spec: | ||
{{- with .Values.ingress.ingressClassName }} | ||
ingressClassName: "{{ . }}" | ||
ingressClassName: {{ . | quote }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't care much about this, I just wanted consistency within this file.
jupyterhub/binderhub#1419 Merge pull request #1419 from consideRatio/pr/refactor-templates