-
Notifications
You must be signed in to change notification settings - Fork 38.7k
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
resttest: Modify TestContext to have namespace in context #108039
resttest: Modify TestContext to have namespace in context #108039
Conversation
Previously, if a request is clusterscoped, the context that was returned has no namespace, ideally the context should contain a metav1.NamespaceNone as the namespace even for cluster scoped requests. Signed-off-by: Madhav Jivrajani <madhav.jiv@gmail.com>
/retest |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: liggitt, MadhavJivrajani The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Thanks, I rebased #94637, will see what remains |
/triage accepted |
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
Previously, if a request is clusterscoped, the context that
was returned has no namespace, ideally the context should
contain a metav1.NamespaceNone as the namespace even for
cluster scoped requests.
Please see #94637 for more details, specifically #94637 (comment)
Which issue(s) this PR fixes:
In reference to #94637
Special notes for your reviewer:
@liggitt if this looks good once this is merged, I'll start updating the unit tests.
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:
/sig api-machinery
/priority important-longterm
/assign @liggitt
/cc @dims