Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 49 for handleCrash (0.31 sec)

  1. staging/src/k8s.io/apimachinery/pkg/util/runtime/runtime.go

    	if r := recover(); r != nil {
    		handleCrash(ctx, r, additionalHandlers...)
    	}
    }
    
    // handleCrash is the common implementation of HandleCrash and HandleCrash.
    // Having those call a common implementation ensures that the stack depth
    // is the same regardless through which path the handlers get invoked.
    func handleCrash(ctx context.Context, r any, additionalHandlers ...func(context.Context, interface{})) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 26 16:28:45 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/validating/dispatcher.go

    			defer wg.Done()
    			defer func() {
    				// HandleCrash has already called the crash handlers and it has been configured to utilruntime.ReallyCrash
    				// This block prevents the second panic from failing our process.
    				// This failure mode for the handler functions properly using the channel below.
    				recover()
    			}()
    			defer utilruntime.HandleCrash(
    				func(r interface{}) {
    					if r == nil {
    						return
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 23 20:24:12 UTC 2023
    - 13K bytes
    - Viewed (0)
  3. pkg/kubelet/prober/worker.go

    // Returns whether the worker should continue.
    func (w *worker) doProbe(ctx context.Context) (keepGoing bool) {
    	defer func() { recover() }() // Actually eat panics (HandleCrash takes care of logging)
    	defer runtime.HandleCrash(func(_ interface{}) { keepGoing = true })
    
    	startTime := time.Now()
    	status, ok := w.probeManager.statusManager.GetPodStatus(w.pod.UID)
    	if !ok {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jul 27 01:28:06 UTC 2023
    - 10.7K bytes
    - Viewed (0)
  4. 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)
  5. pkg/controller/storageversiongc/gc_controller.go

    			c.onUpdateStorageVersion(logger, old, newObj)
    		},
    	})
    
    	return c
    }
    
    // Run starts one worker.
    func (c *Controller) Run(ctx context.Context) {
    	logger := klog.FromContext(ctx)
    	defer utilruntime.HandleCrash()
    	defer c.leaseQueue.ShutDown()
    	defer c.storageVersionQueue.ShutDown()
    	defer logger.Info("Shutting down storage version garbage collector")
    
    	logger.Info("Starting storage version garbage collector")
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 10K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/authentication/request/headerrequest/requestheader_controller.go

    }
    
    // Run starts RequestHeaderAuthRequestController controller and blocks until stopCh is closed.
    func (c *RequestHeaderAuthRequestController) Run(ctx context.Context, workers int) {
    	defer utilruntime.HandleCrash()
    	defer c.queue.ShutDown()
    
    	klog.Infof("Starting %s", c.name)
    	defer klog.Infof("Shutting down %s", c.name)
    
    	go c.configmapInformer.Run(ctx.Done())
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/customresource_discovery_controller.go

    		return version.CompareKubeAwareVersionStrings(gd[i].Version, gd[j].Version) > 0
    	})
    }
    
    func (c *DiscoveryController) Run(stopCh <-chan struct{}, synchedCh chan<- struct{}) {
    	defer utilruntime.HandleCrash()
    	defer c.queue.ShutDown()
    	defer klog.Info("Shutting down DiscoveryController")
    
    	klog.Info("Starting DiscoveryController")
    
    	if !cache.WaitForCacheSync(stopCh, c.crdsSynced) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Apr 21 11:40:03 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  8. pkg/controller/serviceaccount/legacy_serviceaccount_token_cleaner.go

    		minimumSinceLastUsed: options.CleanUpPeriod,
    		syncInterval:         options.SyncInterval,
    	}
    
    	return tc, nil
    }
    
    func (tc *LegacySATokenCleaner) Run(ctx context.Context) {
    	defer utilruntime.HandleCrash()
    
    	logger := klog.FromContext(ctx)
    	logger.Info("Starting legacy service account token cleaner controller")
    	defer logger.Info("Shutting down legacy service account token cleaner controller")
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 27 03:52:06 UTC 2023
    - 10K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/server/dynamiccertificates/tlsconfig.go

    	return c.syncCerts()
    }
    
    // Run starts the kube-apiserver and blocks until stopCh is closed.
    func (c *DynamicServingCertificateController) Run(workers int, stopCh <-chan struct{}) {
    	defer utilruntime.HandleCrash()
    	defer c.queue.ShutDown()
    
    	klog.InfoS("Starting DynamicServingCertificateController")
    	defer klog.InfoS("Shutting down DynamicServingCertificateController")
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/watch.go

    	}()
    
    	defer ws.Close()
    	done := make(chan struct{})
    	// ensure the connection times out
    	timeoutCh, cleanup := s.TimeoutFactory.TimeoutCh()
    	defer cleanup()
    
    	go func() {
    		defer utilruntime.HandleCrash()
    		// This blocks until the connection is closed.
    		// Client should not send anything.
    		wsstream.IgnoreReceives(ws, 0)
    		// Once the client closes, we should also close
    		close(done)
    	}()
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Dec 14 16:37:25 UTC 2023
    - 11.4K bytes
    - Viewed (0)
Back to top