-
Notifications
You must be signed in to change notification settings - Fork 40.1k
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
kubectl explain should work for both cluster and namespace resources and without a GET method #118876
Conversation
/priority important-soon |
/assign @alexzielenski |
/triage accepted |
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.
/lgtm
/approve
Inspected the new template code pretty closely and it looks like a great change. No notes. I have a PR incoming also to add an e2e to check that all resources are explain
able so this doesn't happen again
LGTM label has been added. Git tree hash: 96445497d5ad8b6cf1f975fd4b51358edcc7181b
|
/cc @apelisse for approve |
@alexzielenski thx for the approve and the E2Es sound like a great idea! |
{{- /* /apis/<group>/<version>/<version>/namespaces/{namespace}/<resource> */ -}} | ||
{{- /* /apis/<group>/<version>/<version>/namespaces/{namespace}/<resource>/{name} */ -}} |
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.
{{- /* /apis/<group>/<version>/<version>/namespaces/{namespace}/<resource> */ -}} | |
{{- /* /apis/<group>/<version>/<version>/namespaces/{namespace}/<resource>/{name} */ -}} | |
{{- /* /apis/<group>/<version>/namespaces/{namespace}/<resource> */ -}} | |
{{- /* /apis/<group>/<version>/namespaces/{namespace}/<resource>/{name} */ -}} |
is that it? Pretty sure the double-version is wrong?
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.
good catch! fortunately it was just a comment :)
…and without a GET method
sig-node failures |
/lgtm |
LGTM label has been added. Git tree hash: fe5b24b2b61d3daaf7ef7e1af7bfa1bc5dec42af
|
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: alexzielenski, apelisse, atiratree 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 |
I think it is worth backporting this to 1.27. I have opened a PR with a cherry-pick: #118930 |
…18876-upstream-release-1.27 Automated cherry pick of #118876: kubectl explain should work for both cluster and namespace
What type of PR is this?
/kind bug
/kind regression
What this PR does / why we need it:
kubectl explain should work for both cluster and namespace resources and without a GET method
Which issue(s) this PR fixes:
Fixes ##118875
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: