From be2c6c1dd4fd8a24ac71347b723975be89947f52 Mon Sep 17 00:00:00 2001 From: Fabio Rauber Date: Wed, 6 Jul 2022 15:45:09 -0300 Subject: [PATCH] Added needed servicename parameter for statefulset --- charts/postfix/v0.1.0/templates/app.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/charts/postfix/v0.1.0/templates/app.yaml b/charts/postfix/v0.1.0/templates/app.yaml index 8039231..02727e3 100644 --- a/charts/postfix/v0.1.0/templates/app.yaml +++ b/charts/postfix/v0.1.0/templates/app.yaml @@ -8,6 +8,9 @@ spec: {{- if not .Values.autoscaling.enabled }} replicas: {{ .Values.replicaCount }} {{- end }} + {{- if (eq .Values.postfix.kind "StatefulSet") }} + serviceName: {{ include "postfix.fullname" . }} + {{- end }} selector: matchLabels: {{- include "postfix.selectorLabels" . | nindent 6 }}