Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for isCreate (0.13 sec)

  1. cmd/iam-etcd-store.go

    						isCreateEvent := event.IsModify() || event.IsCreate()
    						isDeleteEvent := event.Type == etcd.EventTypeDelete
    
    						switch {
    						case isCreateEvent:
    							ch <- iamWatchEvent{
    								isCreated: true,
    								keyPath:   string(event.Kv.Key),
    							}
    						case isDeleteEvent:
    							ch <- iamWatchEvent{
    								isCreated: false,
    								keyPath:   string(event.Kv.Key),
    							}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 22:26:38 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  2. security/pkg/nodeagent/cache/secretcache.go

    		case event, ok := <-sc.certWatcher.Events:
    			// Channel is closed.
    			if !ok {
    				return
    			}
    			// We only care about updates that change the file content
    			if !(isWrite(event) || isRemove(event) || isCreate(event)) {
    				continue
    			}
    			sc.certMutex.RLock()
    			resources := make(map[FileCert]struct{})
    			for k, v := range sc.fileCerts {
    				resources[k] = v
    			}
    			sc.certMutex.RUnlock()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 04 08:29:46 UTC 2024
    - 28.2K bytes
    - Viewed (0)
  3. pkg/controller/statefulset/stateful_set_control.go

    }
    
    func computeReplicaStatus(pods []*v1.Pod, minReadySeconds int32, currentRevision, updateRevision *apps.ControllerRevision) replicaStatus {
    	status := replicaStatus{}
    	for _, pod := range pods {
    		if isCreated(pod) {
    			status.replicas++
    		}
    
    		// count the number of running and ready replicas
    		if isRunningAndReady(pod) {
    			status.readyReplicas++
    			// count the number of running and available replicas
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 08:03:46 UTC 2024
    - 30.9K bytes
    - Viewed (0)
  4. pkg/controller/statefulset/stateful_set_utils.go

    }
    
    func isRunningAndAvailable(pod *v1.Pod, minReadySeconds int32) bool {
    	return podutil.IsPodAvailable(pod, minReadySeconds, metav1.Now())
    }
    
    // isCreated returns true if pod has been created and is maintained by the API server
    func isCreated(pod *v1.Pod) bool {
    	return pod.Status.Phase != ""
    }
    
    // isPending returns true if pod has a Phase of PodPending
    func isPending(pod *v1.Pod) bool {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 19:06:41 UTC 2024
    - 26.7K bytes
    - Viewed (0)
Back to top