diff options
author | Sylvain Desbureaux <sylvain.desbureaux@orange.com> | 2020-05-06 13:09:02 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-05-06 13:09:02 +0000 |
commit | 570fa97c500e9d32cf6d2a40834782db8f1db1fe (patch) | |
tree | 3cddd0c6456aeabf28013a2ee40439f862aedd9d /kubernetes/dcaegen2/components/dcae-inventory-api/values.yaml | |
parent | b5c12abb08cabeb0d6b6b593eb8b7068f8a93d81 (diff) | |
parent | bb48fc854a89ae8a9e4efc926df0930ae5a271d5 (diff) |
Merge "[DCAEGEN2] Use common secret template for postgres credentials"
Diffstat (limited to 'kubernetes/dcaegen2/components/dcae-inventory-api/values.yaml')
-rw-r--r-- | kubernetes/dcaegen2/components/dcae-inventory-api/values.yaml | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/kubernetes/dcaegen2/components/dcae-inventory-api/values.yaml b/kubernetes/dcaegen2/components/dcae-inventory-api/values.yaml index 51af963343..a26ae5d196 100644 --- a/kubernetes/dcaegen2/components/dcae-inventory-api/values.yaml +++ b/kubernetes/dcaegen2/components/dcae-inventory-api/values.yaml @@ -26,10 +26,20 @@ global: loggingImage: beats/filebeat:5.5.0 tlsRepository: nexus3.onap.org:10001 tlsImage: onap/org.onap.dcaegen2.deployments.tls-init-container:2.1.0 + envsubstImage: dibi/envsubst repositoryCred: user: docker password: docker +secrets: + - uid: pg-user-creds + name: &pgUserCredsSecretName '{{ include "common.release" . }}-dcae-inventory-api-pg-user-creds' + type: basicAuth + externalSecret: '{{ ternary "" (tpl (default "" .Values.postgres.config.pgUserExternalSecret) .) (hasSuffix "dcae-inventory-api-pg-user-creds" .Values.postgres.config.pgUserExternalSecret) }}' + login: '{{ .Values.postgres.config.pgUserName }}' + password: '{{ .Values.postgres.config.pgUserPassword }}' + passwordPolicy: generate + config: logstashServiceName: log-ls logstashPort: 5044 @@ -82,24 +92,11 @@ postgres: replica: dcae-inv-pg-replica config: pgUserName: dcae_inv + pgUserExternalSecret: *pgUserCredsSecretName pgDatabase: dcae_inventory - pgPrimaryPassword: onapdemodb - pgUserPassword: onapdemodb - pgRootPassword: onapdemodb persistence: mountSubPath: dcae-inv/data mountInitPath: dcae-inv - pgpool: - nameOverride: dcae-inv-pgpool - service: - name: dcae-inv-pgpool - credentials: - pgusername: ddcae_inv - pgpassword: onapdemodb - container: - name: - primary: dcae-inv-pgpool-primary - replica: dcae-inv-pgpool-replica # Resource Limit flavor -By Default using small flavor: small |