2 # Copyright © 2020 Huawei Technologies Co., Ltd.
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
19 metadata: {{- include "common.resourceMetadata" . | nindent 2 }}
21 selector: {{- include "common.selectors" . | nindent 4 }}
22 replicas: {{ index .Values.replicaCount }}
23 minReadySeconds: {{ index .Values.minReadySeconds }}
25 type: {{ index .Values.updateStrategy.type }}
27 maxUnavailable: {{ index .Values.updateStrategy.maxUnavailable }}
28 maxSurge: {{ index .Values.updateStrategy.maxSurge }}
31 labels: {{- include "common.labels" . | nindent 8 }}
34 - name: {{ include "common.name" . }}-encrypter
40 java Crypto "${AAI_USERNAME}:${AAI_PASSWORD}" "${MSO_KEY}" > /output/.aai_creds
43 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "so-aai-creds" "key" "login") | indent 14 }}
45 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "so-aai-creds" "key" "password") | indent 14 }}
47 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "cnf-adapter-mso-key" "key" "password") | indent 14 }}
48 image: {{ include "repositoryGenerator.dockerHubRepository" . }}/{{ .Values.global.soCryptoImage }}
49 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
53 {{ include "common.readinessCheck.waitFor" . | indent 8 | trim }}
55 - name: {{ include "common.name" . }}
56 image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
62 export AAI_AUTH=$(cat /input/.aai_creds)
64 resources: {{ include "common.resources" . | nindent 12 }}
65 ports: {{- include "common.containerPorts" . | nindent 12 }}
67 - name: ACTUATOR_USERNAME
68 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "server-actuator-creds" "key" "login") | indent 14 }}
69 - name: ACTUATOR_PASSWORD
70 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "server-actuator-creds" "key" "password") | indent 14 }}
73 name: {{ include "common.fullname" . }}-env
74 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
79 mountPath: /app/config
86 path: {{ index .Values.livenessProbe.path}}
87 port: {{ index .Values.containerPort }}
88 scheme: {{ index .Values.livenessProbe.scheme}}
89 initialDelaySeconds: {{ index .Values.livenessProbe.initialDelaySeconds}}
90 periodSeconds: {{ index .Values.livenessProbe.periodSeconds}}
91 timeoutSeconds: {{ index .Values.livenessProbe.timeoutSeconds}}
92 successThreshold: {{ index .Values.livenessProbe.successThreshold}}
93 failureThreshold: {{ index .Values.livenessProbe.failureThreshold}}
94 serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}}
100 name: {{ include "common.fullname" . }}
105 - name: "{{ include "common.namespace" . }}-docker-registry-key"