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(helm): allow to customize init image #18649

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
20 changes: 20 additions & 0 deletions helm/superset/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,26 @@
"imagePullSecrets": {
"type": "array"
},
"initImage": {
"type": "object",
"additionalProperties": false,
"properties": {
"repository": {
"type": "string"
},
"tag": {
"type": "string"
},
"pullPolicy": {
"$ref": "https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/v1.23.0/_definitions.json##/definitions/io.k8s.api.core.v1.Container/properties/imagePullPolicy"
}
},
"required": [
"repository",
"tag",
"pullPolicy"
]
},
"service": {
"type": "object",
"additionalProperties": false,
Expand Down
20 changes: 12 additions & 8 deletions helm/superset/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,10 @@ image:

imagePullSecrets: []

initImage:
repository: busybox
tag: latest
pullPolicy: IfNotPresent

service:
type: ClusterIP
Expand Down Expand Up @@ -231,8 +235,8 @@ supersetNode:
forceReload: false # If true, forces deployment to reload on each upgrade
initContainers:
- name: wait-for-postgres
image: busybox:latest
imagePullPolicy: IfNotPresent
image: "{{ .Values.initImage.repository }}:{{ .Values.initImage.tag }}"
imagePullPolicy: "{{ .Values.initImage.pullPolicy }}"
envFrom:
- secretRef:
name: '{{ tpl .Values.envFromSecret . }}'
Expand All @@ -252,8 +256,8 @@ supersetWorker:
forceReload: false # If true, forces deployment to reload on each upgrade
initContainers:
- name: wait-for-postgres
image: busybox:latest
imagePullPolicy: IfNotPresent
image: "{{ .Values.initImage.repository }}:{{ .Values.initImage.tag }}"
imagePullPolicy: "{{ .Values.initImage.pullPolicy }}"
envFrom:
- secretRef:
name: '{{ tpl .Values.envFromSecret . }}'
Expand All @@ -275,8 +279,8 @@ supersetCeleryBeat:
forceReload: false # If true, forces deployment to reload on each upgrade
initContainers:
- name: wait-for-postgres
image: busybox:latest
imagePullPolicy: IfNotPresent
image: "{{ .Values.initImage.repository }}:{{ .Values.initImage.tag }}"
imagePullPolicy: "{{ .Values.initImage.pullPolicy }}"
envFrom:
- secretRef:
name: '{{ tpl .Values.envFromSecret . }}'
Expand Down Expand Up @@ -314,8 +318,8 @@ init:
password: admin
initContainers:
- name: wait-for-postgres
image: busybox:latest
imagePullPolicy: IfNotPresent
image: "{{ .Values.initImage.repository }}:{{ .Values.initImage.tag }}"
imagePullPolicy: "{{ .Values.initImage.pullPolicy }}"
envFrom:
- secretRef:
name: '{{ tpl .Values.envFromSecret . }}'
Expand Down