- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for getNamespaces (0.16 sec)
-
istioctl/pkg/completion/completion.go
ctx := context.Background() nsList, err := getNamespaces(ctx, kubeClient) if err != nil { return nil, err } var nsNameList []string for _, ns := range nsList { if toComplete == "" || strings.HasPrefix(ns.Name, toComplete) { nsNameList = append(nsNameList, ns.Name) } } return nsNameList, nil }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Sat Apr 13 05:23:38 UTC 2024 - 4.9K bytes - Viewed (0) -
istioctl/pkg/injector/injector-list_test.go
"istio-injection": "enabled", }), } client := kube.NewFakeClient(nss...) expected := sets.New[string]("default", "no-ambient") actual, err := getNamespaces(context.TODO(), client, "istio-system") assert.NoError(t, err) for _, ns := range actual { assert.Equal(t, true, expected.Contains(ns.Name)) } } func Test_injectionDisabled(t *testing.T) {
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Oct 09 16:05:45 UTC 2024 - 5.5K bytes - Viewed (0)