-
Notifications
You must be signed in to change notification settings - Fork 21
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
Update helm-project-operator template values/helpers #121
Conversation
93eea81
to
33b69fc
Compare
49181fd
to
3fcfe00
Compare
@@ -0,0 +1,64 @@ | |||
#!/bin/bash |
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.
Nice de-duplication!
charts/prometheus-federator/0.4.4/charts/helmProjectOperator/templates/_helpers.tpl
Outdated
Show resolved
Hide resolved
charts/prometheus-federator/0.4.4/charts/helmProjectOperator/templates/deployment.yaml
Outdated
Show resolved
Hide resolved
@@ -20,7 +20,7 @@ spec: | |||
spec: | |||
containers: | |||
- name: {{ template "helm-project-operator.name" . }} | |||
image: "{{ template "system_default_registry" . }}{{ .Values.image.repository }}:{{ .Values.image.tag }}" | |||
image: "{{ template "helm-project-operator.imageRegistry" . }}{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" |
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.
@joshmeranda - Felt like a function over complicated it, so I simplified to an inline default.
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'm happy with either way as long as the right values are being redered. Since this is all done at render time anyway its not gonna have a real impact. Thanks!
Related Issue:
#120
In an effort to improve the above issue, this PR makes a few changes:
Chart.yaml
file'sappVersion
,values.yaml
file,The net result is that end users can still override tag values as they wish. However from a Dev POV we only have to maintain updating the
Chart.yaml
version as necessary.