diff --git a/charts/openfga/templates/job.yaml b/charts/openfga/templates/job.yaml index 8a1acdc..3ec2595 100644 --- a/charts/openfga/templates/job.yaml +++ b/charts/openfga/templates/job.yaml @@ -63,10 +63,18 @@ spec: resources: {{- toYaml .Values.datastore.migrations.resources | nindent 12 }} + {{- with .Values.migrate.extraVolumeMounts }} + volumeMounts: + {{- toYaml . | nindent 12 }} + {{- end }} {{- if .Values.migrate.sidecars }} {{- include "common.tplvalues.render" ( dict "value" .Values.migrate.sidecars "context" $) | nindent 8 }} {{- end }} restartPolicy: Never + {{- with .Values.migrate.extraVolumes }} + volumes: + {{- toYaml . | nindent 8 }} + {{- end }} {{- with .Values.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} diff --git a/charts/openfga/values.schema.json b/charts/openfga/values.schema.json index 19f5c9b..2c52b8c 100644 --- a/charts/openfga/values.schema.json +++ b/charts/openfga/values.schema.json @@ -925,6 +925,16 @@ "description": "add additional sidecar containers to the migration job", "default": [] }, + "extraVolumes": { + "type": "array", + "description": "add additional volumes to the migration job", + "default": [] + }, + "extraVolumeMounts": { + "type": "array", + "description": "add additional volumeMounts to the migration job", + "default": [] + }, "annotations": { "type": "object", "description": "Map of annotations to add to the migration job's manifest", diff --git a/charts/openfga/values.yaml b/charts/openfga/values.yaml index 5222fe7..5b2dc65 100644 --- a/charts/openfga/values.yaml +++ b/charts/openfga/values.yaml @@ -319,6 +319,8 @@ affinity: {} # containerPort: 1234 sidecars: [] migrate: + extraVolumes: [] + extraVolumeMounts: [] sidecars: [] annotations: helm.sh/hook: "post-install, post-upgrade, post-rollback, post-delete"