Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 24 for AddAfter (0.29 sec)

  1. pkg/controller/endpoint/endpoints_controller.go

    	if err != nil {
    		utilruntime.HandleError(fmt.Errorf("Unable to get pod %s/%s's service memberships: %v", pod.Namespace, pod.Name, err))
    		return
    	}
    	for key := range services {
    		e.queue.AddAfter(key, e.endpointUpdatesBatchPeriod)
    	}
    }
    
    func podToEndpointAddressForService(svc *v1.Service, pod *v1.Pod) (*v1.EndpointAddress, error) {
    	var endpointIP string
    	ipFamily := v1.IPv4Protocol
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  2. pkg/controller/podgc/gc_controller.go

    		existingNodeNames.Insert(node.Name)
    	}
    	// Add newly found unknown nodes to quarantine
    	for _, pod := range pods {
    		if pod.Spec.NodeName != "" && !existingNodeNames.Has(pod.Spec.NodeName) {
    			gcc.nodeQueue.AddAfter(pod.Spec.NodeName, gcc.quarantineTime)
    		}
    	}
    	// Check if nodes are still missing after quarantine period
    	deletedNodesNames, quit := gcc.discoverDeletedNodes(ctx, existingNodeNames)
    	if quit {
    		return
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  3. pkg/controller/servicecidrs/servicecidrs_controller.go

    		// and no new IPAddress is going to be allocated.
    		timeUntilDeleted := deletionGracePeriod - time.Since(cidr.GetDeletionTimestamp().Time)
    		if timeUntilDeleted > 0 {
    			c.queue.AddAfter(key, timeUntilDeleted)
    			return nil
    		}
    		return c.removeServiceCIDRFinalizerIfNeeded(ctx, cidr)
    	}
    
    	// Created or Updated, the ServiceCIDR must have a finalizer.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 18K bytes
    - Viewed (0)
  4. pkg/controller/disruption/disruption.go

    		return
    	}
    	dc.recheckQueue.AddAfter(key, delay)
    }
    
    func (dc *DisruptionController) enqueueStalePodDisruptionCleanup(logger klog.Logger, pod *v1.Pod, d time.Duration) {
    	key, err := controller.KeyFunc(pod)
    	if err != nil {
    		logger.Error(err, "Couldn't get key for Pod object", "pod", klog.KObj(pod))
    		return
    	}
    	dc.stalePodDisruptionQueue.AddAfter(key, d)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 36.1K bytes
    - Viewed (0)
  5. pkg/controller/cronjob/cronjob_controllerv2.go

    	case err != nil:
    		utilruntime.HandleError(fmt.Errorf("error syncing CronJobController %v, requeuing: %w", key, err))
    		jm.queue.AddRateLimited(key)
    	case requeueAfter != nil:
    		jm.queue.Forget(key)
    		jm.queue.AddAfter(key, *requeueAfter)
    	}
    	return true
    }
    
    func (jm *ControllerV2) sync(ctx context.Context, cronJobKey string) (*time.Duration, error) {
    	ns, name, err := cache.SplitMetaNamespaceKey(cronJobKey)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 09 03:34:25 UTC 2024
    - 29.2K bytes
    - Viewed (0)
  6. pkg/controller/job/job_controller.go

    		if oldADS == nil || *oldADS != *curADS {
    			passed := jm.clock.Since(curJob.Status.StartTime.Time)
    			total := time.Duration(*curADS) * time.Second
    			// AddAfter will handle total < passed
    			jm.queue.AddAfter(key, total-passed)
    			logger.V(4).Info("job's ActiveDeadlineSeconds updated, will rsync", "key", key, "interval", total-passed)
    		}
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 10 23:56:37 UTC 2024
    - 77.6K bytes
    - Viewed (0)
  7. pkg/controller/daemon/daemon_controller.go

    	if err != nil {
    		utilruntime.HandleError(fmt.Errorf("Couldn't get key for object %+v: %v", obj, err))
    		return
    	}
    
    	// TODO: Handle overlapping controllers better. See comment in ReplicationManager.
    	dsc.queue.AddAfter(key, after)
    }
    
    // getDaemonSetsForPod returns a list of DaemonSets that potentially match the pod.
    func (dsc *DaemonSetsController) getDaemonSetsForPod(pod *v1.Pod) []*apps.DaemonSet {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 51.3K bytes
    - Viewed (0)
  8. pkg/controller/endpointslicemirroring/endpointslicemirroring_controller.go

    	if err != nil {
    		utilruntime.HandleError(fmt.Errorf("Couldn't get key for EndpointSlice %+v (type %T): %v", endpointSlice, endpointSlice, err))
    		return
    	}
    
    	c.queue.AddAfter(key, c.endpointUpdatesBatchPeriod)
    }
    
    // deleteMirroredSlices will delete and EndpointSlices that have been mirrored
    // for Endpoints with this namespace and name.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 06 23:18:31 UTC 2024
    - 20.1K bytes
    - Viewed (0)
  9. pkg/controller/deployment/deployment_controller.go

    	key, err := controller.KeyFunc(deployment)
    	if err != nil {
    		utilruntime.HandleError(fmt.Errorf("couldn't get key for object %#v: %v", deployment, err))
    		return
    	}
    
    	dc.queue.AddAfter(key, after)
    }
    
    // getDeploymentForPod returns the deployment managing the given Pod.
    func (dc *DeploymentController) getDeploymentForPod(logger klog.Logger, pod *v1.Pod) *apps.Deployment {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  10. pkg/registry/core/service/ipallocator/controller/repairip.go

    			if err != nil && !apierrors.IsNotFound(err) {
    				return err
    			}
    		}
    		// requeue after the grace period
    		r.ipQueue.AddAfter(key, gracePeriod-ipLifetime)
    		return nil
    	}
    	if err != nil {
    		runtime.HandleError(fmt.Errorf("unable to get parent Service for IPAddress %s due to an unknown error: %v", ipAddress, err))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 24.7K bytes
    - Viewed (0)
Back to top