2 # Copyright © 2017 Amdocs, Bell Canada
3 # Modifications Copyright © 2018 AT&T,VMware
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
9 # http://www.apache.org/licenses/LICENSE-2.0
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
21 name: {{ include "common.fullname" . }}
22 namespace: {{ include "common.namespace" . }}
24 app: {{ include "common.name" . }}
25 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
26 release: {{ include "common.release" . }}
27 heritage: {{ .Release.Service }}
31 app: {{ include "common.name" . }}
32 replicas: {{ .Values.replicaCount }}
36 app: {{ include "common.name" . }}
37 release: {{ include "common.release" . }}
40 - name: {{ include "common.name" . }}-readiness
53 fieldPath: metadata.namespace
54 image: "{{ include "common.repository" . }}/{{ .Values.global.readinessImage }}"
55 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
57 - name: {{ include "common.name" . }}-onboard-readiness
62 - "{{ include "common.release" . }}-oof-has-onboard"
68 fieldPath: metadata.namespace
69 image: "{{ include "common.repository" . }}/{{ .Values.global.readinessImage }}"
70 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
72 - name: {{ include "common.name" . }}-cont-sms-readiness
77 until [ $resp = "200" ]; do
78 resp=$(curl -s -o /dev/null -k --write-out %{http_code} https://aaf-sms.{{ include "common.namespace" . }}:10443/v1/sms/domain/has/secret);
87 fieldPath: metadata.namespace
88 image: "{{ .Values.global.dockerHubRepository }}/{{ .Values.global.curlImage }}"
89 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
91 - name: {{ include "common.name" . }}
92 image: "{{ include "common.repository" . }}/{{ .Values.global.image.optf_has }}"
93 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
97 - /usr/local/bin/conductor-controller
98 - --config-file=/usr/local/bin/conductor.conf
99 # disable liveness probe when breakpoints set in debugger
100 # so K8s doesn't restart unresponsive container
101 {{- if .Values.liveness.enabled }}
106 - /usr/local/bin/healthy.sh
107 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
108 periodSeconds: {{ .Values.liveness.periodSeconds }}
114 - /usr/local/bin/healthy.sh
115 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
116 periodSeconds: {{ .Values.readiness.periodSeconds }}
119 - mountPath: /etc/localtime
122 - mountPath: /usr/local/bin/conductor.conf
123 name: {{ .Values.global.commonConfigPrefix }}-config
124 subPath: conductor.conf
125 - mountPath: /usr/local/bin/log.conf
126 name: {{ .Values.global.commonConfigPrefix }}-config
128 - mountPath: /usr/local/bin/healthy.sh
129 name: {{ .Values.global.commonConfigPrefix }}-config
131 - mountPath: /usr/local/bin/AAF_RootCA.cer
132 name: {{ include "common.fullname" . }}-onap-certs
133 subPath: aaf_root_ca.cer
135 {{ include "common.resources" . | indent 12 }}
136 {{- if .Values.nodeSelector }}
138 {{ toYaml .Values.nodeSelector | indent 10 }}
140 {{- if .Values.affinity }}
142 {{ toYaml .Values.affinity | indent 10 }}
148 - name: {{ .Values.global.commonConfigPrefix }}-config
150 name: {{ .Values.global.commonConfigPrefix }}-configmap
152 - key: conductor.conf
158 {{ include "oof.certificate.volume" . | indent 8 }}
160 - name: "{{ include "common.namespace" . }}-docker-registry-key"