fix: don't use kustomize for openfga
This commit is contained in:
+10
-10
@@ -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:
|
||||||
|
|||||||
@@ -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 +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
|
|
||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
fullnameOverride: openfga
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user