mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 23:47:50 +00:00
kuberuntime: remove the kubernetesManagedLabel label
The CRI shim should be responsible for returning only those containers/sandboxes created through CRI. Remove this label in kubelet.
This commit is contained in:
@@ -188,18 +188,7 @@ func (m *kubeGenericRuntimeManager) getKubeletSandboxes(all bool) ([]*runtimeapi
|
||||
return nil, err
|
||||
}
|
||||
|
||||
result := []*runtimeapi.PodSandbox{}
|
||||
for _, s := range resp {
|
||||
if !isManagedByKubelet(s.Labels) {
|
||||
glog.V(5).Infof("Sandbox %s is not managed by kubelet", kubecontainer.BuildPodFullName(
|
||||
s.Metadata.Name, s.Metadata.Namespace))
|
||||
continue
|
||||
}
|
||||
|
||||
result = append(result, s)
|
||||
}
|
||||
|
||||
return result, nil
|
||||
return resp, nil
|
||||
}
|
||||
|
||||
// determinePodSandboxIP determines the IP address of the given pod sandbox.
|
||||
|
||||
Reference in New Issue
Block a user