fix: Remove hardcoded UID from HCP webhook deployment - #603
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: openshift/coderabbit/.coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (2)
💤 Files with no reviewable changes (2)
WalkthroughThe webhook deployment security contexts remove the explicit UID and enforce non-root execution, disabled privilege escalation, and a read-only root filesystem in the packaged deployment configuration. ChangesWebhook container security
Estimated code review effort: 2 (Simple) | ~5 minutes 🚥 Pre-merge checks | ✅ 15✅ Passed checks (15 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@xiaoyu74: all tests passed! 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-sigs/prow repository. I understand the commands that are listed here. |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bmeng, xiaoyu74 The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Summary
Hotfix to remove the hardcoded
runAsUser: 1001from the HCP validating-webhook deployment.The fixed UID is outside the namespace UID range allowed by the
restricted-v2SCC, causing webhook pods to be rejected and the deployment to have 0 available replicas.More context: https://redhat-internal.slack.com/archives/C0A8S4L99C2/p1784697684486109?thread_ts=1784697591.159769&cid=C0A8S4L99C2
Summary by CodeRabbit