1 # Copyright © 2017 Amdocs, Bell Canada
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
7 # http://www.apache.org/licenses/LICENSE-2.0
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.
18 name: {{ .Release.Name }}-create-config
19 namespace: {{ include "common.namespace" . }}
21 app: {{ include "common.name" . }}
22 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
23 release: {{ .Release.Name }}
24 heritage: {{ .Release.Service }}
30 release: {{ .Release.Name }}
33 - name: {{ include "common.name" . }}-config-container
34 image: "{{ include "common.repository" . }}/{{ .Values.aaf_config.image }}"
35 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
37 - mountPath: "/opt/app/osaaf"
38 name: {{ include "common.name" . }}-config-vol
41 value: "{{ .Values.global.cadi.hostname }}"
43 value: "{{ .Values.global.cadi.aaf_env }}"
44 - name: AAF_REGISTER_AS
45 value: "{{ .Values.global.cadi.aaf_register_as }}"
47 value: "{{ .Values.global.cadi.cadi_latitude }}"
49 value: "{{ .Values.global.cadi.cadi_longitude }}"
51 value: "{{ .Values.global.cassandraServiceName }}"
52 - name: AAF_LOCATOR_AS
53 value: "{{ .Values.global.locateServiceName }}"
55 {{ include "common.resources" . | indent 12 }}
56 {{- if .Values.nodeSelector }}
58 {{ toYaml .Values.nodeSelector | indent 10 }}
60 {{- if .Values.affinity }}
62 {{ toYaml .Values.affinity | indent 10 }}
65 - name: {{ include "common.name" . }}-config-vol
66 {{- if .Values.global.persistence.enabled }}
67 persistentVolumeClaim:
68 claimName: {{ .Release.Name }}-config
72 restartPolicy: OnFailure
74 - name: "{{ include "common.namespace" . }}-docker-registry-key"