Skip to content

Commit

Permalink
add pss flag (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
vxav authored Mar 4, 2024
1 parent a7e511c commit b677dbe
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
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 adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added

- Add `global.podSecurityStandards.enforced` flag to disable PSPs by default.

## [0.1.2] - 2024-01-04

### Changed
Expand Down
2 changes: 2 additions & 0 deletions helm/cluster-api-cleaner-vsphere/templates/psp.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if not .Values.global.podSecurityStandards.enforced }}
apiVersion: policy/v1beta1
kind: PodSecurityPolicy
metadata:
Expand Down Expand Up @@ -28,3 +29,4 @@ spec:
hostNetwork: false
hostIPC: false
hostPID: false
{{- end }}
4 changes: 4 additions & 0 deletions helm/cluster-api-cleaner-vsphere/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ registry:

logLevel: 0

global:
podSecurityStandards:
enforced: true

pod:
user:
id: 1000
Expand Down

0 comments on commit b677dbe

Please sign in to comment.