Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 412 for hook1 (0.15 sec)

  1. pkg/webhooks/validation/controller/controller_test.go

    					Resources:   []string{"*"},
    				},
    			}},
    			FailurePolicy: ptr.Of(admission.Ignore),
    		}, {
    			Name: "hook1",
    			ClientConfig: admission.WebhookClientConfig{Service: &admission.ServiceReference{
    				Namespace: namespace,
    				Name:      istiod,
    				Path:      &[]string{"/hook1"}[0],
    			}},
    			Rules: []admission.RuleWithOperations{{
    				Operations: []admission.OperationType{admission.Create, admission.Update},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 05 03:21:04 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  2. src/internal/runtime/exithook/hooks.go

    	runGoid atomic.Uint64
    	hooks   []Hook
    	running bool
    
    	// runtime sets these for us
    	Gosched func()
    	Goid    func() uint64
    	Throw   func(string)
    )
    
    // Add adds a new exit hook.
    func Add(h Hook) {
    	for !locked.CompareAndSwap(0, 1) {
    		Gosched()
    	}
    	hooks = append(hooks, h)
    	locked.Store(0)
    }
    
    // Run runs the exit hooks.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 16:41:13 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  3. src/internal/coverage/cfile/hooks.go

    // being tested, hence we do want to run exit hooks when the program
    // terminates.
    func InitHook(istest bool) {
    	// Note: hooks are run in reverse registration order, so
    	// register the counter data hook before the meta-data hook
    	// (in the case where two hooks are needed).
    	exithook.Add(exithook.Hook{F: emitCounterData, RunOnFailure: true})
    	if istest {
    		exithook.Add(exithook.Hook{F: emitMetaData, RunOnFailure: true})
    	} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 02:32:19 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/server/hooks.go

    		return err
    	}
    	s.postStartHooks[name] = postStartHookEntry{hook: hook, originatingStack: string(debug.Stack()), done: done}
    
    	return nil
    }
    
    // AddPostStartHookOrDie allows you to add a PostStartHook, but dies on failure
    func (s *GenericAPIServer) AddPostStartHookOrDie(name string, hook PostStartHookFunc) {
    	if err := s.AddPostStartHook(name, hook); err != nil {
    		klog.Fatalf("Error registering PostStartHook %q: %v", name, err)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 18:59:21 UTC 2024
    - 8K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/generic/interfaces.go

    package generic
    
    import (
    	"context"
    
    	"k8s.io/apiserver/pkg/admission"
    )
    
    // Hook represents a dynamic admission hook. The hook may be a webhook or a
    // policy. For webhook, the Hook may describe how to contact the endpoint, expected
    // cert, etc. For policies, the hook may describe a compiled policy-binding pair.
    type Hook interface {
    	// All hooks are expected to contain zero or more match conditions, object
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 13 21:06:39 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  6. istioctl/pkg/injector/injector-list.go

    	if len(hooks) == 0 {
    		fmt.Fprintf(writer, "No Istio injection hooks present.\n")
    		return nil
    	}
    
    	w := new(tabwriter.Writer).Init(writer, 0, 8, 1, ' ', 0)
    	fmt.Fprintln(w, "NAMESPACES\tINJECTOR-HOOK\tISTIO-REVISION\tSIDECAR-IMAGE")
    	for _, hook := range hooks {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jan 04 03:08:06 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  7. src/net/hook.go

    Andy Pan <******@****.***> 1699977411 +0800
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 06:04:31 UTC 2024
    - 934 bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/generic/policy_dispatcher.go

    			// policy itself
    			relevantHooks = append(relevantHooks, PolicyInvocation[P, B, E]{
    				Policy:   hook.Policy,
    				Error:    hook.ConfigurationError,
    				Resource: matchGVR,
    				Kind:     matchGVK,
    			})
    			utilruntime.HandleError(hook.ConfigurationError)
    			continue
    		}
    
    		for _, binding := range hook.Bindings {
    			bindingAccessor := d.newBindingAccessor(binding)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  9. istioctl/pkg/tag/revision.go

    	}
    	for _, hook := range webhooks {
    		rev := renderWithDefault(hook.GetLabels()[label.IoIstioRev.Name], DefaultRevisionName)
    		tagLabel := hook.GetLabels()[IstioTagLabel]
    		ri, revPresent := revisions[rev]
    		if revPresent {
    			if tagLabel != "" {
    				ri.Webhooks = append(ri.Webhooks, &MutatingWebhookConfigInfo{
    					Name:     hook.Name,
    					Revision: rev,
    					Tag:      tagLabel,
    				})
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Jan 28 13:16:05 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  10. src/net/http/httptrace/trace.go

    	return trace
    }
    
    // WithClientTrace returns a new context based on the provided parent
    // ctx. HTTP client requests made with the returned context will use
    // the provided trace hooks, in addition to any previous hooks
    // registered with ctx. Any hooks defined in the provided trace will
    // be called first.
    func WithClientTrace(ctx context.Context, trace *ClientTrace) context.Context {
    	if trace == nil {
    		panic("nil trace")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 8.1K bytes
    - Viewed (0)
Back to top