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

Commit

Permalink
add toggle value for PSS migration (#3608)
Browse files Browse the repository at this point in the history
* add toggle value for PSS migration
  • Loading branch information
Berk Dehrioglu authored Oct 9, 2023
1 parent 4b5da13 commit cacc28a
Show file tree
Hide file tree
Showing 4 changed files with 23 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` value for PSS migration.

## [14.23.0] - 2023-10-04

### Fixed
Expand Down
2 changes: 2 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,4 @@ 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"
}
}
}
}
}
}
}
4 changes: 4 additions & 0 deletions helm/aws-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -133,3 +133,7 @@ serviceMonitor:
interval: "60s"
# -- (duration) Prometheus scrape timeout.
scrapeTimeout: "45s"

global:
podSecurityStandards:
enforced: false

0 comments on commit cacc28a

Please sign in to comment.