Skip to content

Commit

Permalink
Add PSP toggle for k8s 1.25 (#1189)
Browse files Browse the repository at this point in the history
  • Loading branch information
kubasobon authored Nov 9, 2023
1 parent b27e12d commit fdfcddd
Show file tree
Hide file tree
Showing 6 changed files with 225 additions and 207 deletions.
1 change: 1 addition & 0 deletions .nancy-ignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ CVE-2023-25809 until=2024-01-31

# pkg:golang/golang.org/x/[email protected]
CVE-2023-3978 until=2024-01-31
CVE-2023-39325 until=2023-11-30

# pkg:golang/helm.sh/helm/[email protected]
CVE-2023-25165 until=2024-01-31
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project's packages adheres to [Semantic Versioning](http://semver.org/s

## [Unreleased]

### Changed

- Add a switch for PSP CR installation.

## [6.8.1] - 2023-09-14

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion helm/app-operator/templates/psp.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if .Capabilities.APIVersions.Has "policy/v1beta1" }}
{{- if not .Values.podSecurityStandards.enforced }}
apiVersion: policy/v1beta1
kind: PodSecurityPolicy
metadata:
Expand Down
2 changes: 2 additions & 0 deletions helm/app-operator/templates/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ roleRef:
name: {{ include "resource.default.name" . }}-catalog
apiGroup: rbac.authorization.k8s.io
---
{{- if not .Values.podSecurityStandards.enforced }}
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
Expand Down Expand Up @@ -254,3 +255,4 @@ roleRef:
kind: ClusterRole
name: {{ include "resource.psp.name" . }}
apiGroup: rbac.authorization.k8s.io
{{- end }}
Loading

0 comments on commit fdfcddd

Please sign in to comment.