diff options
author | 2022-06-02 19:28:13 +0200 | |
---|---|---|
committer | 2022-06-02 19:28:13 +0200 | |
commit | 96397bc43da6d39d8cc85767974d7c8fc9d08467 (patch) | |
tree | b1fa0a7a8e5555ffff9abb6e70edf0d0a36ad93a /kubernetes/common/network-name-gen/templates | |
parent | c8d7cd06f9284c35242429ff0c84ac75efe44fed (diff) |
[COMMON] Network-name-gen and dgbuilder ServiceMesh compatibility
Network-name-gen and dgbuilder charts changes to make it work with servicemesh
Issue-ID: OOM-2982
Signed-off-by: Radoslaw Chmiel <r.chmiel@partner.samsung.com>
Change-Id: I23bffe3f2de6196dbad1bbb03ea0c2fc46313865
Diffstat (limited to 'kubernetes/common/network-name-gen/templates')
-rw-r--r-- | kubernetes/common/network-name-gen/templates/deployment.yaml | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/kubernetes/common/network-name-gen/templates/deployment.yaml b/kubernetes/common/network-name-gen/templates/deployment.yaml index 9bdf19c7ec..97fece8a54 100644 --- a/kubernetes/common/network-name-gen/templates/deployment.yaml +++ b/kubernetes/common/network-name-gen/templates/deployment.yaml @@ -80,7 +80,11 @@ spec: - 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 }}" + {{- if (include "common.needTLS" .) }} + value: "{{ .Values.config.polUrl.https }}" + {{- else }} + value: "{{ .Values.config.polUrl.http }}" + {{- end }} - name: POL_ENV value: "{{ .Values.config.polEnv }}" - name: POL_REQ_ID @@ -90,7 +94,11 @@ spec: - name: AAI_CERT_PATH value: "{{ .Values.config.aaiCertPath }}" - name: AAI_URI - value: "{{ .Values.config.aaiUri }}" + {{- if (include "common.needTLS" .) }} + value: "{{ .Values.config.aaiUri.https }}" + {{- else }} + value: "{{ .Values.config.aaiUri.http }}" + {{- end }} - name: AAI_AUTH value: "{{ .Values.config.aaiAuth }}" - name: DISABLE_HOST_VERIFICATION |