- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for extractRevisionFromPod (0.15 sec)
-
istioctl/pkg/injector/injector-list.go
func podCountByRevision(pods []corev1.Pod, expectedRevision string) map[string]revisionCount { retval := map[string]revisionCount{} for _, pod := range pods { revision := extractRevisionFromPod(&pod) revisionLabel := revision if revision == "" { revisionLabel = "<non-Istio>" } counts := retval[revisionLabel] counts.pods++ if injectionDisabled(&pod) { counts.disabled++
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jan 04 03:08:06 UTC 2024 - 10.4K bytes - Viewed (0) -
istioctl/pkg/injector/injector-list_test.go
}, }, }, expectedRevision: "test-anno", }, } for i, c := range cases { t.Run(fmt.Sprintf("case %d %s", i, c.name), func(t *testing.T) { assert.Equal(t, c.expectedRevision, extractRevisionFromPod(c.pod)) }) } } func Test_getNamespaces(t *testing.T) { createNamespace := func(name string, labels map[string]string) *corev1.Namespace { return &corev1.Namespace{ ObjectMeta: metav1.ObjectMeta{
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 29 04:33:57 UTC 2024 - 5.5K bytes - Viewed (0)