Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of about 10,000 for condition1 (0.21 sec)

  1. pkg/controller/deployment/progress.go

    		}
    	}
    
    	// Return failures for the new replica set over failures from old replica sets.
    	if len(conditions) > 0 {
    		return conditions
    	}
    
    	for i := range allRSs {
    		rs := allRSs[i]
    		if rs == nil {
    			continue
    		}
    
    		for _, c := range rs.Status.Conditions {
    			if c.Type != apps.ReplicaSetReplicaFailure {
    				continue
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 13 11:00:44 UTC 2023
    - 8.9K bytes
    - Viewed (0)
  2. pkg/kubelet/nodestatus/setters.go

    				condition.Status = v1.ConditionTrue
    				condition.Reason = "KubeletHasInsufficientPID"
    				condition.Message = "kubelet has insufficient PID available"
    				condition.LastTransitionTime = currentTime
    				recordEventFunc(v1.EventTypeNormal, "NodeHasInsufficientPID")
    			}
    		} else if condition.Status != v1.ConditionFalse {
    			condition.Status = v1.ConditionFalse
    			condition.Reason = "KubeletHasSufficientPID"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 12:12:04 UTC 2024
    - 30.5K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/storageversion/updater.go

    		forceTransition = true
    	}
    	setStatusCondition(&sv.Status.Conditions, condition, forceTransition)
    }
    
    func findStatusCondition(conditions []v1alpha1.StorageVersionCondition,
    	conditionType v1alpha1.StorageVersionConditionType) *v1alpha1.StorageVersionCondition {
    	for i := range conditions {
    		if conditions[i].Type == conditionType {
    			return &conditions[i]
    		}
    	}
    	return nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 29 22:40:54 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/util/openapi/enablement_test.go

    						SchemaProps: spec.SchemaProps{
    							Description: "The last time this condition was updated.",
    							Default:     map[string]interface{}{},
    							Ref:         ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"),
    						},
    					},
    					"lastTransitionTime": {
    						SchemaProps: spec.SchemaProps{
    							Description: "Last time the condition transitioned from one status to another.",
    							Default:     map[string]interface{}{},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  5. tests/integration/pilot/analysis/analysis_test.go

    	}
    
    	if len(status.Conditions) < 1 {
    		return fmt.Errorf("expected conditions to exist, but got nothing")
    	}
    	found := false
    	for _, condition := range status.Conditions {
    		if condition.Type == "Reconciled" {
    			found = true
    			if condition.Status != "True" {
    				return fmt.Errorf("expected Reconciled to be true but was %v", condition.Status)
    			}
    		}
    	}
    	if !found {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  6. pkg/controller/replicaset/replica_set_utils.go

    func SetCondition(status *apps.ReplicaSetStatus, condition apps.ReplicaSetCondition) {
    	currentCond := GetCondition(*status, condition.Type)
    	if currentCond != nil && currentCond.Status == condition.Status && currentCond.Reason == condition.Reason {
    		return
    	}
    	newConditions := filterOutCondition(status.Conditions, condition.Type)
    	status.Conditions = append(newConditions, condition)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 07 12:19:51 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  7. pkg/util/pod/pod_test.go

    		},
    		{
    			"pod condition change",
    			func(input v1.PodStatus) v1.PodStatus {
    				input.Conditions[0].Status = v1.ConditionFalse
    				return input
    			},
    			false,
    			[]byte(fmt.Sprintf(`{"metadata":{"uid":"myuid"},"status":{"$setElementOrder/conditions":[{"type":"Ready"},{"type":"PodScheduled"}],"conditions":[{"status":"False","type":"Ready"}]}}`)),
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 07 15:22:29 UTC 2022
    - 4.5K bytes
    - Viewed (0)
  8. pkg/api/v1/pod/util.go

    	// Try to find this pod condition.
    	conditionIndex, oldCondition := GetPodCondition(status, condition.Type)
    
    	if oldCondition == nil {
    		// We are adding new pod condition.
    		status.Conditions = append(status.Conditions, *condition)
    		return true
    	}
    	// We are updating an existing condition, so we need to check if it has changed.
    	if condition.Status == oldCondition.Status {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 24 17:18:04 UTC 2023
    - 13.2K bytes
    - Viewed (0)
  9. pkg/controller/namespace/deletion/status_condition_utils.go

    		if newCondition == nil {
    			newCondition = newSuccessfulCondition(conditionType)
    		}
    		oldCondition := getCondition(status.Conditions, conditionType)
    
    		// only new condition of this type exists, add to the list
    		if oldCondition == nil {
    			status.Conditions = append(status.Conditions, *newCondition)
    			hasChanged = true
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 06 13:58:41 UTC 2019
    - 8.1K bytes
    - Viewed (0)
  10. pkg/util/pod/pod.go

    // ReplaceOrAppendPodCondition replaces the first pod condition with equal type or appends if there is none
    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)
Back to top