From 5c43804d5c7746c797882f91a65b0531eb447624 Mon Sep 17 00:00:00 2001
From: Sheogorath <sheogorath@shivering-isles.com>
Date: Thu, 6 Oct 2022 17:15:13 +0200
Subject: [PATCH] fix(mok): Use correct value for externalTrafficPolicy

---
 charts/mok/Chart.yaml                                | 2 +-
 charts/mok/README.md                                 | 2 +-
 charts/mok/templates/postfix.yaml                    | 2 +-
 charts/mok/tests/__snapshot__/postfix_test.yaml.snap | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/charts/mok/Chart.yaml b/charts/mok/Chart.yaml
index d419a673b..76128f726 100644
--- a/charts/mok/Chart.yaml
+++ b/charts/mok/Chart.yaml
@@ -3,7 +3,7 @@ name: mok
 description: |
   Mail on Kubernetes (MoK) is a project to deploy a functional mailserver that runs without a database server on Kubernetes, taking advantage of configmaps and secret.
 type: application
-version: 0.7.0
+version: 0.7.1
 sources:
   - https://de.postfix.org/ftpmirror/index.html
   - https://github.com/dovecot/core
diff --git a/charts/mok/README.md b/charts/mok/README.md
index 5995695cd..7971e50e3 100644
--- a/charts/mok/README.md
+++ b/charts/mok/README.md
@@ -1,6 +1,6 @@
 # mok
 
-![Version: 0.7.0](https://img.shields.io/badge/Version-0.7.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
+![Version: 0.7.1](https://img.shields.io/badge/Version-0.7.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
 
 Mail on Kubernetes (MoK) is a project to deploy a functional mailserver that runs without a database server on Kubernetes, taking advantage of configmaps and secret.
 
diff --git a/charts/mok/templates/postfix.yaml b/charts/mok/templates/postfix.yaml
index 00326b5fd..139fbaa41 100644
--- a/charts/mok/templates/postfix.yaml
+++ b/charts/mok/templates/postfix.yaml
@@ -27,7 +27,7 @@ spec:
     {{- include "mok.selectorLabels" . | nindent 4 }}
     app.kubernetes.io/component: postfix
   type: {{ .Values.postfix.service.public.type }}
-  externalTrafficPolicy: {{ .Values.postfix.service.externalTrafficPolicy }}
+  externalTrafficPolicy: {{ .Values.postfix.service.public.externalTrafficPolicy }}
 ---
 apiVersion: apps/v1
 kind: StatefulSet
diff --git a/charts/mok/tests/__snapshot__/postfix_test.yaml.snap b/charts/mok/tests/__snapshot__/postfix_test.yaml.snap
index 07b48084b..57b8d63ad 100644
--- a/charts/mok/tests/__snapshot__/postfix_test.yaml.snap
+++ b/charts/mok/tests/__snapshot__/postfix_test.yaml.snap
@@ -13,7 +13,7 @@ should match snapshot:
         helm.sh/chart: mok-1.2.3
       name: RELEASE-NAME-mok-postfix
     spec:
-      externalTrafficPolicy: null
+      externalTrafficPolicy: Local
       ports:
       - name: smtp
         port: 25
-- 
GitLab