Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 506 for hook1 (0.12 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. subprojects/core/src/main/java/org/gradle/process/internal/shutdown/ShutdownHooks.java

        private static final Logger LOGGER = Logging.getLogger(ShutdownHooks.class);
        private static final Map<Runnable, Thread> HOOKS = new ConcurrentHashMap<Runnable, Thread>();
    
        public static void addShutdownHook(Runnable shutdownHook) {
            Thread thread = new Thread(shutdownHook, "gradle-shutdown-hook");
            HOOKS.put(shutdownHook, thread);
            Runtime.getRuntime().addShutdownHook(thread);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 12 05:56:18 UTC 2021
    - 2K bytes
    - Viewed (0)
  8. 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)
  9. test/fixedbugs/issue34503.dir/a.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package a
    
    import "unsafe"
    
    type HookFunc func(x uint64)
    
    var HookV unsafe.Pointer
    
    func Hook(x uint64) {
    	(*(*HookFunc)(HookV))(x)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 25 18:10:57 UTC 2019
    - 294 bytes
    - Viewed (0)
  10. 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)
Back to top