Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for ns (0.15 sec)

  1. istioctl/pkg/waypoint/waypoint.go

    			if err != nil {
    				return fmt.Errorf("failed to create Kubernetes client: %v", err)
    			}
    			var ns string
    			if allNamespaces {
    				ns = ""
    			} else {
    				ns = ctx.NamespaceOrDefault(ctx.Namespace())
    			}
    			gws, err := kubeClient.GatewayAPI().GatewayV1().Gateways(ns).
    				List(context.Background(), metav1.ListOptions{})
    			if err != nil {
    				return err
    			}
    			if len(gws.Items) == 0 {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed May 08 19:45:58 GMT 2024
    - 15.5K bytes
    - Viewed (0)
  2. cni/pkg/plugin/plugin_test.go

            "cnibindir": "/testDirectory"
        }
        }`
    
    	pod, ns := buildFakePodAndNSForClient()
    	testDoAddRun(t, fmt.Sprintf(confNoPrevResult, false), testNSName, pod, ns)
    	testDoAddRun(t, fmt.Sprintf(confNoPrevResult, true), testNSName, pod, ns)
    }
    
    func TestCmdAddEnableDualStack(t *testing.T) {
    	pod, ns := buildFakePodAndNSForClient()
    	pod.ObjectMeta.Annotations[sidecarStatusKey] = "true"
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed May 08 15:58:51 GMT 2024
    - 17.5K bytes
    - Viewed (0)
  3. cni/pkg/nodeagent/informers_test.go

    		constants.DataplaneModeLabel))
    	_, err = client.Kube().CoreV1().Namespaces().Patch(ctx, ns.Name,
    		types.MergePatchType, labelsPatch, metav1.PatchOptions{})
    	assert.NoError(t, err)
    
    	// wait for another two update events
    	// total 3 update at before unlabel point: 1. init ns reconcile 2. ns label reconcile 3. pod annotation update
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri May 03 19:29:42 GMT 2024
    - 15.8K bytes
    - Viewed (0)
  4. operator/cmd/mesh/install.go

    	}
    
    	profile, ns, enabledComponents, err := getProfileNSAndEnabledComponents(iop)
    	if err != nil {
    		return fmt.Errorf("failed to get profile, namespace or enabled components: %v", err)
    	}
    
    	// Ignore the err because we don't want to show
    	// "no running Istio pods in istio-system" for the first time
    	_ = detectIstioVersionDiff(p, tag, ns, kubeClient, iop)
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu May 02 14:30:43 GMT 2024
    - 15.5K bytes
    - Viewed (1)
  5. istioctl/pkg/ztunnelconfig/ztunnelconfig.go

    			if len(args) == 1 {
    				podName, ns, err := getComponentPodName(ctx, args[0])
    				if err != nil {
    					return err
    				}
    				ztunnelPod := ambientutil.IsZtunnelPod(kubeClient, podName, ns)
    				if !ztunnelPod {
    					return fmt.Errorf("workloads command is only supported by Ztunnel proxies: %v", podName)
    				}
    				podNames = []string{podName}
    				podNamespace = ns
    			} else {
    				var err error
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed May 01 13:11:40 GMT 2024
    - 22.2K bytes
    - Viewed (0)
  6. cni/pkg/plugin/plugin.go

    	if err != nil {
    		return false, err
    	}
    	ns, err := client.CoreV1().Namespaces().Get(context.Background(), podNamespace, metav1.GetOptions{})
    	if err != nil {
    		return false, err
    	}
    
    	return util.PodRedirectionEnabled(ns, pod), nil
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed May 08 15:58:51 GMT 2024
    - 10.5K bytes
    - Viewed (0)
Back to top