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 }}
47 - name: {{ include "common.name" . }}
52 - 'export POL_BASIC_AUTH=`echo -n $POL_BASIC_AUTH_USER:$POL_BASIC_AUTH_PASSWORD | base64`; /startService.sh'
53 image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
54 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
56 - name: SPRING_PROFILE
57 value: "{{ .Values.config.springProfile }}"
59 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "neng-db-secret" "key" "login") | indent 10}}
61 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "neng-db-secret" "key" "password") | indent 10}}
63 value: jdbc:mysql://{{ include "common.mariadbService" . }}:{{ include "common.mariadbPort" . }}/{{ index .Values "mariadb-galera" "db" "name" }}
64 - name: POL_CLIENT_AUTH
65 value: "{{ .Values.config.polClientAuth }}"
66 - name: POL_BASIC_AUTH_USER
67 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "pol-basic-auth-secret" "key" "login") | indent 10}}
68 - name: POL_BASIC_AUTH_PASSWORD
69 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "pol-basic-auth-secret" "key" "password") | indent 10}}
71 {{- if (include "common.needTLS" .) }}
72 value: "{{ .Values.config.polUrl.https }}"
74 value: "{{ .Values.config.polUrl.http }}"
77 value: "{{ .Values.config.polEnv }}"
79 value: "{{ .Values.config.polReqId }}"
81 value: "{{ .Values.config.aaiCertPass }}"
83 value: "{{ .Values.config.aaiCertPath }}"
85 {{- if (include "common.needTLS" .) }}
86 value: "{{ .Values.config.aaiUri.https }}"
88 value: "{{ .Values.config.aaiUri.http }}"
91 value: "{{ .Values.config.aaiAuth }}"
92 - name: DISABLE_HOST_VERIFICATION
93 value: "{{ .Values.config.disableHostVerification }}"
96 mountPath: /opt/etc/config/aai_keystore
99 resources: {{ include "common.resources" . | nindent 10 }}
100 {{- if .Values.nodeSelector }}
102 {{ toYaml .Values.nodeSelector | indent 10 }}
104 {{- if .Values.affinity }}
106 {{ toYaml .Values.affinity | indent 10 }}
108 serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}}
112 secretName: {{ include "common.release" . }}-aai-keystore
114 - name: "{{ include "common.namespace" . }}-docker-registry-key"