mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 15:25:57 +00:00
pkg/kubelet: remove unnecessary wrapper code in pod_manager.go
This commit is contained in:
parent
12984c85ea
commit
ede4fb4a37
@ -72,7 +72,7 @@ type basicPodManager struct {
|
|||||||
mirrorPodByFullName map[string]*api.Pod
|
mirrorPodByFullName map[string]*api.Pod
|
||||||
|
|
||||||
// A mirror pod client to create/delete mirror pods.
|
// A mirror pod client to create/delete mirror pods.
|
||||||
mirrorClient mirrorClient
|
mirrorClient
|
||||||
}
|
}
|
||||||
|
|
||||||
func newBasicPodManager(apiserverClient client.Interface) *basicPodManager {
|
func newBasicPodManager(apiserverClient client.Interface) *basicPodManager {
|
||||||
@ -271,16 +271,6 @@ func (self *basicPodManager) DeleteOrphanedMirrorPods() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Creates a mirror pod for the given pod.
|
|
||||||
func (self *basicPodManager) CreateMirrorPod(pod api.Pod) error {
|
|
||||||
return self.mirrorClient.CreateMirrorPod(pod)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Delete a mirror pod by name.
|
|
||||||
func (self *basicPodManager) DeleteMirrorPod(podFullName string) error {
|
|
||||||
return self.mirrorClient.DeleteMirrorPod(podFullName)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Returns true if mirrorPod is a correct representation of pod; false otherwise.
|
// Returns true if mirrorPod is a correct representation of pod; false otherwise.
|
||||||
func (self *basicPodManager) IsMirrorPodOf(mirrorPod, pod *api.Pod) bool {
|
func (self *basicPodManager) IsMirrorPodOf(mirrorPod, pod *api.Pod) bool {
|
||||||
// Check name and namespace first.
|
// Check name and namespace first.
|
||||||
|
Loading…
Reference in New Issue
Block a user