blob: 296ebba64c8b9c5107c56e312514f58a22ac8e6c [file] [log] [blame]
Mandeep Khindadc2dc862017-09-08 05:20:30 +00001apiVersion: v1
2kind: ConfigMap
3metadata:
4 name: global-onap-configmap
5 namespace: "{{ .Values.nsPrefix }}"
6data:
7 {{ (.Files.Glob "{{ .Values.parameterFile }}").AsConfig | indent 2 }}
8---
9apiVersion: v1
10kind: Pod
11metadata:
12 name: {{ .Chart.Name }}
13 namespace: "{{ .Values.nsPrefix }}"
14spec:
15 containers:
16 - name: {{ .Chart.Name }}
17 image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
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
28 value: {{ .Values.nsPrefix }}
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 }}
38 restartPolicy: Never