From 2822c085422c3daf7471bb9bedc9e0ef3dc4dcca Mon Sep 17 00:00:00 2001 From: Aleydin Karaimin Date: Tue, 5 Sep 2023 18:20:54 +0300 Subject: [PATCH] feat: add support for migration job annotations (#61) --- charts/openfga/Chart.yaml | 2 +- charts/openfga/templates/job.yaml | 4 ++++ charts/openfga/values.schema.json | 6 ++++++ charts/openfga/values.yaml | 1 + 4 files changed, 12 insertions(+), 1 deletion(-) diff --git a/charts/openfga/Chart.yaml b/charts/openfga/Chart.yaml index 8eb8f37..e725ae4 100644 --- a/charts/openfga/Chart.yaml +++ b/charts/openfga/Chart.yaml @@ -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" diff --git a/charts/openfga/templates/job.yaml b/charts/openfga/templates/job.yaml index ca701c4..4dacb91 100644 --- a/charts/openfga/templates/job.yaml +++ b/charts/openfga/templates/job.yaml @@ -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: diff --git a/charts/openfga/values.schema.json b/charts/openfga/values.schema.json index ada3f34..436dade 100644 --- a/charts/openfga/values.schema.json +++ b/charts/openfga/values.schema.json @@ -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": { } } } } diff --git a/charts/openfga/values.yaml b/charts/openfga/values.yaml index 1a97779..12684f4 100644 --- a/charts/openfga/values.yaml +++ b/charts/openfga/values.yaml @@ -234,3 +234,4 @@ affinity: {} sidecars: [] migrate: sidecars: [] + annotations: {}