2 # Copyright (C) 2018 AT&T Intellectual Property.
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: {{ .Values.replicaCount }}
24 metadata: {{- include "common.templateMetadata" . | nindent 6 }}
27 - name: {{ include "common.name" . }}-readiness
31 {{- if .Values.global.mariadbGalera.localCluster }}
33 - {{ index .Values "mariadb-galera" "nameOverride" }}
36 - {{ include "common.release" . }}-{{ index .Values "mariadb-init" "nameOverride" }}-config-job
43 fieldPath: metadata.namespace
44 image: {{ include "repositoryGenerator.image.readiness" . }}
45 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
54 - name: {{ include "common.name" . }}
59 - 'export POL_BASIC_AUTH=`echo -n $POL_BASIC_AUTH_USER:$POL_BASIC_AUTH_PASSWORD | base64`; /startService.sh'
60 image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
61 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
63 - name: SPRING_PROFILE
64 value: "{{ .Values.config.springProfile }}"
66 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "neng-db-secret" "key" "login") | indent 10}}
68 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "neng-db-secret" "key" "password") | indent 10}}
70 value: jdbc:mysql://{{ include "common.mariadbService" . }}:{{ include "common.mariadbPort" . }}/{{ index .Values "mariadb-galera" "db" "name" }}
71 - name: POL_CLIENT_AUTH
72 value: "{{ .Values.config.polClientAuth }}"
73 - name: POL_BASIC_AUTH_USER
74 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "pol-basic-auth-secret" "key" "login") | indent 10}}
75 - name: POL_BASIC_AUTH_PASSWORD
76 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "pol-basic-auth-secret" "key" "password") | indent 10}}
78 {{- if (include "common.needTLS" .) }}
79 value: "{{ .Values.config.polUrl.https }}"
81 value: "{{ .Values.config.polUrl.http }}"
84 value: "{{ .Values.config.polEnv }}"
86 value: "{{ .Values.config.polReqId }}"
88 value: "{{ .Values.config.aaiCertPass }}"
90 value: "{{ .Values.config.aaiCertPath }}"
92 {{- if (include "common.needTLS" .) }}
93 value: "{{ .Values.config.aaiUri.https }}"
95 value: "{{ .Values.config.aaiUri.http }}"
98 value: "{{ .Values.config.aaiAuth }}"
99 - name: DISABLE_HOST_VERIFICATION
100 value: "{{ .Values.config.disableHostVerification }}"
103 mountPath: /opt/etc/config/aai_keystore
104 subPath: aai_keystore
106 resources: {{ include "common.resources" . | nindent 10 }}
107 {{- if .Values.nodeSelector }}
109 {{ toYaml .Values.nodeSelector | indent 10 }}
111 {{- if .Values.affinity }}
113 {{ toYaml .Values.affinity | indent 10 }}
115 serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}}
119 secretName: {{ include "common.release" . }}-aai-keystore
120 {{- include "common.imagePullSecrets" . | nindent 6 }}