-
Notifications
You must be signed in to change notification settings - Fork 69
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
refact(charts): make cleanup pre hook image configurable #336
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,10 +26,14 @@ spec: | |
- name: kubectl | ||
{{- /* bitnami maintains an image for all k8s versions */}} | ||
{{- /* see: https://hub.docker.com/r/bitnami/kubectl */}} | ||
image: {{ printf "%s/%s:%s.%s" "bitnami" "kubectl" .Capabilities.KubeVersion.Major $kubeMinor }} | ||
{{- if .Values.cleanup.image.tag }} | ||
image: "{{ .Values.cleanup.image.registry }}{{ .Values.cleanup.image.repository }}:{{ .Values.cleanup.image.tag }}" | ||
{{- else }} | ||
image: "{{ .Values.cleanup.image.registry }}{{ .Values.cleanup.image.repository }}:{{ .Capabilities.KubeVersion.Major }}.{{ $kubeMinor }}" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same comment as openebs/charts PR , tag can be different as well. |
||
{{- end }} | ||
command: | ||
- /bin/sh | ||
- -c | ||
- > | ||
kubectl delete validatingWebhookConfiguration openebs-cstor-validation-webhook; | ||
restartPolicy: OnFailure | ||
restartPolicy: OnFailure |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -238,3 +238,11 @@ analytics: | |
enabled: true | ||
# Specify in hours the duration after which a ping event needs to be sent. | ||
pingInterval: "24h" | ||
|
||
cleanup: | ||
image: | ||
# Make sure that registry name end with a '/'. | ||
# For example : quay.io/ is a correct value here and quay.io is incorrect | ||
registry: | ||
repository: bitnami/kubectl | ||
tag: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why the tag is empty? Are we going to use There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The tag is determined in the job template itself using the helm Capabilities to determine the k8s version, which will be same as the tag |
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.
Question(n_p) :
nil
vs""
( I see that existing code uses
nil
)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 existing values.yaml uses empty fields so I continued with that