Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for Papp (0.17 sec)

  1. istioctl/pkg/checkinject/checkinject.go

      istioctl x check-inject deployment/details-v1 -n test
    
      # Check the injection status of label pairs in a specific namespace before actual injection 
      istioctl x check-inject -n test -l app=helloworld,version=v1
    `,
    		Args: func(cmd *cobra.Command, args []string) error {
    			if len(args) == 0 && labelPairs == "" || len(args) > 1 {
    				cmd.Println(cmd.UsageString())
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  2. istioctl/pkg/util/ambient/util.go

    	if client == nil {
    		return isZtunnel
    	}
    	pod, err := client.Kube().CoreV1().Pods(podNamespace).Get(context.Background(), podName, metav1.GetOptions{})
    	if err != nil {
    		return isZtunnel
    	}
    	if v, ok := pod.Labels["app"]; ok {
    		return v == "ztunnel"
    	}
    	return isZtunnel
    }
    
    // InAmbient returns true if a resource is in ambient data plane mode.
    func InAmbient(obj metav1.Object) bool {
    	if obj == nil {
    		return false
    	}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu May 02 21:29:40 GMT 2024
    - 1.7K bytes
    - Viewed (0)
  3. istioctl/pkg/dashboard/dashboard_test.go

    			WantException:  true,
    		},
    		{ // case 9
    			Args:           strings.Split("prometheus --browser=false", " "),
    			ExpectedOutput: "Error: no pods found with selector app.kubernetes.io/name=prometheus\n",
    			WantException:  true,
    		},
    		{ // case 10
    			Args:           strings.Split("zipkin --browser=false", " "),
    			ExpectedOutput: "Error: no pods found with selector app=zipkin\n",
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Nov 21 01:17:24 GMT 2023
    - 4.3K bytes
    - Viewed (0)
  4. istioctl/pkg/tag/util.go

    func PreviousInstallExists(ctx context.Context, client kubernetes.Interface) bool {
    	mwhs, err := client.AdmissionregistrationV1().MutatingWebhookConfigurations().List(ctx, metav1.ListOptions{
    		LabelSelector: "app=sidecar-injector",
    	})
    	if err != nil {
    		return false
    	}
    	return len(mwhs.Items) > 0
    }
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Jan 16 17:43:42 GMT 2024
    - 5.4K bytes
    - Viewed (1)
  5. istioctl/pkg/proxystatus/proxystatus_test.go

    					ObjectMeta: metav1.ObjectMeta{
    						Name:      "istiod-test",
    						Namespace: "istio-system",
    						Labels: map[string]string{
    							"app":                 "istiod",
    							label.IoIstioRev.Name: c.revision,
    						},
    					},
    					Status: corev1.PodStatus{
    						Phase: corev1.PodRunning,
    					},
    				}, metav1.CreateOptions{})
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 08:28:50 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  6. istioctl/pkg/admin/admin.go

    			cmd.HelpFunc()(cmd, args)
    			return nil
    		},
    	}
    
    	istiodLog := istiodLogCmd(ctx)
    	adminCmd.AddCommand(istiodLog)
    	adminCmd.PersistentFlags().StringVarP(&istiodLabelSelector, "selector", "l", "app=istiod", "label selector")
    
    	return adminCmd
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Jun 15 15:02:17 GMT 2023
    - 1.4K bytes
    - Viewed (0)
  7. cni/pkg/plugin/plugin_dryrun_test.go

    	err = doAddRun(args, conf, client.Kube(), IptablesInterceptRuleMgr())
    	if err != nil {
    		t.Fatalf("failed with error: %v", err)
    	}
    }
    
    func buildFakeDryRunPod() *corev1.Pod {
    	app := corev1.Container{Name: "test"}
    	proxy := corev1.Container{Name: "istio-proxy"}
    	validate := corev1.Container{Name: "istio-validate"}
    	fakePod := &corev1.Pod{
    		TypeMeta: metav1.TypeMeta{
    			APIVersion: "core/v1",
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Feb 10 00:31:55 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  8. cni/pkg/util/podutil.go

    	if _, f := pod.GetAnnotations()[annotation.SidecarStatus.Name]; f {
    		return true
    	}
    	return false
    }
    
    func IsZtunnelPod(systemNs string, pod *corev1.Pod) bool {
    	return pod.Namespace == systemNs && pod.GetLabels()["app"] == "ztunnel"
    }
    
    func AnnotateEnrolledPod(client kubernetes.Interface, pod *metav1.ObjectMeta) error {
    	_, err := client.CoreV1().
    		Pods(pod.Namespace).
    		Patch(
    			context.Background(),
    			pod.Name,
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri May 03 19:29:42 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  9. istioctl/pkg/metrics/metrics.go

    	client, err := ctx.CLIClientWithRevision(metricsOpts.Revision)
    	if err != nil {
    		return fmt.Errorf("failed to create k8s client: %v", err)
    	}
    
    	pl, err := client.PodsForSelector(context.TODO(), ctx.IstioNamespace(), "app.kubernetes.io/name=prometheus")
    	if err != nil {
    		return fmt.Errorf("not able to locate Prometheus pod: %v", err)
    	}
    
    	if len(pl.Items) < 1 {
    		return errors.New("no Prometheus pods found")
    	}
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  10. istioctl/pkg/internaldebug/internal-debug_test.go

    					ObjectMeta: metav1.ObjectMeta{
    						Name:      "istiod-test",
    						Namespace: "istio-system",
    						Labels: map[string]string{
    							"app":                 "istiod",
    							label.IoIstioRev.Name: c.revision,
    						},
    					},
    					Status: corev1.PodStatus{
    						Phase: corev1.PodRunning,
    					},
    				}, metav1.CreateOptions{})
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 08:28:50 GMT 2024
    - 4.5K bytes
    - Viewed (0)
Back to top