Skip to content

Commit

Permalink
Disable PodSecurityPolicy for Kubernetes >= v1.25. (#352)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gacko authored Oct 17, 2022
1 parent 4c48d4b commit 9fc7aec
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ and this project's packages adheres to [Semantic Versioning](http://semver.org/s

- Add support to create internal Load Balancers on GCP.

### Removed

- Disable `PodSecurityPolicy` for Kubernetes >= v1.25. ([#352](https://github.com/giantswarm/nginx-ingress-controller-app/pull/352))

## [2.18.2] - 2022-10-17

### Changed
Expand Down
Original file line number Diff line number Diff line change
@@ -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 -}}
apiVersion: policy/v1beta1
kind: PodSecurityPolicy
Expand Down Expand Up @@ -35,3 +36,4 @@ spec:
- secret
- downwardAPI
{{- end }}
{{- end }}
2 changes: 2 additions & 0 deletions helm/nginx-ingress-controller-app/templates/psp.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if (semverCompare "<1.25.0-0" .Capabilities.KubeVersion.Version) }}
{{- if .Values.podSecurityPolicy.enabled -}}
apiVersion: policy/v1beta1
kind: PodSecurityPolicy
Expand Down Expand Up @@ -37,3 +38,4 @@ spec:
- 'secret'
- 'configMap'
{{- end }}
{{- end }}

0 comments on commit 9fc7aec

Please sign in to comment.