From 94b49968c01e84f7cfa202a61111c489e1476e4d Mon Sep 17 00:00:00 2001
From: Sheogorath <sheogorath@shivering-isles.com>
Date: Mon, 27 Nov 2023 00:35:36 +0100
Subject: [PATCH] fix(mok): Remove unused supervisord from postfix liveness
 check

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

diff --git a/charts/mok/Chart.yaml b/charts/mok/Chart.yaml
index a05b8417e..7ce77e8a5 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.10.2
+version: 0.10.3
 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 67bcca8b3..7f72d23b1 100644
--- a/charts/mok/README.md
+++ b/charts/mok/README.md
@@ -1,6 +1,6 @@
 # mok
 
-![Version: 0.10.2](https://img.shields.io/badge/Version-0.10.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
+![Version: 0.10.3](https://img.shields.io/badge/Version-0.10.3-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 ac3eddb2c..81be0a025 100644
--- a/charts/mok/templates/postfix.yaml
+++ b/charts/mok/templates/postfix.yaml
@@ -185,7 +185,6 @@ spec:
                 - sh
                 - -c
                 - >-
-                  ps axf | fgrep -v grep | fgrep -q "supervisord" &&
                   ps axf | fgrep -v grep | fgrep -q "/usr/libexec/postfix/master"
           startupProbe:
             initialDelaySeconds: 2
diff --git a/charts/mok/tests/__snapshot__/postfix_test.yaml.snap b/charts/mok/tests/__snapshot__/postfix_test.yaml.snap
index 5aa1f7790..e3ecbec7d 100644
--- a/charts/mok/tests/__snapshot__/postfix_test.yaml.snap
+++ b/charts/mok/tests/__snapshot__/postfix_test.yaml.snap
@@ -447,7 +447,7 @@ should match snapshot:
                   command:
                     - sh
                     - -c
-                    - ps axf | fgrep -v grep | fgrep -q "supervisord" && ps axf | fgrep -v grep | fgrep -q "/usr/libexec/postfix/master"
+                    - ps axf | fgrep -v grep | fgrep -q "/usr/libexec/postfix/master"
                 failureThreshold: 1
                 initialDelaySeconds: 5
                 periodSeconds: 5
-- 
GitLab