-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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
document kubectl explain openapi v3 #37788
Conversation
kubectl explain
placeholder dockubectl explain
openapi v3 placeholder doc
✅ Pull request preview available for checkingBuilt without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site settings. |
/retitle [WIP] document kubectl explain openapi v3 |
kubectl explain
openapi v3 placeholder docThere 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.
Some early feedback:
Does OpenAPI version switch belong in a cheat sheet? I doubt that many readers look for it in a hurry.
Agreed. Though I did not come across a natural place in the existing docs where I thought it fit. Open to suggestions |
Hi @alexzielenski , Thank you for the draft doc PR here, Please update to Ready for Review, the deadline it's on Tuesday 15th November 2022. Thank you! |
@alexzielenski , Please can you create this PR against the branch 1.26? Here the instructions. This enhancement is marked as ‘Needs Docs’ for 1.26 release. Please follow the steps detailed in the documentation to open a PR against dev-1.26 branch in the k/website repo. This PR can be just a placeholder at this time, and must be created by November 9. Also, take a look at Documenting for a release to familiarize yourself with the docs requirement for the release. cc: @cathchu |
1 similar comment
@alexzielenski , Please can you create this PR against the branch 1.26? Here the instructions. This enhancement is marked as ‘Needs Docs’ for 1.26 release. Please follow the steps detailed in the documentation to open a PR against dev-1.26 branch in the k/website repo. This PR can be just a placeholder at this time, and must be created by November 9. Also, take a look at Documenting for a release to familiarize yourself with the docs requirement for the release. cc: @cathchu |
935f0fd
to
65953e4
Compare
👷 Deploy Preview for kubernetes-io-vnext-staging processing.
|
ive found a more appropriate place for the envar doc, and pointed at the dev-1.26 branch as PR base |
<tr> | ||
<td colspan="2">KUBECTL_EXPLAIN_OPENAPIV3</td> | ||
</tr> | ||
<tr> | ||
<td></td><td style="line-height: 130%; word-wrap: break-word;">Toggles whether calls to `kubectl explain` use the new OpenAPIv3 data source available. OpenAPIV3 is enabled by default since Kubernetes 1.24. | ||
</td> | ||
</tr> |
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.
Will this change be overwritten by future automatic updates to this page? I'm not sure.
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.
yes, this will be overwritten when the kubectl reference docs are generated.
I'm not exactly sure but it may be better to place this somewhere in
https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/kubectl/pkg/cmd/explain/explain.go
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.
I'm ok with having this merge now so we can have the change in the history/git log
/approve
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.
@reylejano I'd be happy to make the correct change to the generator of this page, but I am having trouble finding it. Could you point to the source for the "envvars" content of this page?
I am basing this work off of prior PR #28692 in which @sftim raised the same concern but the documentation merged without an explicit answer to whether this page is generated or not
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
with a reservation
LGTM label has been added. Git tree hash: d0f27a48cb540163b4dbf6861eebae3f2703effd
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: reylejano 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 |
re: kubernetes/enhancements#3515
this enhancement changes the data backing for
kubectl explain
to use OpenAPIv3 instead of v2 as earlier. It is toggled by en environment variableKUBECTL_EXPLAIN_OPENAPIV3=true
.