Fix for #84: Do not set storageClassName if not set in values.yml

This commit is contained in:
Bojan Čekrlić 2021-08-22 17:48:27 +02:00
parent ddc147f734
commit 3cb19e7c13
7 changed files with 7 additions and 2 deletions

View file

@ -16,7 +16,7 @@ stdout_logfile_maxbytes = 0
stderr_logfile_maxbytes = 0
[program:postfix]
command = /usr/sbin/postfix -c /etc/postfix start-fg
command = /postfix.sh
autostart = true
autorestart = false
directory = /etc/postfix

View file

@ -145,7 +145,7 @@ spec:
accessModes: {{- toYaml .Values.persistence.accessModes | nindent 10 }}
{{- if (eq "-" .Values.persistence.storageClass) }}
storageClassName: ""
{{- else }}
{{- end }}{{- if .Values.persistence.storageClass }}
storageClassName: "{{ .Values.persistence.storageClass }}"
{{- end }}
resources:

0
scripts/common-run.sh Normal file → Executable file
View file

0
scripts/common.sh Normal file → Executable file
View file

0
scripts/opendkim.sh Normal file → Executable file
View file

5
scripts/postfix.sh Executable file
View file

@ -0,0 +1,5 @@
#!/bin/sh
/usr/sbin/postfix -c /etc/postfix start-fg | \
fgrep -v 'connect from localhost[127.0.0.1]'
fgrep -v 'lost connection after EHLO from localhost[127.0.0.1]' | \
fgrep -v 'disconnect from localhost[127.0.0.1] ehlo=1 commands=1'

0
scripts/run.sh Normal file → Executable file
View file