mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Merge pull request #104574 from 249043822/br-repeat-package
fix duplicate package import in pod_worker
This commit is contained in:
commit
e595d79dfc
@ -34,7 +34,6 @@ import (
|
||||
"k8s.io/kubernetes/pkg/kubelet/events"
|
||||
"k8s.io/kubernetes/pkg/kubelet/eviction"
|
||||
"k8s.io/kubernetes/pkg/kubelet/metrics"
|
||||
kubelettypes "k8s.io/kubernetes/pkg/kubelet/types"
|
||||
kubetypes "k8s.io/kubernetes/pkg/kubelet/types"
|
||||
"k8s.io/kubernetes/pkg/kubelet/util/queue"
|
||||
)
|
||||
@ -665,7 +664,7 @@ func (p *podWorkers) UpdatePod(options UpdatePodOptions) {
|
||||
options.KillPodOptions.PodTerminationGracePeriodSecondsOverride = &gracePeriod
|
||||
|
||||
// if a static pod comes through, start tracking it explicitly (cleared by the pod worker loop)
|
||||
if kubelettypes.IsStaticPod(pod) {
|
||||
if kubetypes.IsStaticPod(pod) {
|
||||
p.terminatingStaticPodFullnames[kubecontainer.GetPodFullName(pod)] = struct{}{}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user