Set PSP generation disabled by default in deploy scripts#4813
Set PSP generation disabled by default in deploy scripts#4813Maddosaurus wants to merge 1 commit intomasterfrom
Conversation
|
Regarding testing performed: does deployment still succeed on OCP <=4.11 and/or k8s <= 1.24? |
|
Images are ready for the commit at 1f650c8. To use with deploy scripts, first |
|
I have also tested this on Colima running Kubernetes 1.23.16 as well as an OS 4.11 cluster. |
|
Ignoring failing |
|
@Maddosaurus: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
|
How does this work in relation to @johannes94 change: Line 315 in e888172 |
|
@gavin-stackrox These changes are definitely related. IIUC, Johannes changes are needed to fix the CI tests, so we don't need to cherry pick this PR (4813) to fix them. |
|
@Maddosaurus PSPs support can be autosensed in the deployment scripts which should apply to CI automatically, and then no need to hardcode the choice anywhere. How? One option is to simply check exit code from Definitely don't check k8s version like |
You're right this is a terrible mistake, we should fix it ASAP. The idea with testing the exit code doesn't sound very reliable to me, because the exit code if an api type is not found is Just for context, I did not want to set the default for |
Description
As PSPs are deprecated as of k8s 1.25, set
POD_SECURITY_POLICIESto disabled by default to ensure successful deployments on any Kubernetes flavour, not only local k8sChecklist
Unit test and regression tests addedEvaluated and added CHANGELOG entry if requiredDetermined and documented upgrade stepsDocumented user facing changes (create PR based on openshift/openshift-docs and merge into rhacs-docs)Testing Performed
Observed deployment to succeed and ACS as well as Monitoring running as expected without setting an extra env var with
deploy.shon: