Skip to content

Commit

Permalink
feat(helm): allow to customize init image (#18649)
Browse files Browse the repository at this point in the history
* feat(helm): allow to customize init image

* chore(helm): bump chart version to 0.5.8
  • Loading branch information
avakarev authored Feb 10, 2022
1 parent 7670f3a commit 4db70b5
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 9 deletions.
2 changes: 1 addition & 1 deletion helm/superset/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ maintainers:
- name: craig-rueda
email: [email protected]
url: https://github.com/craig-rueda
version: 0.5.7
version: 0.5.8
dependencies:
- name: postgresql
version: 10.2.0
Expand Down
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

0 comments on commit 4db70b5

Please sign in to comment.