- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for podsDifferSemantically (0.45 sec)
-
pkg/kubelet/config/config.go
annotations[k] = v } for _, k := range localAnnotations { if v, ok := existing.Annotations[k]; ok { annotations[k] = v } } existing.Annotations = annotations } func podsDifferSemantically(existing, ref *v1.Pod) bool { if reflect.DeepEqual(existing.Spec, ref.Spec) && reflect.DeepEqual(existing.Labels, ref.Labels) && reflect.DeepEqual(existing.DeletionTimestamp, ref.DeletionTimestamp) &&
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:25:43 UTC 2024 - 16.7K bytes - Viewed (0) -
pkg/kubelet/config/config_test.go
t.Fatalf("Expected %#v, Got %#v", expected[i], update) } // Compare pods one by one. This is necessary because we don't want to // compare local annotations. for j := range expected[i].Pods { if podsDifferSemantically(expected[i].Pods[j], update.Pods[j]) || !reflect.DeepEqual(expected[i].Pods[j].Status, update.Pods[j].Status) { t.Fatalf("Expected %#v, Got %#v", expected[i].Pods[j], update.Pods[j]) } } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:25:43 UTC 2024 - 17.1K bytes - Viewed (0)