Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 103 for handleCrash (0.32 sec)

  1. staging/src/k8s.io/apiextensions-apiserver/pkg/controller/finalizer/crd_finalizer.go

    		Reason:  "InstanceDeletionCompleted",
    		Message: "removed all instances",
    	}, nil
    }
    
    func (c *CRDFinalizer) Run(workers int, stopCh <-chan struct{}) {
    	defer utilruntime.HandleCrash()
    	defer c.queue.ShutDown()
    
    	klog.Info("Starting CRDFinalizer")
    	defer klog.Info("Shutting down CRDFinalizer")
    
    	if !cache.WaitForCacheSync(stopCh, c.crdSynced) {
    		return
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiextensions-apiserver/pkg/controller/status/naming_controller.go

    	if err := c.requeueAllOtherGroupCRDs(key); err != nil {
    		return err
    	}
    
    	return nil
    }
    
    func (c *NamingConditionController) Run(stopCh <-chan struct{}) {
    	defer utilruntime.HandleCrash()
    	defer c.queue.ShutDown()
    
    	klog.Info("Starting NamingConditionController")
    	defer klog.Info("Shutting down NamingConditionController")
    
    	if !cache.WaitForCacheSync(stopCh, c.crdSynced) {
    		return
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 13.2K bytes
    - Viewed (0)
  3. pkg/registry/core/service/ipallocator/cidrallocator.go

    	key, err := cache.DeletionHandlingMetaNamespaceKeyFunc(obj)
    	if err == nil {
    		c.queue.Add(key)
    	}
    }
    
    func (c *MetaAllocator) run() {
    	defer runtime.HandleCrash()
    	defer c.queue.ShutDown()
    	klog.Info("Starting ServiceCIDR Allocator Controller")
    	defer klog.Info("Stopping ServiceCIDR Allocator Controllerr")
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 13.2K bytes
    - Viewed (0)
  4. pkg/controller/endpoint/endpoints_controller.go

    }
    
    // Run will not return until stopCh is closed. workers determines how many
    // endpoints will be handled in parallel.
    func (e *Controller) Run(ctx context.Context, workers int) {
    	defer utilruntime.HandleCrash()
    
    	// Start events processing pipeline.
    	e.eventBroadcaster.StartStructuredLogging(3)
    	e.eventBroadcaster.StartRecordingToSink(&v1core.EventSinkImpl{Interface: e.client.CoreV1().Events("")})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  5. pkg/controller/podgc/gc_controller.go

    	}
    
    	// Register prometheus metrics
    	metrics.RegisterMetrics()
    	return gcc
    }
    
    func (gcc *PodGCController) Run(ctx context.Context) {
    	logger := klog.FromContext(ctx)
    
    	defer utilruntime.HandleCrash()
    
    	logger.Info("Starting GC controller")
    	defer gcc.nodeQueue.ShutDown()
    	defer logger.Info("Shutting down GC controller")
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apimachinery/pkg/util/httpstream/wsstream/conn.go

    // read and write deadlines are pushed every time a new message is received.
    func IgnoreReceives(ws *websocket.Conn, timeout time.Duration) {
    	defer runtime.HandleCrash()
    	var data []byte
    	for {
    		resetTimeout(ws, timeout)
    		if err := websocket.Message.Receive(ws, &data); err != nil {
    			return
    		}
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 04 19:10:30 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/storage/storagebackend/factory/etcd3.go

    			clientErr = err
    			return false, nil
    		}
    		prober = newProber
    		clientErr = nil
    		return true, nil
    	}, stopCh)
    
    	// Close the client on shutdown.
    	go func() {
    		defer utilruntime.HandleCrash()
    		<-stopCh
    
    		lock.Lock()
    		defer lock.Unlock()
    		if prober != nil {
    			prober.Close()
    			clientErr = fmt.Errorf("server is shutting down")
    		}
    	}()
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 07:56:39 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  8. pkg/controlplane/controller/clusterauthenticationtrust/cluster_authentication_trust_controller.go

    func (c *Controller) Enqueue() {
    	c.queue.Add(keyFn())
    }
    
    // Run the controller until stopped.
    func (c *Controller) Run(ctx context.Context, workers int) {
    	defer utilruntime.HandleCrash()
    	// make sure the work queue is shutdown which will trigger workers to end
    	defer c.queue.ShutDown()
    
    	klog.Infof("Starting cluster_authentication_trust_controller controller")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apimachinery/pkg/util/wait/backoff.go

    	var t clock.Timer
    	for {
    		select {
    		case <-stopCh:
    			return
    		default:
    		}
    
    		if !sliding {
    			t = backoff.Backoff()
    		}
    
    		func() {
    			defer runtime.HandleCrash()
    			f()
    		}()
    
    		if sliding {
    			t = backoff.Backoff()
    		}
    
    		// NOTE: b/c there is no priority selection in golang
    		// it is possible for this to race, meaning we could
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 19:14:11 UTC 2023
    - 16.5K bytes
    - Viewed (0)
  10. pkg/controller/volume/pvcprotection/pvc_protection_controller.go

    			e.podAddedDeletedUpdated(logger, old, new, false)
    		},
    	})
    
    	return e, nil
    }
    
    // Run runs the controller goroutines.
    func (c *Controller) Run(ctx context.Context, workers int) {
    	defer utilruntime.HandleCrash()
    	defer c.queue.ShutDown()
    
    	logger := klog.FromContext(ctx)
    	logger.Info("Starting PVC protection controller")
    	defer logger.Info("Shutting down PVC protection controller")
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 14K bytes
    - Viewed (0)
Back to top