Repository navigation
Fix API workspace SCC selection for container run mode - #24039
SkorikSergey wants to merge 1 commit into
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Signed-off-by: SkorikSergey <sskoryk@redhat.com>
37f73bb to
e1d9b2e
Compare
What does this PR do?
API-created workspaces always requested the container-build security context constraint (SCC). When container run mode was enabled, workspace pods also requested CHOWN, which container-build does not allow. OpenShift therefore rejected workspace creation.
Update the shared configuration helper to select the SCC from CheCluster settings. Container run mode takes priority over build mode, custom SCC names are respected, and the SCC attribute is omitted when both modes are disabled.
The new CheCluster lookup requires authentication during configuration generation, so these tests also need setup changes:
Screenshot/screencast of this PR
What issues does this PR fix or reference?
https://redhat.atlassian.net/browse/CRW-14539
How to test this PR?
PR Checklist
As the author of this Pull Request I made sure that:
What issues does this PR fix or referenceandHow to test this PRcompletedReviewers
Reviewers, please comment how you tested the PR when approving it.
Summary by CodeRabbit