fix: do not apply job-patch psp on Kubernetes 1.25 and newer (#9074)
* fix: do not apply job-patch psp on Kubernetes 1.25 and newer Signed-off-by: wilmarguida <w.denouden@guida.nl> * fix: bump kubernetes version for helm chart CI to 1.25.0 Signed-off-by: wilmarguida <w.denouden@guida.nl> Signed-off-by: wilmarguida <w.denouden@guida.nl>
This commit is contained in:
parent
3579ed0487
commit
67f7d3da63
2 changed files with 3 additions and 1 deletions
2
.github/workflows/ci.yaml
vendored
2
.github/workflows/ci.yaml
vendored
|
@ -175,7 +175,7 @@ jobs:
|
|||
uses: engineerd/setup-kind@aa272fe2a7309878ffc2a81c56cfe3ef108ae7d0 #v0.5.0
|
||||
with:
|
||||
version: v0.15.0
|
||||
image: kindest/node:v1.24.4
|
||||
image: kindest/node:v1.25.0
|
||||
|
||||
- uses: geekyeggo/delete-artifact@b73cb986740e466292a536d0e32e2666c56fdeb3 # v1
|
||||
with:
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
{{- if (semverCompare "<1.25.0-0" .Capabilities.KubeVersion.Version) }}
|
||||
{{- if and .Values.controller.admissionWebhooks.enabled .Values.controller.admissionWebhooks.patch.enabled .Values.podSecurityPolicy.enabled (empty .Values.controller.admissionWebhooks.existingPsp) -}}
|
||||
apiVersion: policy/v1beta1
|
||||
kind: PodSecurityPolicy
|
||||
|
@ -37,3 +38,4 @@ spec:
|
|||
- secret
|
||||
- downwardAPI
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
|
Loading…
Reference in a new issue