[bitnami/nginx-ingress-controller] Use common capabilities for PSP (#19634)

This commit is contained in:
Juan Ariza Toledano
2023-09-29 13:23:10 +02:00
committed by GitHub
parent 99515dbe96
commit ca6095426b
3 changed files with 5 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
dependencies:
- name: common
repository: oci://registry-1.docker.io/bitnamicharts
version: 2.12.0
digest: sha256:bee62139700f032539621dd38fa1d7285f277b91577c55ea26045254d33825ed
generated: "2023-09-24T00:16:26.820900105Z"
version: 2.13.0
digest: sha256:6b6084c51b6a028a651f6e8539d0197487ee807c5bae44867d4ea6ccd1f9ae93
generated: "2023-09-29T11:03:32.224146+02:00"

View File

@@ -34,4 +34,4 @@ maintainers:
name: nginx-ingress-controller
sources:
- https://github.com/bitnami/charts/tree/main/bitnami/nginx-ingress-controller
version: 9.8.5
version: 9.8.6

View File

@@ -3,8 +3,7 @@ Copyright VMware, Inc.
SPDX-License-Identifier: APACHE-2.0
*/}}
{{- $pspAvailable := (semverCompare "<1.25-0" (include "common.capabilities.kubeVersion" .)) -}}
{{- if and $pspAvailable .Values.podSecurityPolicy.enabled }}
{{- if and (include "common.capabilities.psp.supported" .) .Values.podSecurityPolicy.enabled }}
apiVersion: policy/v1beta1
kind: PodSecurityPolicy
metadata: