Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 156 for conditionType (0.2 sec)

  1. staging/src/k8s.io/apimachinery/pkg/api/meta/conditions_test.go

    		conditions    []metav1.Condition
    		conditionType string
    		expected      *metav1.Condition
    	}{
    		{
    			name: "not-present",
    			conditions: []metav1.Condition{
    				{Type: "first"},
    			},
    			conditionType: "second",
    			expected:      nil,
    		},
    		{
    			name: "present",
    			conditions: []metav1.Condition{
    				{Type: "first"},
    				{Type: "second"},
    			},
    			conditionType: "second",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 22 01:13:33 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  2. pkg/controller/storageversionmigrator/util.go

    func IsConditionTrue(svm *svmv1alpha1.StorageVersionMigration, conditionType svmv1alpha1.MigrationConditionType) bool {
    	return indexOfCondition(svm, conditionType) != -1
    }
    
    func indexOfCondition(svm *svmv1alpha1.StorageVersionMigration, conditionType svmv1alpha1.MigrationConditionType) int {
    	for i, c := range svm.Status.Conditions {
    		if c.Type == conditionType && c.Status == corev1.ConditionTrue {
    			return i
    		}
    	}
    	return -1
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 08 19:25:10 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/api/meta/conditions.go

    			return &conditions[i]
    		}
    	}
    
    	return nil
    }
    
    // IsStatusConditionTrue returns true when the conditionType is present and set to `metav1.ConditionTrue`
    func IsStatusConditionTrue(conditions []metav1.Condition, conditionType string) bool {
    	return IsStatusConditionPresentAndEqual(conditions, conditionType, metav1.ConditionTrue)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 22 01:13:33 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  4. pkg/kubelet/types/pod_status.go

    // PodConditionByKubelet returns if the pod condition type is owned by kubelet
    func PodConditionByKubelet(conditionType v1.PodConditionType) bool {
    	for _, c := range PodConditionsByKubelet {
    		if c == conditionType {
    			return true
    		}
    	}
    	if utilfeature.DefaultFeatureGate.Enabled(features.PodReadyToStartContainersCondition) {
    		if conditionType == v1.PodReadyToStartContainers {
    			return true
    		}
    	}
    	return false
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 12 15:18:11 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/util/apihelpers/helpers.go

    }
    
    // GetFlowSchemaConditionByType gets conditions.
    func GetFlowSchemaConditionByType(flowSchema *flowcontrol.FlowSchema, conditionType flowcontrol.FlowSchemaConditionType) *flowcontrol.FlowSchemaCondition {
    	for i := range flowSchema.Status.Conditions {
    		if flowSchema.Status.Conditions[i].Type == conditionType {
    			return &flowSchema.Status.Conditions[i]
    		}
    	}
    	return nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:35 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  6. pkg/controller/deployment/progress_test.go

    				t.Error(err)
    			}
    
    			newCond := util.GetDeploymentCondition(test.d.Status, test.conditionType)
    			switch {
    			case newCond == nil:
    				if test.d.Spec.ProgressDeadlineSeconds != nil && *test.d.Spec.ProgressDeadlineSeconds != math.MaxInt32 {
    					t.Errorf("%s: expected deployment condition: %s", test.name, test.conditionType)
    				}
    			case newCond.Status != test.conditionStatus || newCond.Reason != test.conditionReason:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  7. pkg/kubelet/status/generate_test.go

    			expectReady:       getPodCondition(v1.PodReady, v1.ConditionTrue, "", ""),
    		},
    		{
    			spec: &v1.PodSpec{
    				ReadinessGates: []v1.PodReadinessGate{
    					{ConditionType: v1.PodConditionType("gate1")},
    					{ConditionType: v1.PodConditionType("gate2")},
    				},
    			},
    			conditions: []v1.PodCondition{
    				getPodCondition("gate1", v1.ConditionTrue, "", ""),
    			},
    			containerStatuses: []v1.ContainerStatus{},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 12 15:18:11 UTC 2023
    - 18.2K bytes
    - Viewed (0)
  8. pkg/controller/job/util/utils_test.go

    					Conditions: test.conditions,
    				},
    			}
    
    			isJobFinished, conditionType := FinishedCondition(job)
    			if isJobFinished != test.wantJobFinished {
    				if test.wantJobFinished {
    					t.Error("Expected the job to be finished")
    				} else {
    					t.Error("Expected the job to be unfinished")
    				}
    			}
    
    			if conditionType != test.wantConditionType {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 07 09:27:46 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  9. pilot/pkg/controllers/untaint/nodeuntainter.go

    	_, condition := GetPodCondition(&status, v1.PodReady)
    	return condition
    }
    
    func GetPodCondition(status *v1.PodStatus, conditionType v1.PodConditionType) (int, *v1.PodCondition) {
    	if status == nil {
    		return -1, nil
    	}
    	return GetPodConditionFromList(status.Conditions, conditionType)
    }
    
    // GetPodConditionFromList extracts the provided condition from the given list of condition and
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Apr 13 00:50:31 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  10. pilot/pkg/serviceregistry/kube/controller/ambient/helpers.go

    	_, condition := GetPodCondition(&status, v1.PodReady)
    	return condition
    }
    
    func GetPodCondition(status *v1.PodStatus, conditionType v1.PodConditionType) (int, *v1.PodCondition) {
    	if status == nil {
    		return -1, nil
    	}
    	return GetPodConditionFromList(status.Conditions, conditionType)
    }
    
    // GetPodConditionFromList extracts the provided condition from the given list of condition and
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Mar 22 20:35:23 UTC 2024
    - 7.2K bytes
    - Viewed (0)
Back to top