Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for AdmissionregistrationV1 (0.31 sec)

  1. istioctl/pkg/tag/util.go

    	"istio.io/api/label"
    	"istio.io/istio/istioctl/pkg/util"
    )
    
    func GetRevisionWebhooks(ctx context.Context, client kubernetes.Interface) ([]admitv1.MutatingWebhookConfiguration, error) {
    	webhooks, err := client.AdmissionregistrationV1().MutatingWebhookConfigurations().List(ctx, metav1.ListOptions{
    		LabelSelector: label.IoIstioRev.Name,
    	})
    	if err != nil {
    		return nil, err
    	}
    	return webhooks.Items, nil
    }
    
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Tue Jan 16 17:43:42 GMT 2024
    - 5.4K bytes
    - Viewed (1)
  2. istioctl/pkg/tag/tag_test.go

    				if !strings.Contains(commandOutput, s) {
    					t.Fatalf("expected \"%s\" in command output, got %s", s, commandOutput)
    				}
    			}
    
    			// check mutating webhooks after run
    			webhooksAfter, _ := client.AdmissionregistrationV1().MutatingWebhookConfigurations().List(context.Background(), metav1.ListOptions{})
    			if len(webhooksAfter.Items) != len(tc.webhooksAfter.Items) {
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Nov 17 22:41:06 GMT 2023
    - 8.7K bytes
    - Viewed (0)
  3. istioctl/pkg/tag/revision.go

    			}
    		}
    	}
    
    	return revisions, nil
    }
    
    func Webhooks(ctx context.Context, client kube.CLIClient) ([]admitv1.MutatingWebhookConfiguration, error) {
    	hooks, err := client.Kube().AdmissionregistrationV1().MutatingWebhookConfigurations().List(ctx, metav1.ListOptions{})
    	if err != nil {
    		return []admitv1.MutatingWebhookConfiguration{}, err
    	}
    	return hooks.Items, nil
    }
    
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Sat Jan 28 13:16:05 GMT 2023
    - 4.5K bytes
    - Viewed (0)
  4. istioctl/pkg/checkinject/checkinject.go

    				}
    				ls, err := metav1.ParseToLabelSelector(labelPairs)
    				if err != nil {
    					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)
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  5. istioctl/pkg/multixds/gather.go

    }
    
    type xdsAddr struct {
    	gcpProject, host, istiod string
    }
    
    func getXdsAddressFromWebhooks(client kube.CLIClient) (*xdsAddr, error) {
    	webhooks, err := client.Kube().AdmissionregistrationV1().MutatingWebhookConfigurations().List(context.Background(), metav1.ListOptions{
    		LabelSelector: fmt.Sprintf("%s=%s,!istio.io/tag", label.IoIstioRev.Name, client.Revision()),
    	})
    	if err != nil {
    		return nil, err
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Mar 08 08:38:19 GMT 2024
    - 13.6K bytes
    - Viewed (0)
  6. istioctl/pkg/injector/injector-list.go

    			}
    
    			nslist, err := getNamespaces(context.Background(), client, ctx.IstioNamespace())
    			if err != nil {
    				return err
    			}
    
    			hooksList, err := client.Kube().AdmissionregistrationV1().MutatingWebhookConfigurations().List(context.Background(), metav1.ListOptions{})
    			if err != nil {
    				return err
    			}
    			hooks := hooksList.Items
    			pods, err := getPods(context.Background(), client)
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Thu Jan 04 03:08:06 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  7. istioctl/pkg/tag/generate_test.go

    		Generate: generate,
    		Tag:      "default",
    		Revision: "default",
    	}
    
    	_, err := Generate(context.TODO(), fakeClient, opts, "istio-system")
    	assert.NoError(t, err)
    
    	wh, err := fakeClient.Kube().AdmissionregistrationV1().MutatingWebhookConfigurations().
    		Get(context.Background(), "istio-sidecar-injector", metav1.GetOptions{})
    	assert.NoError(t, err)
    
    	assertFunc(t, wh.Webhooks, defaultWh.Webhooks)
    }
    
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Tue Jan 16 17:43:49 GMT 2024
    - 12.1K bytes
    - Viewed (0)
  8. operator/cmd/mesh/install.go

    	if !helmreconciler.DetectIfTagWebhookIsNeeded(iop, exists) {
    		return nil
    	}
    	mwhs, err := client.Kube().AdmissionregistrationV1().MutatingWebhookConfigurations().List(context.Background(), metav1.ListOptions{
    		LabelSelector: "app=sidecar-injector,istio.io/rev=default,istio.io/tag=default",
    	})
    	if err != nil {
    		return err
    	}
    Go
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 01:18:49 GMT 2024
    - 15.2K bytes
    - Viewed (0)
  9. istioctl/pkg/tag/generate.go

    	// that is set to `Fail` by Istiod, we avoid of setting it back to the default `Ignore`.
    	vwh, err := client.Kube().AdmissionregistrationV1().ValidatingWebhookConfigurations().
    		Get(context.Background(), vwhBaseTemplateName, metav1.GetOptions{})
    	if err != nil && !errors.IsNotFound(err) {
    		return nil, err
    	}
    	if vwh == nil {
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Tue Jan 16 17:43:49 GMT 2024
    - 13.2K bytes
    - Viewed (0)
  10. istioctl/pkg/kubeinject/kubeinject.go

    	e := &ExternalInjector{}
    	client, err := ctx.CLIClient()
    	if err != nil {
    		return e, err
    	}
    	if revision == "" {
    		revision = "default"
    	}
    	whcList, err := client.Kube().AdmissionregistrationV1().MutatingWebhookConfigurations().List(context.TODO(),
    		metav1.ListOptions{LabelSelector: fmt.Sprintf("%s=%s", label.IoIstioRev.Name, revision)})
    	if err != nil {
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Mar 29 02:29:02 GMT 2024
    - 21.6K bytes
    - Viewed (0)
Back to top