- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for getStableKey (0.17 sec)
-
pkg/kubelet/kuberuntime/helpers_test.go
UID: "test_pod_uid", }, Spec: v1.PodSpec{ Containers: []v1.Container{*container}, }, } oldKey := getStableKey(pod, container) // Updating the container image should change the key. container.Image = "foo/image:v2" newKey := getStableKey(pod, container) assert.NotEqual(t, oldKey, newKey) } func TestToKubeContainer(t *testing.T) { c := &runtimeapi.Container{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 11.7K bytes - Viewed (0) -
pkg/kubelet/kuberuntime/helpers.go
if status.State == kubecontainer.ContainerStateUnknown { return true } return false } // getStableKey generates a key (string) to uniquely identify a // (pod, container) tuple. The key should include the content of the // container, so that any change to the container generates a new key. func getStableKey(pod *v1.Pod, container *v1.Container) string { hash := strconv.FormatUint(kubecontainer.HashContainer(container), 16)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 22 02:01:31 UTC 2024 - 12K bytes - Viewed (0) -
pkg/kubelet/kuberuntime/kuberuntime_manager.go
// Use the finished time of the latest exited container as the start point to calculate whether to do back-off. ts := cStatus.FinishedAt // backOff requires a unique key to identify the container. key := getStableKey(pod, container) if backOff.IsInBackOffSince(key, ts) { if containerRef, err := kubecontainer.GenerateContainerRef(pod, container); err == nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 22 02:01:31 UTC 2024 - 64.7K bytes - Viewed (0)