Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for WH (0.01 sec)

  1. istioctl/pkg/tag/util.go

    }
    
    // GetWebhookTagName extracts tag name from webhook object.
    func GetWebhookTagName(wh admitv1.MutatingWebhookConfiguration) string {
    	return wh.ObjectMeta.Labels[label.IoIstioTag.Name]
    }
    
    // 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
    	}
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Oct 09 16:05:45 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  2. 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 {
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Sat Apr 13 05:23:38 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  3. 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.
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Oct 09 16:05:45 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  4. 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[label.IoIstioTag.Name]
    		if !exists {
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Oct 09 16:05:45 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  5. internal/s3select/simdj/testdata/parking-citations-10.json.zst

    ode":"4000A1","ViolationDescr":"NO EVIDENCE OF REG","Fine":50,"Latitude":99999,"Longitude":99999} {"Ticket":1103700150,"IssueData":"2015-12-21T00:00:00","IssueTime":"1435","RPState":"CA","PlateExpiry":"201512","Make":"GMC","BodyStyle":"VN","Color":"WH","Location":"525 S MAIN ST","Route":"1C51","Agency":1,"ViolationCode":"4000A1","ViolationDescr":"NO EVIDENCE OF REG","Fine":50,"Latitude":99999,"Longitude":99999} {"Ticket":1104803000,"IssueData":"2015-12-21T00:00:00","IssueTime":"2055","RPState":"...
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 693 bytes
    - Viewed (0)
  6. 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 != "" {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  7. 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 {
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Mon Jul 22 15:40:30 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  8. 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)
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Jun 15 15:02:17 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  9. 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)
    				}
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Oct 09 16:05:45 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  10. 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
    			}
    		}
    	}
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Aug 15 16:31:46 UTC 2024
    - 21K bytes
    - Viewed (0)
Back to top