CORENET-7114: Add HostedCluster RBAC permissions for CNO - #8826
Conversation
|
Pipeline controller notification For optional jobs, comment This repository is configured in: LGTM mode |
|
@tpantelis: This pull request references CORENET-7114 which is a valid jira issue. 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 openshift-eng/jira-lifecycle-plugin repository. |
📝 WalkthroughWalkthroughThe 🚥 Pre-merge checks | ✅ 11✅ Passed checks (11 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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 |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: tpantelis The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
d7a4477 to
dda8eff
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #8826 +/- ##
==========================================
- Coverage 42.59% 42.58% -0.01%
==========================================
Files 768 768
Lines 95359 95370 +11
==========================================
Hits 40617 40617
- Misses 51934 51945 +11
Partials 2808 2808
... and 2 files with indirect coverage changes
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
CNO needs to read hostedclusters.hypershift.openshift.io resources to fetch TLS security profile configuration from the HostedCluster spec. This was added to both the static role.yaml (for when networkType is OVNKubernetes) and the dynamic adaptRole() function (which replaces the rules otherwise). Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
dda8eff to
30d6172
Compare
|
@tpantelis: 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. |
|
I have all the evidence needed. Here is the complete analysis: Test Failure Analysis CompleteJob Information
Test Failure AnalysisErrorSummaryThe Root CauseThe The root cause of the 0% patch coverage is that no Go unit test exists that calls Since the function had 0% coverage before this PR, there was no way for the 11 added lines to achieve coverage without also adding a dedicated unit test for Recommendations
Evidence
|
|
This is a namespaced role, nothing within the cp namespace can read HCs. |
CNO needs to read
hostedclusters.hypershift.openshift.ioresources to fetch TLS security profile configuration from theHostedClusterspec. This was added to both the static role.yaml (for whennetworkTypeis
OVNKubernetes) and theadaptRole()function (which replaces the rules otherwise).Summary by CodeRabbit
get,list,watch) when using non-OVN Kubernetes network configurations.