Skip to content

Commit

Permalink
feat: add extraMounts and volumes to migrate job (#147)
Browse files Browse the repository at this point in the history
  • Loading branch information
wenzel-felix authored Aug 7, 2024
1 parent 4cf9c11 commit 2e7eec9
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
8 changes: 8 additions & 0 deletions charts/openfga/templates/job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
10 changes: 10 additions & 0 deletions charts/openfga/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 2 additions & 0 deletions charts/openfga/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,8 @@ affinity: {}
# containerPort: 1234
sidecars: []
migrate:
extraVolumes: []
extraVolumeMounts: []
sidecars: []
annotations:
helm.sh/hook: "post-install, post-upgrade, post-rollback, post-delete"
Expand Down

0 comments on commit 2e7eec9

Please sign in to comment.