Skip to content

Commit 9c636a3

Browse files
authoredOct 2, 2023
[bitnami/redis] Use common capabilities for PSP (#19639)
1 parent 3bcbd9a commit 9c636a3

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed
 

‎bitnami/redis/Chart.lock

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
dependencies:
22
- name: common
33
repository: oci://registry-1.docker.io/bitnamicharts
4-
version: 2.10.0
5-
digest: sha256:023ded170632d04528f30332370f34fc8fb96efb2886a01d934cb3bd6e6d2e09
6-
generated: "2023-09-05T11:35:55.621686+02:00"
4+
version: 2.13.0
5+
digest: sha256:6b6084c51b6a028a651f6e8539d0197487ee807c5bae44867d4ea6ccd1f9ae93
6+
generated: "2023-09-29T11:06:04.261917+02:00"

‎bitnami/redis/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ maintainers:
3434
name: redis
3535
sources:
3636
- https://github.com/bitnami/charts/tree/main/bitnami/redis
37-
version: 18.1.1
37+
version: 18.1.2

‎bitnami/redis/templates/master/psp.yaml

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ Copyright VMware, Inc.
33
SPDX-License-Identifier: APACHE-2.0
44
*/}}
55

6-
{{- $pspAvailable := (semverCompare "<1.25-0" (include "common.capabilities.kubeVersion" .)) -}}
7-
{{- if and $pspAvailable .Values.podSecurityPolicy.create }}
6+
{{- if and (include "common.capabilities.psp.supported" .) .Values.podSecurityPolicy.create }}
87
apiVersion: policy/v1beta1
98
kind: PodSecurityPolicy
109
metadata:

‎bitnami/redis/templates/role.yaml

+1-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ metadata:
1414
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
1515
{{- end }}
1616
rules:
17-
{{- $pspAvailable := (semverCompare "<1.25-0" (include "common.capabilities.kubeVersion" .)) -}}
18-
{{- if and $pspAvailable .Values.podSecurityPolicy.enabled }}
17+
{{- if and (include "common.capabilities.psp.supported" .) .Values.podSecurityPolicy.enabled }}
1918
- apiGroups:
2019
- '{{ template "podSecurityPolicy.apiGroup" . }}'
2120
resources:

0 commit comments

Comments
 (0)
Please sign in to comment.