Nicolas Massé 3 years ago
parent
commit
9e3f6e994a
  1. 29
      infrastructure/templates/3scale.yaml
  2. 2
      infrastructure/templates/sso.yaml

29
infrastructure/templates/3scale.yaml

@ -33,7 +33,25 @@ stringData:
DATABASE_URL: postgresql://zync:{{ include "zync-database-password" . }}@postgresql-server:5432/zync DATABASE_URL: postgresql://zync:{{ include "zync-database-password" . }}@postgresql-server:5432/zync
ZYNC_DATABASE_PASSWORD: {{ include "zync-database-password" . | quote }} ZYNC_DATABASE_PASSWORD: {{ include "zync-database-password" . | quote }}
type: Opaque type: Opaque
---
apiVersion: v1
kind: Secret
metadata:
annotations:
argocd.argoproj.io/sync-wave: "10"
name: apicast-custom-environment
namespace: {{ .Values.projectName | quote }}
stringData:
custom.lua: |
local cjson = require('cjson')
local PolicyChain = require('apicast.policy_chain')
local policy_chain = context.policy_chain
policy_chain:insert( PolicyChain.load_policy('cors', 'builtin', { }), 1)
return {
policy_chain = policy_chain,
port = { metrics = 9421 },
}
type: Opaque
--- ---
apiVersion: apps.3scale.net/v1alpha1 apiVersion: apps.3scale.net/v1alpha1
kind: APIManager kind: APIManager
@ -50,3 +68,12 @@ spec:
database: true database: true
system: system:
database: true database: true
apicast:
stagingSpec:
customEnvironments:
- secretRef:
name: apicast-custom-environment
productionSpec:
customEnvironments:
- secretRef:
name: apicast-custom-environment

2
infrastructure/templates/sso.yaml

@ -472,7 +472,7 @@ spec:
valueFrom: valueFrom:
secretKeyRef: secretKeyRef:
name: demo-seed name: demo-seed
key: zync-client-secret key: microcks-client-secret
- name: USER - name: USER
value: kcadm value: kcadm
- name: HOME - name: HOME

Loading…
Cancel
Save