X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=ric-platform%2F50-RIC-Platform%2Fhelm%2Fappmgr%2Ftemplates%2Fenv.yaml;h=69ef4a14e9876080aaeb96b0bc3ecd52d2a6d083;hb=48b6b2509c0c68197275a5bcf5b390ef86ee53a6;hp=e0139f09a404e0ff423ca4773bcf50ee2026e82b;hpb=bb6097c9e2fa2918028892b2c5e675841029bee9;p=it%2Fdep.git diff --git a/ric-platform/50-RIC-Platform/helm/appmgr/templates/env.yaml b/ric-platform/50-RIC-Platform/helm/appmgr/templates/env.yaml index e0139f09..69ef4a14 100644 --- a/ric-platform/50-RIC-Platform/helm/appmgr/templates/env.yaml +++ b/ric-platform/50-RIC-Platform/helm/appmgr/templates/env.yaml @@ -14,7 +14,9 @@ # See the License for the specific language governing permissions and # # limitations under the License. # ################################################################################ - +{{- $tillerKey := .Values.appmgr.tillerkey | default "ricxapp" }} +{{- $topCtx := . }} +{{- $ctx := dict "ctx" $topCtx "key" $tillerKey }} apiVersion: v1 kind: ConfigMap metadata: @@ -26,4 +28,15 @@ data: DBAAS_PORT_6379_TCP_ADDR: {{ include "common.servicename.dbaas.tcp" . | quote }} DBAAS_PORT_6379_TCP_PORT: {{ include "common.serviceport.dbaas.tcp" . | quote }} RMR_RTG_SVC: {{ include "common.serviceport.appmgr.rmr.route" . | quote }} - +{{- $certPath := .Values.appmgr.appcertpath | default "/opt/ric/certificates" }} +{{- $secretPath := .Values.appmgr.appsecretpath | default "/opt/ric/secret" }} +{{- if eq (include "common.tillerTLSVerify" $ctx) "true" }} + HELM_TLS_VERIFY: "true" + HELM_TLS_CA_CERT: "{{ $secretPath }}/tiller-ca.cert" + HELM_TLS_HOSTNAME: {{ include "common.servicename.tiller" $ctx | quote }} +{{- end }} +{{- if eq (include "common.tillerTLSAuthenticate" $ctx) "true" }} + HELM_TLS_ENABLED: "true" + HELM_TLS_CERT: "{{ $secretPath }}/helm-client.cert" + HELM_TLS_KEY: "{{ $secretPath }}/helm-client.key" +{{- end }}