Merge "[MULTICLOUD] Move multicloud k8s to use strimzi kafka user template"
authorFiachra Corcoran <fiachra.corcoran@est.tech>
Mon, 6 Mar 2023 13:24:09 +0000 (13:24 +0000)
committerGerrit Code Review <gerrit@onap.org>
Mon, 6 Mar 2023 13:24:09 +0000 (13:24 +0000)
1  2 
kubernetes/multicloud/components/multicloud-k8s/templates/deployment.yaml

@@@ -62,7 -62,8 +62,7 @@@ spec
            - mountPath: /opt/multicloud/k8splugin/k8sconfig.json
              name: {{ include "common.name" .}}
              subPath: k8sconfig.json
 -        resources:
 -{{ include "common.resources" . | indent 10 }}
 +        resources: {{ include "common.resources" . | nindent 10 }}
          {{- if .Values.nodeSelector }}
          nodeSelector:
  {{ toYaml .Values.nodeSelector | indent 10 }}
          - mountPath: /data
            name: artifact-data
          env:
-         - name: SECURITY_PROTOCOL
-           value: {{ .Values.config.kafka.securityProtocol }}
-         - name: SASL_MECHANISM
-           value: {{ .Values.config.kafka.saslMechanism }}
          - name: SASL_JAAS_CONFIG
-           {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "multicloud-k8s-sdc-kafka-secret" "key" "sasl.jaas.config") | indent 10 }}
+           valueFrom:
+             secretKeyRef:
+               name: {{ include "common.name" . }}-ku
+               key: sasl.jaas.config
        serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}}
        volumes:
        - name: localtime