[bitnami/postgres-ha]: strict decoding error: unknown field "spec.template.spec.initContainers[0].securityContext.enabled" (#23371)

* omit enabled from securityContext in witness-statefulset.yaml

enabled: true is not allowed in securityContext

strict decoding error: unknown field "spec.template.spec.initContainers[0].securityContext.enabled"

Signed-off-by: Philip Lehmann <philiplehmann@gmail.com>

* bump version to 13.4.4

Signed-off-by: Philip Lehmann <philiplehmann@gmail.com>

---------

Signed-off-by: Philip Lehmann <philiplehmann@gmail.com>
This commit is contained in:
Philip Lehmann
2024-02-27 12:26:40 +01:00
committed by GitHub
parent 71201e8b40
commit ecd39e669a
2 changed files with 2 additions and 2 deletions

View File

@@ -40,4 +40,4 @@ maintainers:
name: postgresql-ha
sources:
- https://github.com/bitnami/charts/tree/main/bitnami/postgresql-ha
version: 13.4.3
version: 13.4.4

View File

@@ -120,7 +120,7 @@ spec:
chown {{ .Values.witness.containerSecurityContext.runAsUser }}:{{ .Values.witness.podSecurityContext.fsGroup }} {{ .Values.persistence.mountPath }}
find {{ .Values.persistence.mountPath }} -mindepth 1 -maxdepth 1 -not -name ".snapshot" -not -name "lost+found" | \
xargs -r chown -R {{ .Values.witness.containerSecurityContext.runAsUser }}:{{ .Values.witness.podSecurityContext.fsGroup }}
securityContext: {{- .Values.volumePermissions.podSecurityContext | toYaml | nindent 12 }}
securityContext: {{- omit .Values.volumePermissions.podSecurityContext "enabled" | toYaml | nindent 12 }}
{{- if .Values.volumePermissions.resources }}
resources: {{- toYaml .Values.volumePermissions.resources | nindent 12 }}
{{- else if ne .Values.volumePermissions.resourcesPreset "none" }}