X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=kubernetes%2Fsdnc%2Fcharts%2Fdmaap-listener%2Ftemplates%2Fdeployment.yaml;h=a649a077edc2b92ca108f65f807ac8aa0ac417b1;hb=b350b9446f7ca93686b6405b13b35c49e1035698;hp=733b21e7bccf0f2801d76211bfefc6b8baf7a57b;hpb=ce63bacae1810b027f96f1def7b652c8141a895f;p=oom.git diff --git a/kubernetes/sdnc/charts/dmaap-listener/templates/deployment.yaml b/kubernetes/sdnc/charts/dmaap-listener/templates/deployment.yaml index 733b21e7bc..a649a077ed 100644 --- a/kubernetes/sdnc/charts/dmaap-listener/templates/deployment.yaml +++ b/kubernetes/sdnc/charts/dmaap-listener/templates/deployment.yaml @@ -53,7 +53,7 @@ spec: - command: - /opt/onap/sdnc/dmaap-listener/bin/start-dmaap-listener.sh name: {{ include "common.name" . }} - image: "{{ .Values.global.repository | default .Values.repository }}/{{ .Values.image }}" + image: "{{ include "common.repository" . }}/{{ .Values.image }}" imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }} env: - name: PROPERTY_DIR @@ -64,11 +64,17 @@ spec: - mountPath: /etc/localtime name: localtime readOnly: true + - mountPath: {{ .Values.config.configDir }}/dblib.properties + name: properties + subPath: dblib.properties - mountPath: {{ .Values.config.configDir }}/dhcpalert.properties + name: properties subPath: dhcpalert.properties - name: dmaap-dhcapalert-config + - mountPath: {{ .Values.config.configDir }}/lcm.properties + name: properties + subPath: lcm.properties resources: -{{ toYaml .Values.resources | indent 12 }} +{{ toYaml (pluck .Values.flavor .Values.resources| first) | indent 12 }} {{- if .Values.nodeSelector }} nodeSelector: {{ toYaml .Values.nodeSelector | indent 10 }} @@ -82,8 +88,9 @@ spec: - name: localtime hostPath: path: /etc/localtime - - name: dmaap-dhcapalert-config + - name: properties configMap: - name: sdnc-dmaap-configmap + name: {{ include "common.fullname" . }} + defaultMode: 0644 imagePullSecrets: - - name: "{{ include "common.namespace" . }}-docker-registry-key" \ No newline at end of file + - name: "{{ include "common.namespace" . }}-docker-registry-key"