- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for CreateMirrorPod (0.23 sec)
-
pkg/kubelet/pod/mirror_client.go
type MirrorClient interface { // CreateMirrorPod creates a mirror pod in the API server for the given // pod or returns an error. The mirror pod will have the same annotations // as the given pod as well as an extra annotation containing the hash of // the static pod. CreateMirrorPod(pod *v1.Pod) error // DeleteMirrorPod deletes the mirror pod with the given full name from
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jun 21 11:38:40 UTC 2021 - 5.5K bytes - Viewed (0) -
pkg/kubelet/pod/testing/fake_mirror_client.go
m := FakeMirrorClient{} m.mirrorPods = sets.New[string]() m.createCounts = make(map[string]int) m.deleteCounts = make(map[string]int) return &m } func (fmc *FakeMirrorClient) CreateMirrorPod(pod *v1.Pod) error { fmc.mirrorPodLock.Lock() defer fmc.mirrorPodLock.Unlock() podFullName := kubecontainer.GetPodFullName(pod) fmc.mirrorPods.Insert(podFullName) fmc.createCounts[podFullName]++ return nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:25:43 UTC 2024 - 2.4K bytes - Viewed (0) -
pkg/kubelet/pod/mirror_client_test.go
Name: testPodName, Namespace: testPodNS, Annotations: map[string]string{ kubetypes.ConfigHashAnnotationKey: testPodHash, }, }, } err := mc.CreateMirrorPod(pod) if !test.expectSuccess { assert.Error(t, err) return } createdPod, err := clientset.CoreV1().Pods(testPodNS).Get(context.TODO(), testPodName, metav1.GetOptions{})
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Jan 08 12:44:09 UTC 2023 - 4.2K bytes - Viewed (0) -
pkg/kubelet/runonce.go
return nil } klog.InfoS("Pod's containers not running: syncing", "pod", klog.KObj(pod)) klog.InfoS("Creating a mirror pod for static pod", "pod", klog.KObj(pod)) if err := kl.mirrorPodClient.CreateMirrorPod(pod); err != nil { klog.ErrorS(err, "Failed creating a mirror pod", "pod", klog.KObj(pod)) } mirrorPod, _ := kl.podManager.GetMirrorPodByPod(pod)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Aug 04 06:56:50 UTC 2023 - 5.9K bytes - Viewed (0) -
pkg/kubelet/kubelet.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 14 16:09:17 UTC 2024 - 126.1K bytes - Viewed (0)