Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 36 of 36 for CLIClient (0.05 sec)

  1. istioctl/pkg/checkinject/checkinject.go

    			}
    			return nil
    		},
    		RunE: func(cmd *cobra.Command, args []string) error {
    			kubeClient, err := ctx.CLIClient()
    			if err != nil {
    				return err
    			}
    			var podName, podNs string
    			var podLabels, nsLabels map[string]string
    			if len(args) == 1 {
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Sat Apr 13 05:23:38 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  2. istioctl/pkg/metrics/metrics_test.go

    			WantException:  true,
    		},
    	}
    
    	ctx := cli.NewFakeContext(&cli.NewFakeContextOption{
    		IstioNamespace: "istio-system",
    	})
    	client, err := ctx.CLIClient()
    	if err != nil {
    		t.Fatal(err)
    	}
    	client.Kube().CoreV1().Pods("istio-system").Create(context.TODO(), &corev1.Pod{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:      "prometheus",
    			Namespace: "istio-system",
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Fri Aug 16 01:35:47 UTC 2024
    - 8K bytes
    - Viewed (0)
  3. istioctl/pkg/proxyconfig/proxyconfig_test.go

    		t.Fatalf("Unexpected output for 'istioctl proxy-config all'\n got: %q\nwant: %q", out.String(), expected)
    	}
    }
    
    func init() {
    	cli.MakeKubeFactory = func(k kube.CLIClient) cmdutil.Factory {
    		tf := cmdtesting.NewTestFactory()
    		_, _, codec := cmdtesting.NewExternalScheme()
    		tf.UnstructuredClient = &fake.RESTClient{
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Apr 10 21:51:29 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  4. istioctl/pkg/tag/generate.go

    		} else {
    			whConfig.FailurePolicy[wh.Name] = wh.FailurePolicy
    		}
    	}
    	return whConfig, nil
    }
    
    // Create applies the given tag manifests.
    func Create(client kube.CLIClient, manifests, ns string) error {
    	if err := client.ApplyYAMLContents(ns, manifests); err != nil {
    		return fmt.Errorf("failed to apply tag manifests to cluster: %v", err)
    	}
    	return nil
    }
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Oct 09 16:05:45 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  5. istioctl/pkg/multicluster/remote_secret_test.go

    				IstioNamespace: "istio-system",
    				Objects:        c.objs,
    				Namespace:      testNamespace,
    				Version:        c.k8sMinorVersion,
    			})
    			client, err := ctx.CLIClient()
    			if err != nil {
    				tt.Fatalf("failed to create client: %v", err)
    			}
    			got, _, err := CreateRemoteSecret(client, opts)
    			if c.wantErrStr != "" {
    				if err == nil {
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Oct 24 17:36:49 UTC 2024
    - 20.7K bytes
    - Viewed (0)
  6. istioctl/pkg/describe/describe_test.go

    	t.Helper()
    
    	ctx := cli.NewFakeContext(&cli.NewFakeContextOption{
    		Namespace:      c.namespace,
    		IstioNamespace: c.istioNamespace,
    		Results:        c.configDumps,
    	})
    	client, err := ctx.CLIClient()
    	assert.NoError(t, err)
    	// Override the Istio config factory
    	for i := range c.istioConfigs {
    		switch t := c.istioConfigs[i].(type) {
    		case *clientnetworking.DestinationRule:
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Aug 01 20:04:20 UTC 2024
    - 30.8K bytes
    - Viewed (0)
Back to top