Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for WH (0.14 sec)

  1. istioctl/pkg/checkinject/checkinject.go

    		}
    
    		var isDeactivated bool
    		for _, wh := range whs {
    			if reflect.DeepEqual(wh.NamespaceSelector, util.NeverMatch) && reflect.DeepEqual(wh.ObjectSelector, util.NeverMatch) {
    				isDeactivated = true
    			}
    			nsMatchedLabels = append(nsMatchedLabels, extractMatchLabels(wh.NamespaceSelector)...)
    			podMatchedLabels = append(podMatchedLabels, extractMatchLabels(wh.ObjectSelector)...)
    		}
    		if isDeactivated {
    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)
  2. internal/logger/message/audit/entry.go

    	for k, v := range r.Header {
    		reqHeader[k] = strings.Join(v, ",")
    	}
    	entry.ReqHeader = reqHeader
    
    	wh := w.Header()
    	entry.RequestID = wh.Get(xhttp.AmzRequestID)
    	respHeader := make(map[string]string, len(wh))
    	for k, v := range wh {
    		respHeader[k] = strings.Join(v, ",")
    	}
    	entry.RespHeader = respHeader
    
    	if etag := respHeader[xhttp.ETag]; etag != "" {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Sep 04 19:57:37 GMT 2023
    - 2.2K bytes
    - Viewed (0)
  3. istioctl/pkg/tag/util.go

    }
    
    // GetWebhookTagName extracts tag name from webhook object.
    func GetWebhookTagName(wh admitv1.MutatingWebhookConfiguration) string {
    	return wh.ObjectMeta.Labels[IstioTagLabel]
    }
    
    // GetWebhookRevision extracts tag target revision from webhook object.
    func GetWebhookRevision(wh admitv1.MutatingWebhookConfiguration) (string, error) {
    	if tagName, ok := wh.ObjectMeta.Labels[label.IoIstioRev.Name]; ok {
    		return tagName, 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)
  4. 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 Apr 24 22:53:08 GMT 2024
    - Last Modified: Tue Jan 16 17:43:49 GMT 2024
    - 13.2K bytes
    - Viewed (0)
  5. 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 Apr 24 22:53:08 GMT 2024
    - Last Modified: Tue Jan 16 17:43:49 GMT 2024
    - 12.1K bytes
    - Viewed (0)
  6. 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 Apr 24 22:53:08 GMT 2024
    - Last Modified: Tue Apr 02 08:32:06 GMT 2024
    - 16.3K bytes
    - Viewed (0)
  7. 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 Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Mar 08 08:38:19 GMT 2024
    - 13.6K bytes
    - Viewed (0)
  8. 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 Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Mar 29 02:29:02 GMT 2024
    - 21.6K bytes
    - Viewed (0)
  9. 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 Apr 24 22:53:08 GMT 2024
    - Last Modified: Thu Jun 15 15:02:17 GMT 2023
    - 10.6K bytes
    - Viewed (0)
  10. 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