diff options
author | Lukasz Rajewski <lukasz.rajewski@t-mobile.pl> | 2024-04-10 12:21:47 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2024-04-10 12:21:47 +0000 |
commit | bd892a7d0709d0807a009f648eb8fcf283f79ba9 (patch) | |
tree | 85a20b3bd015ace54271c8dbc4b8482b45535702 /kubernetes/policy/components/policy-xacml-pdp/templates/deployment.yaml | |
parent | 1eeb37b34517aecb0fdcef2e486188768b5ee513 (diff) | |
parent | bc8a6a4ce7eb26b1720cd281486ce6a67ee40ac4 (diff) |
Merge "[POLICY] Add kafka support in policy charts"
Diffstat (limited to 'kubernetes/policy/components/policy-xacml-pdp/templates/deployment.yaml')
-rwxr-xr-x | kubernetes/policy/components/policy-xacml-pdp/templates/deployment.yaml | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/kubernetes/policy/components/policy-xacml-pdp/templates/deployment.yaml b/kubernetes/policy/components/policy-xacml-pdp/templates/deployment.yaml index b475d2ce2d..403f6988f9 100755 --- a/kubernetes/policy/components/policy-xacml-pdp/templates/deployment.yaml +++ b/kubernetes/policy/components/policy-xacml-pdp/templates/deployment.yaml @@ -53,7 +53,7 @@ spec: - sh args: - -c - - "cd /config-input && for PFILE in `ls -1`; do envsubst <${PFILE} >/config/${PFILE}; done" + - JAASLOGIN=`echo $JAASLOGIN | tr -d '"'`; cd /config-input && for PFILE in `ls -1`; do envsubst <${PFILE} >/config/${PFILE}; done env: - name: RESTSERVER_USER {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "restserver-creds" "key" "login") | indent 10 }} @@ -67,6 +67,19 @@ spec: {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-secret" "key" "login") | indent 10 }} - name: SQL_PASSWORD {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-secret" "key" "password") | indent 10 }} + - name: JAASLOGIN + valueFrom: + secretKeyRef: + name: {{ include "common.name" . }}-ku + key: sasl.jaas.config + - name: KAFKA_URL + value: {{ include "common.release" . }}-{{ .Values.global.kafkaBootstrap }} + - name: SASL + value: {{ .Values.kafkaUser.authenticationType | upper }} + - name: GROUP_ID + value: {{ .Values.config.kafka.consumer.groupId }} + - name: PAP_TOPIC + value: {{ .Values.config.app.listener.policyPdpPapTopic }} volumeMounts: - mountPath: /config-input name: pdpxconfig |