Skip to content

Commit

Permalink
feat: add support for migration job annotations (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
karaimin authored Sep 5, 2023
1 parent fce107e commit 2822c08
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/openfga/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: openfga
description: A Kubernetes Helm chart for the OpenFGA project.

type: application
version: 0.1.23
version: 0.1.24
appVersion: "v1.3.1"

home: "https://openfga.github.io/helm-charts/charts/openfga"
Expand Down
4 changes: 4 additions & 0 deletions charts/openfga/templates/job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ metadata:
name: {{ include "openfga.fullname" . }}-migrate
labels:
{{- include "openfga.labels" . | nindent 4 }}
{{- with .Values.migrate.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
template:
spec:
Expand Down
6 changes: 6 additions & 0 deletions charts/openfga/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,12 @@
"description": "add additional sidecar containers to the migration job",
"default": []
}
},
"annotations": {
"type": "object",
"description": "Map of annotations to add to the migration job's manifest",
"additionalProperties": { "type": "string" },
"default": { }
}
}
}
Expand Down
1 change: 1 addition & 0 deletions charts/openfga/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -234,3 +234,4 @@ affinity: {}
sidecars: []
migrate:
sidecars: []
annotations: {}

0 comments on commit 2822c08

Please sign in to comment.