- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for getNamespaces (0.16 sec)
-
istioctl/pkg/injector/injector-list.go
pods, err := client.Kube().CoreV1().Pods("").List(ctx, metav1.ListOptions{}) if err != nil { return retval, err } for _, pod := range pods.Items { retval[resource.Namespace(pod.GetNamespace())] = append(retval[resource.Namespace(pod.GetNamespace())], pod) } return retval, nil } // getInjectedImages() returns a map of revision->dockerimage
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri Oct 18 11:39:52 UTC 2024 - 10.6K 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) -
istioctl/pkg/waypoint/waypoint.go
nsObj, err := getNamespace(kubeClient, ns) if err != nil { return false, err } if nsObj.Labels == nil { return false, nil } return nsObj.Labels[label] != "", nil } func namespaceHasLabelWithValue(kubeClient kube.CLIClient, ns string, label, labelValue string) (bool, error) { nsObj, err := getNamespace(kubeClient, ns) if err != nil { return false, err }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Oct 09 16:05:45 UTC 2024 - 19.6K bytes - Viewed (0) -
istioctl/pkg/precheck/precheck.go
res := &resource.Instance{ Origin: &legacykube.Origin{ Type: config.GroupVersionKind(deployment.GroupVersionKind()), FullName: resource.FullName{ Namespace: resource.Namespace(deployment.GetNamespace()), Name: resource.LocalName(deployment.GetName()), }, ResourceVersion: resource.Version(deployment.GetResourceVersion()), Ref: nil, FieldsMap: nil, },
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Oct 24 02:31:32 UTC 2024 - 15.3K bytes - Viewed (0) -
istioctl/pkg/describe/describe.go
return nil } // key: namespace ingressPods := map[string][]*corev1.Pod{} ingressNss := sets.New[string]() for i, pod := range pods.Items { ns := pod.GetNamespace() ingressNss.Insert(ns) ingressPods[ns] = append(ingressPods[ns], pods.Items[i].DeepCopy()) } foundIngresses := []*ingressInfo{} for _, ns := range ingressNss.UnsortedList() {
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Oct 24 17:36:49 UTC 2024 - 50.6K bytes - Viewed (0)