summaryrefslogtreecommitdiffstats
path: root/kubernetes/common/network-name-gen/templates
diff options
context:
space:
mode:
authorbt2983 <bt2983@att.com>2020-05-10 17:06:09 -0600
committerYuriy Malakov <Yuriy.Malakov@att.com>2020-05-26 11:56:43 +0000
commit2c8786c19cb4fa93f12e59f9f8f1d697a68e968a (patch)
tree6e1957ff5fd92d1afe81964a72076e5d8b26e9ea /kubernetes/common/network-name-gen/templates
parent5cb53f1343db7f33c9df88ebbc6496603b273769 (diff)
Naming micro-service - Helm chart values updates.
Changes requested by Yuriy. Moved policy password to secrets. Issue-ID: CCSDK-1307 Signed-off-by: bt2983 <bt2983@att.com> Change-Id: Ibec80f147ad1f7623b5915afd0072f7add76ef9f (cherry picked from commit 91566f00ca5ad9d76ff658f05fc8596ab481287a)
Diffstat (limited to 'kubernetes/common/network-name-gen/templates')
-rw-r--r--kubernetes/common/network-name-gen/templates/deployment.yaml11
1 files changed, 9 insertions, 2 deletions
diff --git a/kubernetes/common/network-name-gen/templates/deployment.yaml b/kubernetes/common/network-name-gen/templates/deployment.yaml
index 3e9e849052..b9550c7666 100644
--- a/kubernetes/common/network-name-gen/templates/deployment.yaml
+++ b/kubernetes/common/network-name-gen/templates/deployment.yaml
@@ -57,6 +57,11 @@ spec:
name: {{ include "common.name" . }}-readiness
containers:
- name: {{ include "common.name" . }}
+ command:
+ - bash
+ args:
+ - '-c'
+ - 'export POL_BASIC_AUTH=`echo -n $POL_BASIC_AUTH_USER:$POL_BASIC_AUTH_PASSWORD | base64`; /startService.sh'
image: "{{ include "common.repository" . }}/{{ .Values.image }}"
imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
env:
@@ -70,8 +75,10 @@ spec:
value: jdbc:mysql://{{ include "common.mariadbService" . }}:{{ include "common.mariadbPort" . }}/{{ index .Values "mariadb-galera" "config" "mysqlDatabase" }}
- name: POL_CLIENT_AUTH
value: "{{ .Values.config.polClientAuth }}"
- - name: POL_BASIC_AUTH
- value: "{{ .Values.config.polBasicAuth }}"
+ - name: POL_BASIC_AUTH_USER
+ {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "pol-basic-auth-secret" "key" "login") | indent 10}}
+ - name: POL_BASIC_AUTH_PASSWORD
+ {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "pol-basic-auth-secret" "key" "password") | indent 10}}
- name: POL_URL
value: "{{ .Values.config.polUrl }}"
- name: POL_ENV