diff --git a/charts/modjo-microservice/templates/rollout.yaml b/charts/modjo-microservice/templates/rollout.yaml index 29b5a4d..c6c29d3 100644 --- a/charts/modjo-microservice/templates/rollout.yaml +++ b/charts/modjo-microservice/templates/rollout.yaml @@ -19,8 +19,8 @@ spec: strategy: {{- if eq .Values.rollout.strategy.type "BlueGreen" }} blueGreen: - {{- if .Values.service.enabled }} activeService: {{ default (include "common.names.fullname" .) .Values.rollout.strategy.blueGreen.activeService | quote }} + {{- if .Values.exposed }} previewService: {{ default (include "common.names.suffixedName" (dict "root" . "suffix" "preview")) .Values.rollout.strategy.blueGreen.previewService | quote }} {{- end }} autoPromotionEnabled: {{ .Values.rollout.strategy.blueGreen.autoPromotionEnabled }} @@ -61,7 +61,7 @@ spec: allowPrivilegeEscalation: false image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" imagePullPolicy: {{ .Values.image.pullPolicy }} - {{- if .Values.service.enabled }} + {{- if .Values.exposed }} ports: - name: http containerPort: 4000 diff --git a/charts/modjo-microservice/values.yaml b/charts/modjo-microservice/values.yaml index 0e74fb0..8a4e56a 100644 --- a/charts/modjo-microservice/values.yaml +++ b/charts/modjo-microservice/values.yaml @@ -1,6 +1,8 @@ fullnameOverride: "" nameOverride: "" +exposed: true + image: repository: tag: