Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for GetPodConditionFromList (0.23 sec)

  1. pilot/pkg/controllers/untaint/nodeuntainter.go

    	if status == nil {
    		return -1, nil
    	}
    	return GetPodConditionFromList(status.Conditions, conditionType)
    }
    
    // GetPodConditionFromList extracts the provided condition from the given list of condition and
    // returns the index of the condition and the condition. Returns -1 and nil if the condition is not present.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Apr 13 00:50:31 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  2. pilot/pkg/serviceregistry/kube/controller/ambient/helpers.go

    	if status == nil {
    		return -1, nil
    	}
    	return GetPodConditionFromList(status.Conditions, conditionType)
    }
    
    // GetPodConditionFromList extracts the provided condition from the given list of condition and
    // returns the index of the condition and the condition. Returns -1 and nil if the condition is not present.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Mar 22 20:35:23 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  3. pilot/pkg/serviceregistry/kube/controller/pod.go

    	if status == nil {
    		return -1, nil
    	}
    	return GetPodConditionFromList(status.Conditions, conditionType)
    }
    
    // GetPodConditionFromList extracts the provided condition from the given list of condition and
    // returns the index of the condition and the condition. Returns -1 and nil if the condition is not present.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  4. pkg/api/v1/pod/util.go

    	if status == nil {
    		return -1, nil
    	}
    	return GetPodConditionFromList(status.Conditions, conditionType)
    }
    
    // GetPodConditionFromList extracts the provided condition from the given list of condition and
    // returns the index of the condition and the condition. Returns -1 and nil if the condition is not present.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 24 17:18:04 UTC 2023
    - 13.2K bytes
    - Viewed (0)
  5. pkg/util/pod/pod.go

    func ReplaceOrAppendPodCondition(conditions []v1.PodCondition, condition *v1.PodCondition) []v1.PodCondition {
    	if i, _ := podutil.GetPodConditionFromList(conditions, condition.Type); i >= 0 {
    		conditions[i] = *condition
    	} else {
    		conditions = append(conditions, *condition)
    	}
    	return conditions
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 07 15:22:29 UTC 2022
    - 3K bytes
    - Viewed (0)
  6. pkg/kubelet/status/generate.go

    	// Evaluate corresponding conditions specified in readiness gate
    	// Generate message if any readiness gate is not satisfied.
    	unreadyMessages := []string{}
    	for _, rg := range spec.ReadinessGates {
    		_, c := podutil.GetPodConditionFromList(conditions, rg.ConditionType)
    		if c == nil {
    			unreadyMessages = append(unreadyMessages, fmt.Sprintf("corresponding condition of pod readiness gate %q does not exist.", string(rg.ConditionType)))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 12 15:18:11 UTC 2023
    - 9.8K bytes
    - Viewed (0)
  7. pkg/kubelet/status/status_manager.go

    					// the condition was delayed until all pod's containers have terminated.
    					updateLastTransitionTime(&newPodStatus, &oldPodStatus, c.Type)
    					if _, c := podutil.GetPodConditionFromList(newPodStatus.Conditions, c.Type); c != nil {
    						// for shared conditions we update or append in podConditions
    						podConditions = statusutil.ReplaceOrAppendPodCondition(podConditions, c)
    					}
    				}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 02 16:27:19 UTC 2024
    - 44.3K bytes
    - Viewed (0)
  8. pkg/kubelet/kubelet_pods.go

    		// node graceful shutdown). We do not re-generate the conditions based
    		// on the container statuses as they are added based on one-time events.
    		cType := v1.DisruptionTarget
    		if _, condition := podutil.GetPodConditionFromList(oldPodStatus.Conditions, cType); condition != nil {
    			s.Conditions = utilpod.ReplaceOrAppendPodCondition(s.Conditions, condition)
    		}
    	}
    
    	// set all Kubelet-owned conditions
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 101.2K bytes
    - Viewed (0)
Back to top