mirror of
https://github.com/bitnami/charts.git
synced 2026-03-15 06:47:24 +08:00
[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:
@@ -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
|
||||
|
||||
@@ -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" }}
|
||||
|
||||
Reference in New Issue
Block a user