Skip to content

Commit

Permalink
feat: add openfga deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
garryod committed Jan 16, 2025
1 parent a9a43b8 commit 31774a8
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
28 changes: 28 additions & 0 deletions charts/apps/templates/openfga-app.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{{ if .Values.openfga.enabled }}
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: {{ include "common.names.fullname" $ }}-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 | quote }}
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 }}
5 changes: 5 additions & 0 deletions charts/apps/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,8 @@ opa:
paths:
- path: /
pathType: Prefix

openfga:
enabled: true
targetRevision: '*'
valuesObject: {}

0 comments on commit 31774a8

Please sign in to comment.