ROX-14427: set PSPs for CI to false for k8s version 1.25 and higher#4488
ROX-14427: set PSPs for CI to false for k8s version 1.25 and higher#4488johannes94 merged 13 commits intomasterfrom
Conversation
|
Skipping CI for Draft Pull Request. |
|
/test all |
|
Images are ready for the commit at 2483ea2. To use with deploy scripts, first |
|
/test osd-gcp-qa-e2e-tests |
|
/test osd-gcp-qa-e2e-tests |
|
/test osd-gcp-qa-e2e-tests |
|
/test osd-gcp-qa-e2e-tests |
|
/test osd-gcp-qa-e2e-tests |
|
/test osd-gcp-qa-e2e-tests |
|
/test osd-gcp-qa-e2e-tests |
|
/test osd-gcp-qa-e2e-tests |
|
/test osd-gcp-qa-e2e-tests |
|
/test osd-gcp-qa-e2e-tests |
|
hi @johannes94 I added the all label and kicked off some more tests. I feel like those PSPs were required for some tests but this will give enough coverage to see. |
|
/test |
|
@gavin-stackrox: The
The following commands are available to trigger optional jobs:
Use
DetailsIn response to this:
Instructions 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. |
|
/test openshift-newest-qa-e2e-tests |
|
/retest |
|
Thanks @gavin-stackrox, looks to me like all tests are green, I'll merge it. |
…4488) * set POD_SECURITY_POLICIES based on kubernetes version * set POD_SECURITY_POLICIES when true aswell
…4488) * set POD_SECURITY_POLICIES based on kubernetes version * set POD_SECURITY_POLICIES when true aswell
…4488) * set POD_SECURITY_POLICIES based on kubernetes version * set POD_SECURITY_POLICIES when true aswell
…4488) * set POD_SECURITY_POLICIES based on kubernetes version * set POD_SECURITY_POLICIES when true aswell
…4488) * set POD_SECURITY_POLICIES based on kubernetes version * set POD_SECURITY_POLICIES when true aswell
Description
We've had CI Failures like this, because the bundle installation method tries to install a PodSecurityPolicy for central by default if the env variable
POD_SECURITY_POLICIESis not set or set totrue. PodSecurityPolicy was removed from Kubernetes 1.25 and upwards, which is why the test setup is failing.This PR changes the deploy scripts to query the Kubernetes server version and set
POD_SECURITY_POLICIESto false if it detects a version >= 1.25.Checklist
[ ] Unit test and regression tests added[ ] Evaluated and added CHANGELOG entry if required[ ] Determined and documented upgrade steps[ ] Documented user facing changes (create PR based on openshift/openshift-docs and merge into rhacs-docs)If any of these don't apply, please comment below.
Testing Performed
Tested with commenting
/test osd-gcp-qa-e2e-testsIn addition to reviewing your code, reviewers must also review your testing
instructions and make sure they are sufficient.