-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
Generate reference doc for 1.21.0-rc.0 tag #27248
Conversation
Deploy preview for kubernetes-io-vnext-staging processing. Building with commit d2bf43b https://app.netlify.com/sites/kubernetes-io-vnext-staging/deploys/6067e84512412f0008034d09 |
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
LGTM label has been added. Git tree hash: 0d6b0907d438377973a9b80231ca9681b51eac70
|
Hi @reylejano . Preview page: Hold for review |
Related PR (1.21 API reference pages): #26413 |
Hi. I tried to build the component tool reference pages. The build failed (running script and running from command line). |
@kbhawkey I did not receive any errors, I'll update the base reference page to link to API reference v1.21 |
New changes are detected. LGTM label has been removed. |
@kbhawkey I updated my golang and re-ran. The build failed on the second run |
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.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: sftim 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 |
👋 @reylejano . |
@reylejano @kbhawkey I don't think we need/want to build the component reference at this stage. As you may know, to ensure a stable/repeatable generation of the references, we have switched to manage Go dependencies using go mod. The side effect is that we will not be able to generate the proper reference until the upstream repos are ready. By "ready", I mean the proper tags show up in those repos. For example, we will need the |
In this case then we can wait until the tag is published and then preparing for the document to be generated? |
@kbhawkey @tengqm @irvifa , we discussed this PR a little bit on today's SIG Docs call. |
Hi. In the past releases, we have created the reference documentation in time for the release and used the The v0.21.0 (?) tag is required for the v1.21.0 release: |
See https://github.com/kubernetes-sigs/reference-docs/blob/master/gen-compdocs/go.mod#L22-L46 |
go.mod
Outdated
|
||
require ( | ||
k8s.io/apimachinery v0.20.0 | ||
k8s.io/kubernetes v1.20.0 | ||
k8s.io/kubernetes v1.21.0 |
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 , Are the go.mod changes related to the generated files in this PR?
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.
@kbhawkey , the generated files are with the go.mode L7 change k8s.io/kubernetes v1.21.0
But I did not change go.mod lines 11-37:
replace (
k8s.io/api => k8s.io/api v0.20.0
k8s.io/apiextensions-apiserver => k8s.io/apiextensions-apiserver v0.20.0
k8s.io/apimachinery => k8s.io/apimachinery v0.20.0
k8s.io/apiserver => k8s.io/apiserver v0.20.0
k8s.io/cli-runtime => k8s.io/cli-runtime v0.20.0
k8s.io/client-go => k8s.io/client-go v0.20.0
k8s.io/cloud-provider => k8s.io/cloud-provider v0.20.0
k8s.io/cluster-bootstrap => k8s.io/cluster-bootstrap v0.20.0
k8s.io/code-generator => k8s.io/code-generator v0.20.0
k8s.io/component-base => k8s.io/component-base v0.20.0
k8s.io/component-helpers => k8s.io/component-helpers v0.20.0
k8s.io/controller-manager => k8s.io/controller-manager v0.20.0
k8s.io/cri-api => k8s.io/cri-api v0.20.0
k8s.io/csi-translation-lib => k8s.io/csi-translation-lib v0.20.0
k8s.io/kube-aggregator => k8s.io/kube-aggregator v0.20.0
k8s.io/kube-controller-manager => k8s.io/kube-controller-manager v0.20.0
k8s.io/kube-proxy => k8s.io/kube-proxy v0.20.0
k8s.io/kube-scheduler => k8s.io/kube-scheduler v0.20.0
k8s.io/kubectl => k8s.io/kubectl v0.20.0
k8s.io/kubelet => k8s.io/kubelet v0.20.0
k8s.io/kubernetes => k8s.io/kubernetes v1.20.0
k8s.io/legacy-cloud-providers => k8s.io/legacy-cloud-providers v0.20.0
k8s.io/metrics => k8s.io/metrics v0.20.0
k8s.io/mount-utils => k8s.io/mount-utils v0.20.0
k8s.io/sample-apiserver => k8s.io/sample-apiserver v0.20.0
k8s.io/sample-cli-plugin => k8s.io/sample-cli-plugin v0.20.0
k8s.io/sample-controller => k8s.io/sample-controller v0.20.0
)
I can re-run with changes in L11-37 in go.mod from v0.20.0
to v0.21.0
and add to this PR
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.
The problem is that these modules are staged from the k/k repo. When 1.21.0
is not out, you won't get the v0.21.0
tag from these modules.
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.
The problem is that these modules are staged from the k/k repo. When
1.21.0
is not out, you won't get thev0.21.0
tag from these modules.
@tengqm that's what I thought, but I re-ran with changes to go.mod to v0.21.0
or v1.21.0
, I'll push but won't squash yet to see the changes
/hold cancel |
Let me know if this is looks better or should we still re-run on the release day when the tags are available? If the generated files are correct and the changes to go.mod are required, then I'll update the release docs role handbook with this required change.
I made a mistake with commit a2eed93 and I reverted |
@reylejano Please ping me when there is any issue generating the reference. |
Hi. I asked about the .mod file because I did not expect to see the file as part of this PR. |
@kbhawkey I reverted back to my initial commit and rebased my branch with https://deploy-preview-27248--kubernetes-io-vnext-staging.netlify.app/docs/reference/ |
Hi @reylejano . |
@kbhawkey, yes we can do that |
empty commit to rebuild netlify preview
@reylejano it doesn't look as if CronJob has graduated to |
@sftim, I'm looking into this as the CronJob feature is a little more complex in that the CronJob feature is stable in 1.21 but the CronJob Controller v2 is beta in 1.21. The API is stable for 1.21 but the controller is targeted to be stable in 1.22. The k/k code has merged in k/k PR 99423 so CronJob should be v1 API |
Update generated reference API docs with tag 1.21.0-rc.0
/assign @kbhawkey
/hold for review