You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Our Helm chart could use some love and modernizing - to make it easier to reason about, catch mistakes, and modify (rather than just for the sake of modernizing). This isn't about using a framework or anything like that - just cleaning up.
Directly helpful updates
Add helm template --validate test so our resources are verified to be valid against a k8s api-server
# old syntax - repeating the value needed{{- if .Values.somethingX.somethingY }}something: {{ .Values.somethingX.somethingY }}{{- end }}
# modern syntax - no need to repeat variable# with statements are also conditionals: a truthy value is required{{- with .Values.somethingX.somethingY }}something: {{ . }}{{- end }}
Use consistent indentation practices and whitespacing practices.
Practices I've championed have partially been upstreamed all the way to helm's official documentation.
Always whitespace chomp left.
Also whitespace chomp right in the first entry of a file or defined template.
Use nindent and left whitespace chomp instead of indent to be able to indent lines that have otherwise required 0 indentation to not error for multiline content.
Stop trimming new lines after toYaml - it's no longer needed with modern helm that we require already.
# before{{- with .Values.annotations }}annotations:
{{- . | toYaml | trimSuffix "\n" | nindent 4 }}{{- end }}
# after{{- with .Values.annotations }}annotations:
{{- . | toYaml | nindent 4 }}{{- end }}
Use port names instead of port numbers in network config
Categorization of PRs
In order to do work on the Helm templates, I wanted to make sure there isn't a great conflict with open PRs. I went through all the open PRs and labelled them based on the type of code that is changed based on the labels code:python, code:html/js/css, code:helm-chart. These are the PRs open about changes to the helm chart.
Only two small changes in two PRs were made besides my own PRs, so I figure it's fine for me to do some refactoring of the templates at this point without causing disruptions to existing PRs.
The text was updated successfully, but these errors were encountered:
Our Helm chart could use some love and modernizing - to make it easier to reason about, catch mistakes, and modify (rather than just for the sake of modernizing). This isn't about using a framework or anything like that - just cleaning up.
Directly helpful updates
helm template --validate
test so our resources are verified to be valid against a k8s api-serverdind
daemonset and theimage-cleaner
deployment in our CI tests of the entire Helm charthelm upgrade
).Reference fix for work in docker-image-cleaner: Use tini in Dockerfile to react to SIGTERM properly docker-image-cleaner#6.
kubectl delete pod binder...
in the staging cluster.Reference issue for work in z2jh: Publish ARM64 Docker images zero-to-jupyterhub-k8s#2119
fullnameOverride
andnameOverride
configSee https://zero-to-jupyterhub.readthedocs.io/en/latest/resources/reference.html#fullnameoverride
See https://zero-to-jupyterhub.readthedocs.io/en/latest/resources/reference.html#fullnameoverride
Misc bugs spotted
Refactoring updates
with
syntax instead ofif
Practices I've championed have partially been upstreamed all the way to helm's official documentation.
nindent
and left whitespace chomp instead ofindent
to be able to indent lines that have otherwise required 0 indentation to not error for multiline content.helm
that we require already.Categorization of PRs
In order to do work on the Helm templates, I wanted to make sure there isn't a great conflict with open PRs. I went through all the open PRs and labelled them based on the type of code that is changed based on the labels
code:python
,code:html/js/css
,code:helm-chart
. These are the PRs open about changes to the helm chart.Only two small changes in two PRs were made besides my own PRs, so I figure it's fine for me to do some refactoring of the templates at this point without causing disruptions to existing PRs.
The text was updated successfully, but these errors were encountered: