fix: don't use kustomize for openfga

This commit is contained in:
Jonas Juselius
2024-08-27 16:01:05 +02:00
parent 52514f32b8
commit 2b473364be
10 changed files with 21 additions and 58 deletions
+10 -10
View File
@@ -27,16 +27,16 @@ spec:
namespace: idp namespace: idp
server: '{{ .cluster }}' server: '{{ .cluster }}'
source: source:
repoURL: https://gitlab.com/oceanbox/manifests.git - repoURL: https://openfga.github.io/helm-charts
targetRevision: main targetRevision: 0.2.12
path: kustomizations/openfga chart: openfga
plugin: helm:
name: kustomize-helm-with-rewrite valueFiles:
parameters: - $values/kustomizations/openfga/values.yaml
- name: env - $values/kustomizations/openfga/values-{{ env }}.yaml
string: '{{ .env }}' - repoURL: https://gitlab.com/oceanbox/manifests.git
- name: hostname targetRevision: main
string: '{{ .hostname }}' ref: values
templatePatch: | templatePatch: |
{{- if .autoSync }} {{- if .autoSync }}
spec: spec:
-19
View File
@@ -1,19 +0,0 @@
apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
name: openfga-db
spec:
enableSuperuserAccess: true
instances: 2
logLevel: info
storage:
pvcTemplate:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
storageClassName: managed-nfs-storage
volumeMode: Filesystem
resizeInUseVolumes: true
size: 1Gi
@@ -1,5 +0,0 @@
generatorOptions:
disableNameSuffixHash: true
resources:
- cluster.yaml
- _manifest.yaml
-1
View File
@@ -1 +0,0 @@
openfga/openfga
@@ -1,3 +0,0 @@
namePrefix: prod-
resources:
- ../base
@@ -1,3 +0,0 @@
- op: replace
path: /spec/instances
value: 1
@@ -1,9 +0,0 @@
namePrefix: staging-
patches:
- target:
group: postgresql.cnpg.io
version: v1
kind: Cluster
path: cluster_patch.yaml
resources:
- ../base
+4 -4
View File
@@ -2,15 +2,15 @@ replicaCount: 2
datastore: datastore:
engine: postgres engine: postgres
uri: postgres://prod-openfga-db.idp.svc.cluster.local:5432/app?sslmode=disable uri: postgres://prod-openfga-postgresql.idp.svc.cluster.local:5432/openfga?sslmode=disable
postgresql: postgresql:
enabled: true enabled: true
auth: auth:
username: app existingSecret: prod-openfga-postgresql
existingSecret: prod-openfga-db-app
secretKeys: secretKeys:
userPasswordKey: password adminPasswordKey: admin-password
userPasswordKey: postgres-password
playground: playground:
enabled: false enabled: false
+4 -4
View File
@@ -2,15 +2,15 @@ replicaCount: 1
datastore: datastore:
engine: postgres engine: postgres
uri: postgres://staging-openfga-db.idp.svc.cluster.local:5432/app?sslmode=disable uri: postgres://staging-openfga-postgresql.idp.svc.cluster.local:5432/openfga?sslmode=disable
postgresql: postgresql:
enabled: true enabled: true
auth: auth:
username: app existingSecret: staging-openfga-postgresql
existingSecret: staging-openfga-db-app
secretKeys: secretKeys:
userPasswordKey: password adminPasswordKey: admin-password
userPasswordKey: postgres-password
playground: playground:
enabled: true enabled: true
+3
View File
@@ -0,0 +1,3 @@
fullnameOverride: openfga