Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Commit

Permalink
add toggle value for PSS migration (#116)
Browse files Browse the repository at this point in the history
* add toggle value for PSS migration
* enforce PSS for acceptance tests
  • Loading branch information
Berk Dehrioglu authored Oct 10, 2023
1 parent 0970889 commit 8d8a98c
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 1 deletion.
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.

### Changed

- Update `golang.org/x/net` package.
Expand Down
1 change: 1 addition & 0 deletions Makefile.custom.mk
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ deploy: manifests render ensure-deploy-envs ## Deploy controller to the K8s clus
--set aws.accessKeyID=$(AWS_ACCESS_KEY_ID) \
--set aws.secretAccessKey=$(AWS_SECRET_ACCESS_KEY) \
--set aws.region=$(AWS_REGION) \
--set global.podSecurityStandards.enforced=true \
--wait \
aws-network-topology-operator helm/rendered/aws-network-topology-operator

Expand Down
2 changes: 1 addition & 1 deletion helm/aws-network-topology-operator/templates/psp.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if .Capabilities.APIVersions.Has "policy/v1beta1/PodSecurityPolicy" }}
{{- if not .Values.global.podSecurityStandards.enforced }}
apiVersion: policy/v1beta1
kind: PodSecurityPolicy
metadata:
Expand Down
13 changes: 13 additions & 0 deletions helm/aws-network-topology-operator/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,19 @@
"type": "string"
}
}
},
"global": {
"type": "object",
"properties": {
"podSecurityStandards": {
"type": "object",
"properties": {
"enforced": {
"type": "boolean"
}
}
}
}
}
}
}
4 changes: 4 additions & 0 deletions helm/aws-network-topology-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,7 @@ securityContext:
capabilities:
drop:
- ALL

global:
podSecurityStandards:
enforced: false

0 comments on commit 8d8a98c

Please sign in to comment.