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
server: '{{ .cluster }}'
source:
repoURL: https://gitlab.com/oceanbox/manifests.git
targetRevision: main
path: kustomizations/openfga
plugin:
name: kustomize-helm-with-rewrite
parameters:
- name: env
string: '{{ .env }}'
- name: hostname
string: '{{ .hostname }}'
- repoURL: https://openfga.github.io/helm-charts
targetRevision: 0.2.12
chart: openfga
helm:
valueFiles:
- $values/kustomizations/openfga/values.yaml
- $values/kustomizations/openfga/values-{{ env }}.yaml
- repoURL: https://gitlab.com/oceanbox/manifests.git
targetRevision: main
ref: values
templatePatch: |
{{- if .autoSync }}
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:
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:
enabled: true
auth:
username: app
existingSecret: prod-openfga-db-app
existingSecret: prod-openfga-postgresql
secretKeys:
userPasswordKey: password
adminPasswordKey: admin-password
userPasswordKey: postgres-password
playground:
enabled: false
+4 -4
View File
@@ -2,15 +2,15 @@ replicaCount: 1
datastore:
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:
enabled: true
auth:
username: app
existingSecret: staging-openfga-db-app
existingSecret: staging-openfga-postgresql
secretKeys:
userPasswordKey: password
adminPasswordKey: admin-password
userPasswordKey: postgres-password
playground:
enabled: true
+3
View File
@@ -0,0 +1,3 @@
fullnameOverride: openfga