Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for WH (0.21 sec)

  1. istioctl/pkg/tag/generate_test.go

    		}
    		wh := whObject.(*admitv1.MutatingWebhookConfiguration)
    
    		// expect both namespace.sidecar-injector.istio.io and object.sidecar-injector.istio.io webhooks
    		if len(wh.Webhooks) != tc.numWebhooks {
    			t.Errorf("expected %d webhook(s) in MutatingWebhookConfiguration, found %d",
    				tc.numWebhooks, len(wh.Webhooks))
    		}
    		tag, exists := wh.ObjectMeta.Labels[IstioTagLabel]
    		if !exists {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Jan 16 17:43:49 GMT 2024
    - 12.1K bytes
    - Viewed (0)
  2. istioctl/pkg/tag/generate.go

    	}
    	if whConfig.FailurePolicy == nil {
    		whConfig.FailurePolicy = map[string]*admitv1.FailurePolicyType{}
    	}
    	for _, wh := range vwh.Webhooks {
    		if wh.FailurePolicy != nil && *wh.FailurePolicy == admitv1.Fail {
    			whConfig.FailurePolicy[wh.Name] = nil
    		} else {
    			whConfig.FailurePolicy[wh.Name] = wh.FailurePolicy
    		}
    	}
    	return whConfig, nil
    }
    
    // Create applies the given tag manifests.
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Jan 16 17:43:49 GMT 2024
    - 13.2K bytes
    - Viewed (0)
  3. istioctl/pkg/tag/tag.go

    		return nil
    	}
    	rawTags := map[uniqTag]tagDescription{}
    	for _, wh := range tagWebhooks {
    		tagName := GetWebhookTagName(wh)
    		tagRevision, err := GetWebhookRevision(wh)
    		if err != nil {
    			return fmt.Errorf("error parsing revision from webhook %q: %v", wh.Name, err)
    		}
    		tagNamespaces, err := GetNamespacesWithTag(ctx, kubeClient, tagName)
    		if err != nil {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 02 08:32:06 GMT 2024
    - 16.3K bytes
    - Viewed (0)
  4. istioctl/pkg/multixds/gather.go

    	})
    	if err != nil {
    		return nil, err
    	}
    	for _, whc := range webhooks.Items {
    		for _, wh := range whc.Webhooks {
    			if wh.ClientConfig.URL != nil {
    				u, err := url.Parse(*wh.ClientConfig.URL)
    				if err != nil {
    					return nil, fmt.Errorf("parsing webhook URL: %w", err)
    				}
    				if isMCPAddr(u) {
    					return parseMCPAddr(u)
    				}
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Mar 08 08:38:19 GMT 2024
    - 13.6K bytes
    - Viewed (0)
  5. istioctl/pkg/kubeinject/kubeinject.go

    			whcName, err)
    	}
    	if whcList != nil && len(whcList.Items) != 0 {
    		for _, wh := range whcList.Items[0].Webhooks {
    			if strings.HasSuffix(wh.Name, defaultWebhookName) {
    				return &ExternalInjector{client, &wh.ClientConfig, injectorAddress}, nil
    			}
    		}
    	}
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Mar 29 02:29:02 GMT 2024
    - 21.6K bytes
    - Viewed (0)
  6. istioctl/pkg/checkinject/checkinject_test.go

    	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 {
    		t.Run(c.name, func(t *testing.T) {
    			checkResults := analyzeRunningWebhooks(whs,
    				c.pod.Labels, c.ns.Labels)
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Thu Jun 15 15:02:17 GMT 2023
    - 10.6K bytes
    - Viewed (0)
  7. operator/cmd/mesh/manifest-generate_test.go

    				t.Run(fmt.Sprintf("ns:%v pod:%v", s.namespace, s.pod), func(t *testing.T) {
    					found := ""
    					match := 0
    					for i, wh := range whs {
    						sn := wh.ClientConfig.Service.Name
    						matches := selectorMatches(t, wh.NamespaceSelector, s.namespace) && selectorMatches(t, wh.ObjectSelector, s.pod)
    						if matches && found != "" {
    							// There must be exactly one match, or we will double inject.
    Go
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Thu Feb 22 08:32:23 GMT 2024
    - 42K bytes
    - Viewed (0)
Back to top