-
Notifications
You must be signed in to change notification settings - Fork 268
OCPBUGS-65633: add network-check-target + networking-console-plugin service accounts #2868
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
WalkthroughAdds two ServiceAccount manifests and assigns them to existing pod specs: Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes ✨ Finishing touches
📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro Cache: Disabled due to data retention organization setting Knowledge base: Disabled due to 📒 Files selected for processing (7)
🚧 Files skipped from review as they are similar to previous changes (3)
🧰 Additional context used📓 Path-based instructions (1)**⚙️ CodeRabbit configuration file
Files:
🔇 Additional comments (2)
✏️ Tip: You can disable this entire section by setting Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 golangci-lint (2.5.0)Error: can't load config: unsupported version of the configuration: "" See https://golangci-lint.run/docs/product/migration-guide for migration instructions Comment |
|
@ehearne-redhat: This pull request references Jira Issue OCPBUGS-65633, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
Requesting review from QA contact: The bug has been updated to refer to the pull request using the external bug tracker. 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. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: ehearne-redhat 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 |
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 2
🤖 Fix all issues with AI agents
In @bindata/network-diagnostics/001-rbac.yaml:
- Around line 132-138: Change the ServiceAccount manifest to use the correct
core API group by replacing apiVersion: rbac.authorization.k8s.io with
apiVersion: v1 for the ServiceAccount named network-check-target in namespace
openshift-network-diagnostics, and remove the trailing whitespace on the blank
line after namespace (line containing only whitespace) to ensure the YAML is
accepted by Kubernetes.
In @bindata/networking-console-plugin/001-rbac.yaml:
- Around line 1-5: The manifest declares a ServiceAccount with the wrong
apiVersion; change the apiVersion for the ServiceAccount resource from
"rbac.authorization.k8s.io" to "v1" so Kubernetes accepts it; update the
apiVersion field at the top of the ServiceAccount definition (metadata.name:
networking-console-plugin, metadata.namespace: openshift-network-console) to
"v1" and keep the rest of the ServiceAccount spec unchanged.
📜 Review details
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Cache: Disabled due to data retention organization setting
Knowledge base: Disabled due to Reviews -> Disable Knowledge Base setting
📒 Files selected for processing (6)
bindata/network-diagnostics/001-rbac.yamlbindata/network-diagnostics/network-check-target.yamlbindata/networking-console-plugin/001-rbac.yamlbindata/networking-console-plugin/002-config-map.yamlbindata/networking-console-plugin/003-deployment.yamlbindata/networking-console-plugin/005-service.yaml
🧰 Additional context used
📓 Path-based instructions (1)
**
⚙️ CodeRabbit configuration file
-Focus on major issues impacting performance, readability, maintainability and security. Avoid nitpicks and avoid verbosity.
Files:
bindata/networking-console-plugin/001-rbac.yamlbindata/network-diagnostics/001-rbac.yamlbindata/network-diagnostics/network-check-target.yamlbindata/networking-console-plugin/003-deployment.yaml
🔇 Additional comments (2)
bindata/networking-console-plugin/003-deployment.yaml (1)
58-58: LGTM!The serviceAccount assignment correctly references the networking-console-plugin ServiceAccount defined in
001-rbac.yaml. The namespace alignment is correct, and the configuration withautomountServiceAccountToken: falseindicates this is used for pod security context rather than API access.bindata/network-diagnostics/network-check-target.yaml (1)
66-66: LGTM!The serviceAccount assignment correctly references the network-check-target ServiceAccount defined in
bindata/network-diagnostics/001-rbac.yaml. The namespace alignment is correct.
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
|
/retest |
|
@ehearne-redhat: This pull request references Jira Issue OCPBUGS-65633, which is valid. 3 validation(s) were run on this bug
Requesting review from QA contact: 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. |
|
/test hypershift-e2e-aks |
|
/test e2e-aws-ovn-hypershift-conformance |
|
/retest |
|
@anuragthehatter @arkadeepsen @kyrtapz can we get an override on the The rest of the tests appear to pass - feel free to review when you have the time. :) |
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
|
@ehearne-redhat Can you please squash the commits into a single one? |
|
@arkadeepsen yeah that's no problem. :) |
b2ea5a2 to
2afeb6e
Compare
|
@arkadeepsen so that's done now. let me know if you need anything else for this PR :) |
Thanks for that. I want to check whether the upgrade jobs are sporadically facing any issues or not. Historically when manifests are updated, sometimes the upgrade jobs face issues due to unpredictable order of component upgrade. So, let's wait for the jobs to pass again. |
|
@ehearne-redhat: 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-sigs/prow repository. I understand the commands that are listed here. |
This PR adds a service account to
openshift-network-diagnostics/network-check-target-andopenshift-network-console/networking-console-plugin-pods. It also includes a change to render_test as the number14for number of YAMLs to check for is now15due to added RBAC manifest. The ordering of the manifests have been changed to allow for the correct application of manifests.The reason for this change is that these pods should use their own bespoke service account, not default.