From 4cf9c11d128af73e3e35eeee75550d452868aeab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Padilla?= Date: Mon, 29 Jul 2024 12:06:04 -0400 Subject: [PATCH 1/2] chore: update openfga to 1.5.7 (#148) --- charts/openfga/Chart.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/openfga/Chart.yaml b/charts/openfga/Chart.yaml index f9444b5..62e507a 100644 --- a/charts/openfga/Chart.yaml +++ b/charts/openfga/Chart.yaml @@ -3,8 +3,8 @@ name: openfga description: A Kubernetes Helm chart for the OpenFGA project. type: application -version: 0.2.7 -appVersion: "v1.5.6" +version: 0.2.8 +appVersion: "v1.5.7" home: "https://openfga.github.io/helm-charts" icon: https://github.com/openfga/community/raw/main/brand-assets/icon/color/openfga-icon-color.svg From 2e7eec966bc08c6e666966150a62aace14a7f3a6 Mon Sep 17 00:00:00 2001 From: Felix Wenzel <62264190+wenzel-felix@users.noreply.github.com> Date: Wed, 7 Aug 2024 13:43:39 +0200 Subject: [PATCH 2/2] feat: add extraMounts and volumes to migrate job (#147) --- charts/openfga/templates/job.yaml | 8 ++++++++ charts/openfga/values.schema.json | 10 ++++++++++ charts/openfga/values.yaml | 2 ++ 3 files changed, 20 insertions(+) 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"