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 10, 2025
1 parent 3aea4fa commit b20a6b8
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/apps/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
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: 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 }}
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 b20a6b8

Please sign in to comment.