Skip to content
This repository has been archived by the owner on Oct 30, 2024. It is now read-only.

add toggle value for PSS migration #3608

Merged
merged 5 commits into from
Oct 9, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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` value for PSS migration.

## [14.23.0] - 2023-10-04

### Fixed
Expand Down
3 changes: 3 additions & 0 deletions helm/aws-operator/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 @@ -32,3 +33,5 @@ spec:
hostNetwork: false
hostIPC: false
hostPID: false
{{- end }}

13 changes: 13 additions & 0 deletions helm/aws-operator/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,19 @@
}
}
}
},
"global": {
"type": "object",
"properties": {
"podSecurityStandards": {
"type": "object",
"properties": {
"enforced": {
"type": "boolean"
}
}
}
}
}
}
}
5 changes: 5 additions & 0 deletions helm/aws-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -133,3 +133,8 @@ serviceMonitor:
interval: "60s"
# -- (duration) Prometheus scrape timeout.
scrapeTimeout: "45s"

global:
rodSecurityStandards:
enforced: false