- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for newWebhook (0.19 sec)
-
staging/src/k8s.io/apiserver/plugin/pkg/audit/webhook/webhook_test.go
io.WriteString(w, "{}") return } // In a goroutine, can't call Fatal. assert.NoError(t.t, err, "failed to read request body") http.Error(w, err.Error(), http.StatusInternalServerError) } func newWebhook(t *testing.T, endpoint string, groupVersion schema.GroupVersion) *backend { config := v1.Config{ Clusters: []v1.NamedCluster{ {Cluster: v1.Cluster{Server: endpoint, InsecureSkipTLSVerify: true}}, }, }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 08 06:37:26 UTC 2022 - 3.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/validating/plugin.go
handler := admission.NewHandler(admission.Connect, admission.Create, admission.Delete, admission.Update) p := &Plugin{} var err error p.Webhook, err = generic.NewWebhook(handler, configFile, configuration.NewValidatingWebhookConfigurationManager, newValidatingDispatcher(p)) if err != nil { return nil, err } return p, nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 20 15:11:00 UTC 2019 - 2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/mutating/plugin.go
func NewMutatingWebhook(configFile io.Reader) (*Plugin, error) { handler := admission.NewHandler(admission.Connect, admission.Create, admission.Delete, admission.Update) p := &Plugin{} var err error p.Webhook, err = generic.NewWebhook(handler, configFile, configuration.NewMutatingWebhookConfigurationManager, newMutatingDispatcher(p)) if err != nil { return nil, err } return p, nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 20 15:11:00 UTC 2019 - 2.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/generic/webhook.go
) type sourceFactory func(f informers.SharedInformerFactory) Source type dispatcherFactory func(cm *webhookutil.ClientManager) Dispatcher // NewWebhook creates a new generic admission webhook. func NewWebhook(handler *admission.Handler, configFile io.Reader, sourceFactory sourceFactory, dispatcherFactory dispatcherFactory) (*Webhook, error) { kubeconfigFile, err := config.LoadConfig(configFile)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 10 22:07:40 UTC 2024 - 9.3K bytes - Viewed (0) -
pilot/pkg/bootstrap/sidecarinjector.go
Watcher: watcher, Env: s.environment, Mux: s.httpsMux, Revision: args.Revision, MultiCluster: s.multiclusterController, } wh, err := inject.NewWebhook(parameters) if err != nil { return nil, fmt.Errorf("failed to create injection webhook: %v", err) } // Patch cert if a webhook config name is provided.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Mar 04 20:39:38 UTC 2024 - 4K bytes - Viewed (0) -
pkg/kube/inject/webhook_test.go
if err != nil { t.Fatalf("NewFileWatcher() failed: %v", err) } wh, err := NewWebhook(WebhookParameters{ Watcher: watcher, Port: port, Env: &env, Mux: http.NewServeMux(), }) if err != nil { t.Fatalf("NewWebhook() failed: %v", err) } return wh } func TestRunAndServe(t *testing.T) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jul 17 20:25:52 UTC 2023 - 39K bytes - Viewed (1) -
pkg/kube/inject/webhook.go
Revision string // MultiCluster is used to access namespaces across clusters MultiCluster multicluster.ComponentBuilder } // NewWebhook creates a new instance of a mutating webhook for automatic sidecar injection. func NewWebhook(p WebhookParameters) (*Webhook, error) { if p.Mux == nil { return nil, errors.New("expected mux to be passed, but was not passed") } wh := &Webhook{
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 14 17:59:39 UTC 2024 - 42.2K bytes - Viewed (0) -
internal/logger/targets.go
tgts := make([]*http.Target, 0) newWebhooks := make([]Target, 0) for _, cfg := range cfgs { if cfg.Enabled { t, err := http.New(cfg) if err != nil { errs = append(errs, err) } tgts = append(tgts, t) newWebhooks = append(newWebhooks, t) } } oldTargets, others := splitTargets(targetsList.get(), types.TargetHTTP) newWebhooks = append(newWebhooks, others...)
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Jun 03 15:44:50 UTC 2024 - 6K bytes - Viewed (0)