Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 72 for handleCrash (0.19 sec)

  1. staging/src/k8s.io/apiserver/pkg/server/options/encryptionconfig/controller/controller.go

    func (d *DynamicEncryptionConfigContent) Run(ctx context.Context) {
    	defer utilruntime.HandleCrash()
    
    	klog.InfoS("Starting controller", "name", d.name)
    	defer klog.InfoS("Shutting down controller", "name", d.name)
    
    	var wg sync.WaitGroup
    
    	wg.Add(1)
    	go func() {
    		defer utilruntime.HandleCrash()
    		defer wg.Done()
    		defer d.queue.ShutDown()
    		<-ctx.Done()
    	}()
    
    	wg.Add(1)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/server/hooks.go

    }
    
    func runPostStartHook(name string, entry postStartHookEntry, context PostStartHookContext) {
    	var err error
    	func() {
    		// don't let the hook *accidentally* panic and kill the server
    		defer utilruntime.HandleCrash()
    		err = entry.hook(context)
    	}()
    	// if the hook intentionally wants to kill server, let it.
    	if err != nil {
    		klog.Fatalf("PostStartHook %q failed: %v", name, err)
    	}
    	close(entry.done)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 18:59:21 UTC 2024
    - 8K bytes
    - Viewed (0)
  3. pkg/controlplane/controller/systemnamespaces/system_namespaces_controller.go

    		systemNamespaces: systemNamespaces,
    		interval:         interval,
    	}
    }
    
    // Run starts one worker.
    func (c *Controller) Run(stopCh <-chan struct{}) {
    	defer utilruntime.HandleCrash()
    	defer klog.Infof("Shutting down system namespaces controller")
    
    	klog.Infof("Starting system namespaces controller")
    
    	if !cache.WaitForCacheSync(stopCh, c.namespaceSynced) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Apr 27 12:19:56 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/storage/cacher/watch_progress.go

    	ctx := wait.ContextForChannel(stopCh)
    	if pr.contextMetadata != nil {
    		ctx = metadata.NewOutgoingContext(ctx, pr.contextMetadata)
    	}
    	go func() {
    		defer utilruntime.HandleCrash()
    		<-stopCh
    		pr.mux.Lock()
    		defer pr.mux.Unlock()
    		pr.stopped = true
    		pr.cond.Signal()
    	}()
    	timer := pr.clock.NewTimer(progressRequestPeriod)
    	defer timer.Stop()
    	for {
    		stopped := func() bool {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 24 09:56:38 UTC 2024
    - 3K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiextensions-apiserver/pkg/controller/establish/establishing_controller.go

    	ec.queue.AddAfter(key, timeout)
    }
    
    // Run starts the EstablishingController.
    func (ec *EstablishingController) Run(stopCh <-chan struct{}) {
    	defer utilruntime.HandleCrash()
    	defer ec.queue.ShutDown()
    
    	klog.Info("Starting EstablishingController")
    	defer klog.Info("Shutting down EstablishingController")
    
    	if !cache.WaitForCacheSync(stopCh, ec.crdSynced) {
    		return
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  6. pkg/controller/validatingadmissionpolicystatus/controller.go

    	// Types of object are calculated from policy.Spec.MatchingConstraints
    	typeChecker *validatingadmissionpolicy.TypeChecker
    }
    
    func (c *Controller) Run(ctx context.Context, workers int) {
    	defer utilruntime.HandleCrash()
    
    	if !cache.WaitForNamedCacheSync(ControllerName, ctx.Done(), c.policySynced) {
    		return
    	}
    
    	defer c.policyQueue.ShutDown()
    	for i := 0; i < workers; i++ {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  7. pkg/controlplane/controller/legacytokentracking/controller.go

    	})
    
    	return c
    }
    
    func (c *Controller) enqueue() {
    	c.queue.Add(queueKey)
    }
    
    // Run starts the controller sync loop.
    func (c *Controller) Run(stopCh <-chan struct{}) {
    	defer utilruntime.HandleCrash()
    	defer c.queue.ShutDown()
    
    	klog.Info("Starting legacy_token_tracking_controller")
    	defer klog.Infof("Shutting down legacy_token_tracking_controller")
    
    	go c.configMapInformer.Run(stopCh)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 6K bytes
    - Viewed (0)
  8. pkg/controller/resourcequota/resource_quota_monitor.go

    }
    
    // Run sets the stop channel and starts monitor execution until stopCh is
    // closed. Any running monitors will be stopped before Run returns.
    func (qm *QuotaMonitor) Run(ctx context.Context) {
    	defer utilruntime.HandleCrash()
    
    	logger := klog.FromContext(ctx)
    
    	logger.Info("QuotaMonitor running")
    	defer logger.Info("QuotaMonitor stopping")
    
    	// Set up the stop channel.
    	qm.monitorLock.Lock()
    	qm.stopCh = ctx.Done()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  9. pkg/controller/nodeipam/node_ipam_controller.go

    	return ic, nil
    }
    
    // Run starts an asynchronous loop that monitors the status of cluster nodes.
    func (nc *Controller) Run(ctx context.Context) {
    	defer utilruntime.HandleCrash()
    
    	// Start event processing pipeline.
    	nc.eventBroadcaster.StartStructuredLogging(3)
    	nc.eventBroadcaster.StartRecordingToSink(&v1core.EventSinkImpl{Interface: nc.kubeClient.CoreV1().Events("")})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 06 16:18:38 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  10. pkg/controller/certificates/certificate_controller.go

    	return cc
    }
    
    // Run the main goroutine responsible for watching and syncing jobs.
    func (cc *CertificateController) Run(ctx context.Context, workers int) {
    	defer utilruntime.HandleCrash()
    	defer cc.queue.ShutDown()
    
    	logger := klog.FromContext(ctx)
    	logger.Info("Starting certificate controller", "name", cc.name)
    	defer logger.Info("Shutting down certificate controller", "name", cc.name)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 6.4K bytes
    - Viewed (0)
Back to top