Mandeep Khinda | dc2dc86 | 2017-09-08 05:20:30 +0000 | [diff] [blame] | 1 | apiVersion: v1 |
| 2 | kind: ConfigMap |
| 3 | metadata: |
| 4 | name: global-onap-configmap |
| 5 | namespace: "{{ .Values.nsPrefix }}" |
| 6 | data: |
yuryn | 9e4fa27 | 2017-09-14 20:02:53 +0300 | [diff] [blame] | 7 | {{ .Files.Get "onap-parameters.yaml" | indent 2 }} |
Mandeep Khinda | dc2dc86 | 2017-09-08 05:20:30 +0000 | [diff] [blame] | 8 | --- |
| 9 | apiVersion: v1 |
| 10 | kind: Pod |
| 11 | metadata: |
| 12 | name: {{ .Chart.Name }} |
| 13 | namespace: "{{ .Values.nsPrefix }}" |
| 14 | spec: |
| 15 | containers: |
| 16 | - name: {{ .Chart.Name }} |
mayankg2703 | bc6f0d7 | 2018-01-29 09:57:05 +0000 | [diff] [blame^] | 17 | image: "{{ .Values.image.repository }}" |
Mandeep Khinda | dc2dc86 | 2017-09-08 05:20:30 +0000 | [diff] [blame] | 18 | imagePullPolicy: {{ .Values.image.pullPolicy }} |
| 19 | envFrom: |
| 20 | - configMapRef: |
| 21 | name: global-onap-configmap |
| 22 | env: |
| 23 | - name: NAMESPACE |
| 24 | valueFrom: |
| 25 | fieldRef: |
| 26 | fieldPath: metadata.namespace |
| 27 | - name: NAMESPACE_PREFIX |
mayankg2703 | bc6f0d7 | 2018-01-29 09:57:05 +0000 | [diff] [blame^] | 28 | value: {{ .Values.nsPrefix }} |
Mandeep Khinda | dc2dc86 | 2017-09-08 05:20:30 +0000 | [diff] [blame] | 29 | - name: DOCKER_SHARE_PATH |
| 30 | value: {{ .Values.dockerSharePath }} |
| 31 | volumeMounts: |
| 32 | - name: config-init-root |
| 33 | mountPath: /config-init/ |
| 34 | volumes: |
| 35 | - name: config-init-root |
| 36 | hostPath: |
| 37 | path: {{ .Values.dockerSharePath }} |
mayankg2703 | bc6f0d7 | 2018-01-29 09:57:05 +0000 | [diff] [blame^] | 38 | restartPolicy: Never |