fix: exposed

This commit is contained in:
devthejo 2023-12-17 00:50:18 +01:00
parent 052299aec3
commit 9aaf012e4e
Signed by: devthejo
GPG key ID: C04215C627711F5C
2 changed files with 4 additions and 2 deletions

View file

@ -19,8 +19,8 @@ spec:
strategy: strategy:
{{- if eq .Values.rollout.strategy.type "BlueGreen" }} {{- if eq .Values.rollout.strategy.type "BlueGreen" }}
blueGreen: blueGreen:
{{- if .Values.service.enabled }}
activeService: {{ default (include "common.names.fullname" .) .Values.rollout.strategy.blueGreen.activeService | quote }} 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 }} previewService: {{ default (include "common.names.suffixedName" (dict "root" . "suffix" "preview")) .Values.rollout.strategy.blueGreen.previewService | quote }}
{{- end }} {{- end }}
autoPromotionEnabled: {{ .Values.rollout.strategy.blueGreen.autoPromotionEnabled }} autoPromotionEnabled: {{ .Values.rollout.strategy.blueGreen.autoPromotionEnabled }}
@ -61,7 +61,7 @@ spec:
allowPrivilegeEscalation: false allowPrivilegeEscalation: false
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }} imagePullPolicy: {{ .Values.image.pullPolicy }}
{{- if .Values.service.enabled }} {{- if .Values.exposed }}
ports: ports:
- name: http - name: http
containerPort: 4000 containerPort: 4000

View file

@ -1,6 +1,8 @@
fullnameOverride: "" fullnameOverride: ""
nameOverride: "" nameOverride: ""
exposed: true
image: image:
repository: repository:
tag: tag: