diff options
author | Fiachra Corcoran <fiachra.corcoran@est.tech> | 2022-08-04 06:32:44 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2022-08-04 06:32:44 +0000 |
commit | e4aac7a3c577b7bb9eaae93387d482f952ee4b72 (patch) | |
tree | 1effb8c04ffc7bcde788c11caf96d141ba47ee2c /kubernetes/dmaap/components/dmaap-bc/templates/deployment.yaml | |
parent | 51cb65c4e56a2ba8e6fe2b6516a8cb8e421e2493 (diff) | |
parent | 0d5c917c02b40b335251a39952bb46f70bcb73ce (diff) |
Merge "[DMAAP] DMaaP ServiceMesh compatibility"
Diffstat (limited to 'kubernetes/dmaap/components/dmaap-bc/templates/deployment.yaml')
-rw-r--r-- | kubernetes/dmaap/components/dmaap-bc/templates/deployment.yaml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/kubernetes/dmaap/components/dmaap-bc/templates/deployment.yaml b/kubernetes/dmaap/components/dmaap-bc/templates/deployment.yaml index c9b6800ffd..a0c315426c 100644 --- a/kubernetes/dmaap/components/dmaap-bc/templates/deployment.yaml +++ b/kubernetes/dmaap/components/dmaap-bc/templates/deployment.yaml @@ -24,7 +24,7 @@ spec: metadata: {{- include "common.templateMetadata" . | nindent 6 }} spec: {{ include "common.podSecurityContext" . | indent 6 | trim}} -{{- if or .Values.global.aafEnabled .Values.PG.enabled }} +{{- if .Values.PG.enabled }} initContainers: - command: - sh @@ -45,6 +45,7 @@ spec: imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }} name: {{ include "common.name" . }}-update-config {{ include "common.certInitializer.initContainer" . | nindent 6 }} +{{- if .Values.global.aafEnabled }} - name: {{ include "common.name" . }}-permission-fixer securityContext: runAsUser: 0 @@ -62,6 +63,7 @@ spec: volumeMounts: {{ include "common.certInitializer.volumeMount" . | nindent 8 }} command: ["/bin/sh"] args: [ "-c", "sed -i -e '/cadi_keystore_password=/d' -e '/cadi_keystore_password_jks/p' -e 's/cadi_keystore_password_jks/cadi_keystore_password/' -e 's/dmaap-bc.p12/dmaap-bc.jks/' /opt/app/osaaf/local/org.onap.dmaap-bc.cred.props" ] +{{- end }} - name: {{ include "common.name" . }}-postgres-readiness securityContext: runAsUser: 100 |