1 # Copyright © 2017 Amdocs, Bell Canada
2 # Modifications Copyright © 2018 AT&T,VMware
3 # Modifications Copyright (C) 2020 Wipro Limited.
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.
20 name: {{ include "common.fullname" . }}
21 namespace: {{ include "common.namespace" . }}
23 app: {{ include "common.name" . }}
24 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
25 release: {{ include "common.release" . }}
26 heritage: {{ .Release.Service }}
30 app: {{ include "common.name" . }}
31 replicas: {{ .Values.replicaCount }}
35 app: {{ include "common.name" . }}
36 release: {{ include "common.release" . }}
49 fieldPath: metadata.namespace
50 image: "{{ include "common.repository" . }}/{{ .Values.global.readinessImage }}"
51 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
52 name: {{ include "common.name" . }}-readiness
57 until [ $resp = "200" ]; do
58 resp=$(curl -s -o /dev/null -k --write-out %{http_code} https://aaf-sms.{{ include "common.namespace" . }}:10443/v1/sms/domain/osdf/secret);
67 fieldPath: metadata.namespace
68 image: "{{ .Values.global.dockerHubRepository }}/{{ .Values.global.curlImage }}"
69 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
70 name: {{ include "common.name" . }}-osdf-sms-readiness
71 {{ include "common.certInitializer.initContainer" . | indent 6 }}
73 - name: {{ include "common.name" . }}
74 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
75 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
81 grep -v '^$' /opt/osdf/osaaf/local/org.onap.oof.crt > /tmp/oof.crt
82 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
83 ./osdfapp.sh -x osdfapp.py
85 - containerPort: {{ .Values.service.internalPort }}
86 # disable liveness probe when breakpoints set in debugger
87 # so K8s doesn't restart unresponsive container
88 {{- if .Values.liveness.enabled }}
91 port: {{ .Values.service.internalPort }}
92 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
93 periodSeconds: {{ .Values.liveness.periodSeconds }}
97 port: {{ .Values.service.internalPort }}
98 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
99 periodSeconds: {{ .Values.readiness.periodSeconds }}
102 {{ include "common.certInitializer.volumeMount" . | indent 10 }}
103 - mountPath: /etc/localtime
106 - mountPath: /opt/osdf/config/osdf_config.yaml
107 name: {{ include "common.fullname" . }}-config
108 subPath: osdf_config.yaml
109 - mountPath: /opt/app/ssl_cert/aaf_root_ca.cer
110 name: {{ include "common.fullname" . }}-onap-certs
111 subPath: aaf_root_ca.cer
112 - mountPath: /opt/app/ssl_cert/intermediate_root_ca.pem
113 name: {{ include "common.fullname" . }}-onap-certs
114 subPath: intermediate_root_ca.pem
115 - mountPath: /opt/osdf/config/common_config.yaml
116 name: {{ include "common.fullname" . }}-config
117 subPath: common_config.yaml
118 - mountPath: /opt/osdf/config/log.yml
119 name: {{ include "common.fullname" . }}-config
122 {{ include "common.resources" . | indent 12 }}
123 {{- if .Values.nodeSelector }}
125 {{ toYaml .Values.nodeSelector | indent 10 }}
127 {{- if .Values.affinity }}
129 {{ toYaml .Values.affinity | indent 10 }}
133 {{ include "common.certInitializer.volumes" . | nindent 8 }}
137 - name: {{ include "common.fullname" . }}-config
139 name: {{ include "common.fullname" . }}-configmap
141 - key: osdf_config.yaml
142 path: osdf_config.yaml
143 - key: common_config.yaml
144 path: common_config.yaml
147 {{ include "oof.certificate.volume" . | indent 8 }}
149 - name: "{{ include "common.namespace" . }}-docker-registry-key"