blob: 93c64ab3dd66125156ab7a3d9be8b1c0065df572 [file] [log] [blame]
vaibhav_16dece04b2fe2018-03-22 09:07:12 +00001# Copyright © 2017 Amdocs, Bell Canada
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
Mandeep Khindadc2dc862017-09-08 05:20:30 +000015apiVersion: v1
16kind: ConfigMap
17metadata:
18 name: global-onap-configmap
19 namespace: "{{ .Values.nsPrefix }}"
20data:
yuryn9e4fa272017-09-14 20:02:53 +030021{{ .Files.Get "onap-parameters.yaml" | indent 2 }}
Mandeep Khindadc2dc862017-09-08 05:20:30 +000022---
23apiVersion: v1
24kind: Pod
25metadata:
26 name: {{ .Chart.Name }}
27 namespace: "{{ .Values.nsPrefix }}"
28spec:
29 containers:
30 - name: {{ .Chart.Name }}
mayankg2703bc6f0d72018-01-29 09:57:05 +000031 image: "{{ .Values.image.repository }}"
Mandeep Khindadc2dc862017-09-08 05:20:30 +000032 imagePullPolicy: {{ .Values.image.pullPolicy }}
33 envFrom:
34 - configMapRef:
35 name: global-onap-configmap
36 env:
37 - name: NAMESPACE
38 valueFrom:
39 fieldRef:
40 fieldPath: metadata.namespace
41 - name: NAMESPACE_PREFIX
mayankg2703bc6f0d72018-01-29 09:57:05 +000042 value: {{ .Values.nsPrefix }}
Mandeep Khindadc2dc862017-09-08 05:20:30 +000043 - name: DOCKER_SHARE_PATH
44 value: {{ .Values.dockerSharePath }}
45 volumeMounts:
46 - name: config-init-root
47 mountPath: /config-init/
48 volumes:
49 - name: config-init-root
50 hostPath:
51 path: {{ .Values.dockerSharePath }}
mayankg2703bc6f0d72018-01-29 09:57:05 +000052 restartPolicy: Never