Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for getNamespaces (0.17 sec)

  1. 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
    }
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 4.9K bytes
    - Viewed (0)
  2. istioctl/pkg/injector/injector-list_test.go

    		},
    	}
    	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{
    				Name:   name,
    				Labels: labels,
    			},
    		}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu May 02 21:29:40 GMT 2024
    - 2.9K bytes
    - Viewed (0)
  3. istioctl/pkg/wait/wait_test.go

    			}
    			fc := k.Dynamic().(*dynamicfake.FakeDynamicClient)
    			fc.PrependWatchReactor("*", func(action clienttesting.Action) (handled bool, ret watch.Interface, err error) {
    				gvr := action.GetResource()
    				ns := action.GetNamespace()
    				watch, err := fc.Tracker().Watch(gvr, ns)
    				if err != nil {
    					return false, nil, err
    				}
    				// Kubernetes Fake watches do not add initial state, but real server does
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 08:28:50 GMT 2024
    - 6.8K bytes
    - Viewed (0)
  4. manifests/charts/istio-cni/templates/daemonset.yaml

                  - NET_RAW
                  # CAP_SYS_ADMIN is required for both ambient and repair, in order to open
                  # network namespaces in `/proc` to obtain descriptors for entering pod netnamespaces.
                  # There does not appear to be a more granular capability for this.
                  - SYS_ADMIN
    {{- if .Values.cni.seccompProfile }}
                seccompProfile:
    Others
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri May 03 19:29:42 GMT 2024
    - 9.4K bytes
    - Viewed (0)
Back to top