aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/common/network-name-gen/templates/deployment.yaml
diff options
context:
space:
mode:
authorJack Lucas <jflos@sonoris.net>2022-06-22 15:01:55 +0000
committerGerrit Code Review <gerrit@onap.org>2022-06-22 15:01:55 +0000
commitfa9bd70bd3e2b4e5ca8f070e9a5f6125fc7fc283 (patch)
treea595468e2b5a963045564f3d82fb5e1bac2b6865 /kubernetes/common/network-name-gen/templates/deployment.yaml
parentc51624459fbc94385c38584b45121f724251771a (diff)
parent96397bc43da6d39d8cc85767974d7c8fc9d08467 (diff)
Merge "[COMMON] Network-name-gen and dgbuilder ServiceMesh compatibility"
Diffstat (limited to 'kubernetes/common/network-name-gen/templates/deployment.yaml')
-rw-r--r--kubernetes/common/network-name-gen/templates/deployment.yaml12
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