2 # Copyright 2018 Intel Corporation, Inc
3 # Modifications © 2020 AT&T
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 }}
29 replicas: {{ .Values.replicaCount }}
32 app: {{ include "common.name" . }}
36 app: {{ include "common.name" . }}
37 release: {{ include "common.release" . }}
39 initContainers: {{ include "common.certInitializer.initContainer" . | nindent 8 }}
40 # Currently intermediate certificate is not given by AAF CM so we need
41 # to give it "by hand"
42 {{- if .Values.global.aafEnabled }}
43 - name: {{ include "common.fullname" . }}-add-intermediate-cert
49 cat /int-certs/intermediate_root_ca.pem >> {{ .Values.certInitializer.mountPath }}/local/org.onap.aaf-sms.crt
50 image: "{{ .Values.global.busyboxRepository }}/{{ .Values.global.busyboxImage }}"
51 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
52 volumeMounts: {{ include "common.certInitializer.volumeMount" . | nindent 12 }}
53 - mountPath: /int-certs
54 name: {{ include "common.fullname" . }}-int-certs
57 - name: {{ include "common.fullname" . }}-fix-permission
63 chmod -R 775 /sms/auth
64 chown -R 1000:1000 /sms/auth
65 image: "{{ .Values.global.busyboxRepository }}/{{ .Values.global.busyboxImage }}"
66 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
68 - mountPath: /sms/auth
69 name: {{ include "common.fullname" . }}-auth
70 - name: {{ include "common.name" . }}-readiness
71 image: "{{ include "common.repository" . }}/{{ .Values.global.readinessImage }}"
72 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
79 - "aaf-sms-vault-backend"
85 fieldPath: metadata.namespace
87 - image: "{{ include "common.repository" . }}/{{ .Values.image }}"
88 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
89 name: {{ include "common.name" . }}
90 command: ["/sms/bin/sms"]
93 - containerPort: {{ .Values.service.internalPort }}
94 {{- if eq .Values.liveness.enabled true }}
97 port: {{ .Values.service.internalPort }}
99 path: /v1/sms/quorum/status
100 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
101 periodSeconds: {{ .Values.liveness.periodSeconds }}
105 port: {{ .Values.service.internalPort }}
107 path: /v1/sms/quorum/status
108 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
109 periodSeconds: {{ .Values.readiness.periodSeconds }}
110 volumeMounts: {{ include "common.certInitializer.volumeMount" . | nindent 10 }}
111 - mountPath: /etc/localtime
114 - mountPath: /sms/smsconfig.json
115 name: {{ include "common.name" .}}
116 subPath: smsconfig.json
117 - mountPath: /sms/auth
118 name: {{ include "common.fullname" . }}-auth
120 {{ include "common.resources" . | indent 10 }}
121 {{- if .Values.nodeSelector }}
123 {{ toYaml .Values.nodeSelector | indent 10 }}
125 {{- if .Values.affinity }}
127 {{ toYaml .Values.affinity | indent 10 }}
129 volumes: {{ include "common.certInitializer.volumes" . | nindent 6 }}
133 - name : {{ include "common.name" . }}
135 name: {{ include "common.fullname" . }}
136 {{- if .Values.global.aafEnabled }}
137 - name: {{ include "common.fullname" . }}-int-certs
139 secretName: {{ include "common.fullname" . }}-int-certs
141 - name: {{ include "common.fullname" . }}-auth
142 {{- if .Values.persistence.enabled }}
143 persistentVolumeClaim:
144 claimName: {{ include "common.fullname" . }}
149 - name: "{{ include "common.namespace" . }}-docker-registry-key"