Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for whs (0.03 sec)

  1. istioctl/pkg/checkinject/checkinject.go

    					return err
    				}
    				podLabels = ls.MatchLabels
    				nsLabels = ns.GetLabels()
    			}
    			whs, err := kubeClient.Kube().AdmissionregistrationV1().MutatingWebhookConfigurations().List(context.TODO(), metav1.ListOptions{})
    			if err != nil {
    				return err
    			}
    			checkResults := analyzeRunningWebhooks(whs.Items, podLabels, nsLabels)
    			return printCheckInjectorResults(cmd.OutOrStdout(), checkResults)
    		},
    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/tag/util.go

    	whs, err := GetWebhooksWithRevision(ctx, client, DefaultRevisionName)
    	if err != nil {
    		return err
    	}
    	if len(whs) == 0 {
    		// no revision with default, no action required.
    		return nil
    	}
    	if len(whs) > 1 {
    		return fmt.Errorf("expected a single webhook for default revision")
    	}
    	webhook := whs[0]
    	for i := range webhook.Webhooks {
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Oct 09 16:05:45 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  3. istioctl/pkg/checkinject/checkinject_test.go

    		"testdata/check-inject/never-match-injector.yaml",
    	}
    	var whs []admitv1.MutatingWebhookConfiguration
    	for _, whName := range whFiles {
    		file, err := os.ReadFile(whName)
    		if err != nil {
    			t.Fatal(err)
    		}
    		var wh *admitv1.MutatingWebhookConfiguration
    		if err := yaml.Unmarshal(file, &wh); err != nil {
    			t.Fatal(err)
    		}
    		whs = append(whs, *wh)
    	}
    	for _, c := range cases {
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Jun 15 15:02:17 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  4. istioctl/pkg/tag/generate.go

    	}
    	if len(revWebhooks) > 1 {
    		return "", fmt.Errorf("cannot modify tag: found multiple canonical webhooks with revision %q", opts.Revision)
    	}
    
    	whs, err := GetWebhooksWithTag(ctx, client.Kube(), opts.Tag)
    	if err != nil {
    		return "", err
    	}
    	if len(whs) > 0 && !opts.Overwrite {
    		return "", fmt.Errorf("revision tag %q already exists, and --overwrite is false", opts.Tag)
    	}
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Oct 09 16:05:45 UTC 2024
    - 13.3K bytes
    - Viewed (0)
Back to top