-
Notifications
You must be signed in to change notification settings - Fork 40k
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
Move kubelet ComponentConfig external types to k8s.io/kubelet
#67263
Move kubelet ComponentConfig external types to k8s.io/kubelet
#67263
Conversation
0cd5923
to
0a5d6dc
Compare
We should double check for any links on the docs website that point to the things we are moving. I don't think it should be a problem (those links should always point to release branches, not master), but worth double-checking. |
@@ -108,7 +109,7 @@ func DefaultKubeletConfiguration(internalcfg *kubeadmapi.InitConfiguration) { | |||
externalkubeletcfg.HealthzBindAddress = "127.0.0.1" | |||
externalkubeletcfg.HealthzPort = utilpointer.Int32Ptr(10248) | |||
|
|||
kubeletconfigv1beta1.SetDefaults_KubeletConfiguration(externalkubeletcfg) | |||
kubeletconfigmetav1beta1.SetDefaults_KubeletConfiguration(externalkubeletcfg) |
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.
Why do this instead of scheme.Default(externalkubeletcfg)
?
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.
hmm, not for any specific reason I think. That is probably the better implementation option of these two.
@@ -15,9 +15,8 @@ go_library( | |||
"//cmd/kubeadm/app/apis/kubeadm/v1alpha3:go_default_library", |
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 think this BUILD file needs to be regenerated.
W0810 18:56:11.947] GoCompile: missing strict dependencies:
W0810 18:56:11.947] /bazel-scratch/.cache/bazel/_bazel_root/e9f728bbd90b3fba632eb31b20e1dacd/sandbox/linux-sandbox/3155/execroot/__main__/cmd/kubeadm/app/componentconfigs/defaults.go: import of "k8s.io/kubernetes/pkg/kubelet/apis/config/v1beta1"
W0810 18:56:11.947] Known dependencies are:
W0810 18:56:11.948] k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm
W0810 18:56:11.948] k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm/v1alpha3
W0810 18:56:11.948] k8s.io/kubernetes/cmd/kubeadm/app/constants
W0810 18:56:11.948] k8s.io/kubernetes/cmd/kubeadm/app/util
W0810 18:56:11.948] k8s.io/kubernetes/pkg/kubelet/apis/config
W0810 18:56:11.948] k8s.io/kubernetes/pkg/kubelet/apis/config/validation
W0810 18:56:11.948] k8s.io/kubernetes/pkg/proxy/apis/kubeproxyconfig
W0810 18:56:11.948] k8s.io/kubernetes/pkg/proxy/apis/kubeproxyconfig/v1alpha1
W0810 18:56:11.948] k8s.io/kubernetes/pkg/proxy/apis/kubeproxyconfig/validation
W0810 18:56:11.948] k8s.io/apimachinery/pkg/apis/meta/v1
W0810 18:56:11.948] k8s.io/apimachinery/pkg/runtime
W0810 18:56:11.948] k8s.io/apimachinery/pkg/runtime/schema
W0810 18:56:11.949] k8s.io/apimachinery/pkg/runtime/serializer
W0810 18:56:11.949] k8s.io/apimachinery/pkg/util/runtime
W0810 18:56:11.949] k8s.io/apimachinery/pkg/util/validation/field
W0810 18:56:11.949] k8s.io/kubelet/config/v1beta1
W0810 18:56:11.949] k8s.io/utils/pointer
W0810 18:56:11.949] k8s.io/apimachinery/pkg/apis/meta/v1
W0810 18:56:11.949] k8s.io/apimachinery/pkg/runtime
W0810 18:56:11.949] k8s.io/apimachinery/pkg/runtime/schema
W0810 18:56:11.949] k8s.io/apimachinery/pkg/runtime/serializer
W0810 18:56:11.949] k8s.io/apimachinery/pkg/util/runtime
W0810 18:56:11.949] k8s.io/apimachinery/pkg/util/validation/field
W0810 18:56:11.949] k8s.io/kubelet/config/v1beta1
W0810 18:56:11.949] k8s.io/utils/pointer
W0810 18:56:11.950] Check that imports in Go sources match importpath attributes in deps.
W0810 18:56:12.147] INFO: Elapsed time: 30.734s, Critical Path: 8.79s
W0810 18:56:12.149] INFO: 3480 processes: 3387 remote cache hit, 1 linux-sandbox, 92 local.
W0810 18:56:12.150] FAILED: Build did NOT complete successfully
3db8470
to
24124dc
Compare
Split this out to #67780 as the first scoped PR. |
/uncc |
4d83980
to
7ef34c4
Compare
7ef34c4
to
220f9a5
Compare
/retest Review the full test history for this PR. Silence the bot with an |
11 similar comments
/retest Review the full test history for this PR. Silence the bot with an |
/retest Review the full test history for this PR. Silence the bot with an |
/retest Review the full test history for this PR. Silence the bot with an |
/retest Review the full test history for this PR. Silence the bot with an |
/retest Review the full test history for this PR. Silence the bot with an |
/retest Review the full test history for this PR. Silence the bot with an |
/retest Review the full test history for this PR. Silence the bot with an |
/retest Review the full test history for this PR. Silence the bot with an |
/retest Review the full test history for this PR. Silence the bot with an |
/retest Review the full test history for this PR. Silence the bot with an |
/retest Review the full test history for this PR. Silence the bot with an |
New changes are detected. LGTM label has been removed. |
e755f4b
to
8b6a7ee
Compare
I'm re-applying the LGTM label, as I now rebased the PR (the need for a rebase was the cause of the failing tests retried by fejta-bot). |
/test all [submit-queue is verifying that this PR is safe to merge] |
Automatic merge from submit-queue (batch tested with PRs 65566, 67959, 68029, 68017, 67263). If you want to cherry-pick this change to another branch, please follow the instructions here: https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md. |
What this PR does / why we need it:
This PR implements most of kubernetes/community#2354 for the kubelet.
The PR:
k8s.io/kubernetes/pkg/apis/kubeletconfig
as-is tok8s.io/kubernetes/pkg/apis/config
as agreedk8s.io/kubelet
, in thek8s.io/kubelet/config/v1beta1
package.k8s.io/kubernetes/pkg/apis/config/v1beta1
source the types fromk8s.io/kubelet/config/v1beta1
. The defaulting and conversion code is kept in this package as before.Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):ref: kubernetes/community#2354
Special notes for your reviewer:
This PR depends on getting #67780 merged first.
Release note:
/assign @sttts @mtaufen @liggitt