Skip to content

Commit

Permalink
Allow use of custom image for wait-for-migration initContainer
Browse files Browse the repository at this point in the history
Signed-off-by: marlene <[email protected]>
  • Loading branch information
marlenekoh committed Nov 9, 2023
1 parent dc9d4d1 commit fee6f40
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion charts/openfga/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ spec:
- name: wait-for-migration
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
image: groundnuty/k8s-wait-for:v1.6
image: "{{ .Values.datastore.migrations.image.repository }}:{{ .Values.datastore.migrations.image.tag }}"
imagePullPolicy: {{ .Values.datastore.migrations.image.pullPolicy }}
args: ["job", '{{ include "openfga.fullname" . }}-migrate']
resources:
{{- toYaml .Values.datastore.migrations.resources | nindent 12 }}
Expand Down
4 changes: 4 additions & 0 deletions charts/openfga/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,10 @@ datastore:
applyMigrations: true
migrations:
resources: {}
image:
repository: groundnuty/k8s-wait-for
pullPolicy: Always
tag: "v1.6"

postgres:
## @param postgres.enabled enable the bitnami/postgresql subchart and deploy Postgres
Expand Down

0 comments on commit fee6f40

Please sign in to comment.