Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 58 for wh (0.03 sec)

  1. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/mutating/plugin_test.go

    			wh.SetServiceResolver(webhooktesting.NewServiceResolver(*serverURL))
    			wh.SetExternalKubeClientSet(client)
    			wh.SetExternalKubeInformerFactory(informer)
    
    			informer.Start(stopCh)
    			informer.WaitForCacheSync(stopCh)
    
    			if err = wh.ValidateInitialization(); err != nil {
    				t.Errorf("failed to validate initialization: %v", err)
    				return
    			}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:52 UTC 2024
    - 11K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/validating/plugin_test.go

    			wh.SetServiceResolver(webhooktesting.NewServiceResolver(*serverURL))
    			wh.SetExternalKubeClientSet(client)
    			wh.SetExternalKubeInformerFactory(informer)
    
    			informer.Start(stopCh)
    			informer.WaitForCacheSync(stopCh)
    
    			if err = wh.ValidateInitialization(); err != nil {
    				t.Errorf("failed to validate initialization: %v", err)
    				return
    			}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:52 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  3. pkg/config/analysis/analyzers/webhook/webhook.go

    			return true
    		}
    		wh := resource.Message.(*v1.MutatingWebhookConfiguration)
    		revs := extractRevisions(wh)
    		if len(revs) == 0 && !isIstioWebhook(wh) {
    			return true
    		}
    		webhooks[resource.Metadata.FullName.String()] = wh.Webhooks
    		for _, h := range wh.Webhooks {
    			resources[fmt.Sprintf("%v/%v", resource.Metadata.FullName.String(), h.Name)] = resource
    		}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun May 05 03:44:57 UTC 2024
    - 6K bytes
    - Viewed (0)
  4. pkg/kube/inject/webhook.go

    		wh.mu.Lock()
    		wh.meshConfig = p.Env.Mesh()
    		wh.mu.Unlock()
    	})
    
    	return wh, nil
    }
    
    // Run implements the webhook server
    func (wh *Webhook) Run(stop <-chan struct{}) {
    	go wh.watcher.Run(stop)
    }
    
    func (wh *Webhook) updateConfig(sidecarConfig *Config, valuesConfig string) error {
    	wh.mu.Lock()
    	defer wh.mu.Unlock()
    	wh.Config = sidecarConfig
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 17:59:39 UTC 2024
    - 42.2K bytes
    - Viewed (0)
  5. pkg/webhooks/validation/server/server_test.go

    	}
    
    	options := Options{
    		Port:         port,
    		DomainSuffix: testDomainSuffix,
    		Schemas:      collections.Mocks,
    		Mux:          http.NewServeMux(),
    	}
    	wh, err := New(options)
    	if err != nil {
    		t.Fatalf("New() failed: %v", err)
    	}
    
    	return wh
    }
    
    func makePilotConfig(t *testing.T, i int, validConfig bool, includeBogusKey bool) []byte { // nolint: unparam
    	t.Helper()
    
    	var key string
    	if validConfig {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Mar 01 01:34:15 UTC 2023
    - 9.6K bytes
    - Viewed (0)
  6. 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: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Apr 13 05:23:38 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  7. 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
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jan 16 17:43:42 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  8. 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: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jan 16 17:43:49 UTC 2024
    - 13.2K bytes
    - Viewed (0)
  9. 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 Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  10. 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 {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jan 16 17:43:49 UTC 2024
    - 12.1K bytes
    - Viewed (0)
Back to top