From b20a6b8f97f9626f7ac2b2a77d6019117be3358c Mon Sep 17 00:00:00 2001 From: Garry O'Donnell Date: Fri, 10 Jan 2025 16:24:23 +0000 Subject: [PATCH] feat: add openfga deployment --- charts/apps/Chart.yaml | 2 +- charts/apps/templates/openfga-app.yaml | 28 ++++++++++++++++++++++++++ charts/apps/values.yaml | 5 +++++ 3 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 charts/apps/templates/openfga-app.yaml diff --git a/charts/apps/Chart.yaml b/charts/apps/Chart.yaml index 727735b2..3fb96010 100644 --- a/charts/apps/Chart.yaml +++ b/charts/apps/Chart.yaml @@ -2,4 +2,4 @@ apiVersion: v2 name: authz description: ArgoCD Apps used to deploy Authorization infrastructure type: application -version: 0.2.0 +version: 0.3.0 diff --git a/charts/apps/templates/openfga-app.yaml b/charts/apps/templates/openfga-app.yaml new file mode 100644 index 00000000..68f56edd --- /dev/null +++ b/charts/apps/templates/openfga-app.yaml @@ -0,0 +1,28 @@ +{{ if .Values.openfga.enabled }} +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: openfga + namespace: {{ .Release.Namespace }} + finalizers: + - resources-finalizer.argocd.arogproj.io +spec: + project: {{ default .Release.Namespace .Values.project }} + source: + repoURL: https://openfga.github.io/helm-charts + targetRevision: {{ .Values.openfga.targetRevision }} + chart: openfga + {{- if .Values.openfga.valuesObject }} + helm: + valuesObject: + {{ .Values.openfga.valuesObject | toYaml | nindent 10 }} + {{- end }} + destination: + name: {{ .Values.destination.name }} + server: {{ .Values.destination.server }} + namespace: {{ default .Release.Namespace .Values.destination.namespace }} + syncPolicy: + automated: + prune: true + selfHeal: true +{{- end }} diff --git a/charts/apps/values.yaml b/charts/apps/values.yaml index 32faecea..4dc90670 100644 --- a/charts/apps/values.yaml +++ b/charts/apps/values.yaml @@ -33,3 +33,8 @@ opa: paths: - path: / pathType: Prefix + +openfga: + enabled: true + targetRevision: "*" + valuesObject: {}