From da26800b94d75ba810c2e6a39de71bdaa6bf0cb3 Mon Sep 17 00:00:00 2001 From: Nadia Santalla Date: Mon, 5 Aug 2024 13:53:56 +0200 Subject: [PATCH] allow defining ipFamilyPolicy for external service --- mailu/templates/front/service-external.yaml | 3 +++ mailu/values.yaml | 2 ++ 2 files changed, 5 insertions(+) diff --git a/mailu/templates/front/service-external.yaml b/mailu/templates/front/service-external.yaml index d868b73e..07108e46 100644 --- a/mailu/templates/front/service-external.yaml +++ b/mailu/templates/front/service-external.yaml @@ -19,6 +19,9 @@ spec: {{- with .Values.front.externalService }} type: {{ .type | default "ClusterIP" }} externalTrafficPolicy: {{ .externalTrafficPolicy | default "Local" }} + {{- with .ipFamilyPolicy }} + ipFamilyPolicy: {{ . | quote }} + {{- end }} {{- if .loadBalancerIP }} loadBalancerIP: {{ .loadBalancerIP }} {{- end }} diff --git a/mailu/values.yaml b/mailu/values.yaml index 91f44f07..b34fd8fb 100644 --- a/mailu/values.yaml +++ b/mailu/values.yaml @@ -677,6 +677,7 @@ front: ## @param front.externalService.enabled Expose front mail ports via external service (ClusterIP or LoadBalancer) ## @param front.externalService.type Service type (ClusterIP or LoadBalancer) ## @param front.externalService.externalTrafficPolicy Service externalTrafficPolicy (Cluster or Local) + ## @param front.externalService.ipFamilyPolicy Service ipFamilyPolicy, for dual stack clusters. ## @param front.externalService.loadBalancerIP Service loadBalancerIP ## @param front.externalService.annotations Service annotations ## @param front.externalService.ports.pop3 Expose POP3 port - 110/tcp @@ -694,6 +695,7 @@ front: ## type: LoadBalancer loadBalancerIP: "" externalTrafficPolicy: Local + ipFamilyPolicy: "" annotations: {} ports: pop3: false