2 # Copyright © 2017 Amdocs, Bell Canada
3 # Modifications Copyright © 2018 AT&T,VMware
4 # Modifications Copyright (C) 2020 Wipro Limited.
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
10 # http://www.apache.org/licenses/LICENSE-2.0
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
22 name: {{ include "common.fullname" . }}
23 namespace: {{ include "common.namespace" . }}
25 app: {{ include "common.name" . }}
26 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
27 release: {{ include "common.release" . }}
28 heritage: {{ .Release.Service }}
32 app: {{ include "common.name" . }}
33 replicas: {{ .Values.replicaCount }}
37 app: {{ include "common.name" . }}
38 release: {{ include "common.release" . }}
51 fieldPath: metadata.namespace
52 image: "{{ include "common.repository" . }}/{{ .Values.global.readinessImage }}"
53 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
54 name: {{ include "common.name" . }}-readiness
59 until [ $resp = "200" ]; do
60 resp=$(curl -s -o /dev/null -k --write-out %{http_code} https://aaf-sms.{{ include "common.namespace" . }}:10443/v1/sms/domain/osdf/secret);
69 fieldPath: metadata.namespace
70 image: "{{ .Values.global.dockerHubRepository }}/{{ .Values.global.curlImage }}"
71 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
72 name: {{ include "common.name" . }}-osdf-sms-readiness
73 {{ include "common.certInitializer.initContainer" . | indent 6 }}
75 - name: {{ include "common.name" . }}
76 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
77 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
83 grep -v '^$' /opt/osdf/osaaf/local/org.onap.oof.crt > /tmp/oof.crt
84 cat /tmp/oof.crt /opt/app/ssl_cert/intermediate_root_ca.pem /opt/app/ssl_cert/aaf_root_ca.cer >> /opt/osdf/org.onap.oof.crt
85 ./osdfapp.sh -x osdfapp.py
87 - containerPort: {{ .Values.service.internalPort }}
88 # disable liveness probe when breakpoints set in debugger
89 # so K8s doesn't restart unresponsive container
90 {{- if .Values.liveness.enabled }}
93 port: {{ .Values.service.internalPort }}
94 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
95 periodSeconds: {{ .Values.liveness.periodSeconds }}
99 port: {{ .Values.service.internalPort }}
100 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
101 periodSeconds: {{ .Values.readiness.periodSeconds }}
104 {{ include "common.certInitializer.volumeMount" . | indent 10 }}
105 - mountPath: /etc/localtime
108 - mountPath: /opt/osdf/config/osdf_config.yaml
109 name: {{ include "common.fullname" . }}-config
110 subPath: osdf_config.yaml
111 - mountPath: /opt/app/ssl_cert/aaf_root_ca.cer
112 name: {{ include "common.fullname" . }}-onap-certs
113 subPath: aaf_root_ca.cer
114 - mountPath: /opt/app/ssl_cert/intermediate_root_ca.pem
115 name: {{ include "common.fullname" . }}-onap-certs
116 subPath: intermediate_root_ca.pem
117 - mountPath: /opt/osdf/config/common_config.yaml
118 name: {{ include "common.fullname" . }}-config
119 subPath: common_config.yaml
120 - mountPath: /opt/osdf/config/log.yml
121 name: {{ include "common.fullname" . }}-config
124 {{ include "common.resources" . | indent 12 }}
125 {{- if .Values.nodeSelector }}
127 {{ toYaml .Values.nodeSelector | indent 10 }}
129 {{- if .Values.affinity }}
131 {{ toYaml .Values.affinity | indent 10 }}
135 {{ include "common.certInitializer.volumes" . | nindent 8 }}
139 - name: {{ include "common.fullname" . }}-config
141 name: {{ include "common.fullname" . }}-configmap
143 - key: osdf_config.yaml
144 path: osdf_config.yaml
145 - key: common_config.yaml
146 path: common_config.yaml
149 {{ include "oof.certificate.volume" . | indent 8 }}
151 - name: "{{ include "common.namespace" . }}-docker-registry-key"