Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of about 10,000 for condition3 (0.21 sec)

  1. staging/src/k8s.io/apiserver/pkg/apis/example/v1/types.go

    type PodStatus struct {
    	// Current condition of the pod.
    	// More info: http://kubernetes.io/docs/user-guide/pod-states#pod-phase
    	// +optional
    	Phase PodPhase `json:"phase,omitempty" protobuf:"bytes,1,opt,name=phase,casttype=PodPhase"`
    	// Current service state of pod.
    	// More info: http://kubernetes.io/docs/user-guide/pod-states#pod-conditions
    	// +optional
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 20 15:45:02 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/apis/testapigroup/v1/generated.proto

    }
    
    message CarpCondition {
      // Type is the type of the condition.
      // Currently only Ready.
      // More info: http://kubernetes.io/docs/user-guide/carp-states#carp-conditions
      optional string type = 1;
    
      // Status is the status of the condition.
      // Can be True, False, Unknown.
      // More info: http://kubernetes.io/docs/user-guide/carp-states#carp-conditions
      optional string status = 2;
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 28 15:34:11 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  3. pilot/pkg/model/kstatus/helper.go

    func UpdateConditionIfChanged(conditions []metav1.Condition, condition metav1.Condition) []metav1.Condition {
    	ret := slices.Clone(conditions)
    	existing := slices.FindFunc(ret, func(cond metav1.Condition) bool {
    		return cond.Type == condition.Type
    	})
    	if existing == nil {
    		ret = append(ret, condition)
    		return ret
    	}
    
    	if existing.Status == condition.Status {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 24 17:36:41 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  4. pkg/controller/replication/replication_controller_utils.go

    func SetCondition(status *v1.ReplicationControllerStatus, condition v1.ReplicationControllerCondition) {
    	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 28 14:41:20 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  5. pkg/controller/job/util/utils_test.go

    			wantConditionType: "",
    		},
    		"Job is completed and condition is unknown": {
    			conditions: []batch.JobCondition{
    				{
    					Type:   batch.JobComplete,
    					Status: v1.ConditionUnknown,
    				},
    			},
    			wantJobFinished:   false,
    			wantConditionType: "",
    		},
    		"Job has multiple conditions, one of them being complete and condition true": {
    			conditions: []batch.JobCondition{
    				{
    					Type:   batch.JobSuspended,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 07 09:27:46 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  6. pkg/apis/storagemigration/validation/validation.go

    	}
    
    	// running must be false when success is true or failed is true
    	if isSuccessful(newSVMBundle) && isRunning(newSVMBundle) {
    		allErrs = append(allErrs, field.Invalid(fldPath.Child("conditions"), newSVMBundle.Status.Conditions, "Running condition cannot be true when success condition is true"))
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 08 04:18:56 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  7. pilot/pkg/model/status/helper_test.go

    		t.Run(tt.name, func(t *testing.T) {
    			if got := updateCondition(tt.args.conditions, tt.args.condition); !reflect.DeepEqual(got, tt.want) {
    				t.Errorf("updateCondition() = %v, want %v", got, tt.want)
    			}
    		})
    	}
    }
    
    func Test_deleteCondition(t *testing.T) {
    	type args struct {
    		conditions []*v1alpha1.IstioCondition
    		condition  string
    	}
    	tests := []struct {
    		name string
    		args args
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 21 15:06:10 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top