Unverified Commit 971c97af authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #61078 from hzxuzhonghu/kubelet-clean

Automatic merge from submit-queue (batch tested with PRs 61487, 58353, 61078, 61219, 60792). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. remove dead code in kubelet clean up dead code /kind cleanup /sig node **Release note**: ```release-note NONE ```
parents 5286806a 80872881
...@@ -1196,9 +1196,6 @@ type Kubelet struct { ...@@ -1196,9 +1196,6 @@ type Kubelet struct {
// StatsProvider provides the node and the container stats. // StatsProvider provides the node and the container stats.
*stats.StatsProvider *stats.StatsProvider
// containerized should be set to true if the kubelet is running in a container
containerized bool
// This flag, if set, instructs the kubelet to keep volumes from terminated pods mounted to the node. // This flag, if set, instructs the kubelet to keep volumes from terminated pods mounted to the node.
// This can be useful for debugging volume related issues. // This can be useful for debugging volume related issues.
keepTerminatedPodVolumes bool // DEPRECATED keepTerminatedPodVolumes bool // DEPRECATED
...@@ -1417,13 +1414,6 @@ func (kl *Kubelet) Run(updates <-chan kubetypes.PodUpdate) { ...@@ -1417,13 +1414,6 @@ func (kl *Kubelet) Run(updates <-chan kubetypes.PodUpdate) {
kl.syncLoop(updates, kl) kl.syncLoop(updates, kl)
} }
// GetKubeClient returns the Kubernetes client.
// TODO: This is currently only required by network plugins. Replace
// with more specific methods.
func (kl *Kubelet) GetKubeClient() clientset.Interface {
return kl.kubeClient
}
// syncPod is the transaction script for the sync of a single pod. // syncPod is the transaction script for the sync of a single pod.
// //
// Arguments: // Arguments:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment