diff --git a/templates/service-app-session-manager/service-app-session-manager.yaml b/templates/service-app-session-manager/service-app-session-manager.yaml index 4417fb4..cf20da0 100644 --- a/templates/service-app-session-manager/service-app-session-manager.yaml +++ b/templates/service-app-session-manager/service-app-session-manager.yaml @@ -1,3 +1,4 @@ +{{- if .Values.serviceAppSessionManager.enabled }} {{- $statefulRabbitMq_secret := include "common.secretName.render" ( dict "existingSecret" $.Values.statefulRabbitMq.auth.existingSecret "defaultSecret" "cognigy-rabbitmq") }} {{- $statefulRedis_secret := include "common.secretName.render" ( dict "existingSecret" $.Values.statefulRedis.auth.existingSecret "defaultSecret" "cognigy-redis-password") }} {{- $serviceAppSessionManager_dbSecret := include "common.secretName.render" ( dict "existingSecret" $.Values.dbConnectionString.services.serviceAppSessionManager.auth.existingSecret "defaultSecret" (printf "cognigy-%s" $.Values.dbConnectionString.services.serviceAppSessionManager.serviceName)) }} @@ -113,4 +114,5 @@ spec: {{- include "image.pullSecrets" $ | nindent 6 }} securityContext: {{- toYaml .securityContext | nindent 8 }} -{{- end }} \ No newline at end of file +{{- end }} +{{- end }}