Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. pilot/pkg/serviceregistry/kube/controller/pod.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: Thu May 23 21:07:03 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  7. pkg/apis/storagemigration/validation/validation.go

    		return true
    	}
    	return false
    }
    
    func getCondition(svm *storagemigration.StorageVersionMigration, conditionType storagemigration.MigrationConditionType) *storagemigration.MigrationCondition {
    	for _, c := range svm.Status.Conditions {
    		if c.Type == conditionType {
    			return &c
    		}
    	}
    
    	return nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 08 04:18:56 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/admission/plugin/cel/compile.go

    		}
    		return result
    	}
    
    	specType := apiservercel.NewObjectType("kubernetes.NamespaceSpec", fields(
    		field("finalizers", apiservercel.NewListType(apiservercel.StringType, -1), true),
    	))
    	conditionType := apiservercel.NewObjectType("kubernetes.NamespaceCondition", fields(
    		field("status", apiservercel.StringType, true),
    		field("type", apiservercel.StringType, true),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  9. .teamcity/src/main/kotlin/common/extensions.kt

                executionTimeoutMin = timeout
            }
            testFailure = false
            supportTestRetry = true
            add {
                failOnText {
                    conditionType = BuildFailureOnText.ConditionType.CONTAINS
                    pattern = "%unmaskedFakeCredentials%"
                    failureMessage = "This build might be leaking credentials"
                    reverse = false
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jun 03 03:39:03 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  10. pkg/kubelet/status/status_manager.go

    func updateLastTransitionTime(status, oldStatus *v1.PodStatus, conditionType v1.PodConditionType) {
    	_, condition := podutil.GetPodCondition(status, conditionType)
    	if condition == nil {
    		return
    	}
    	// Need to set LastTransitionTime.
    	lastTransitionTime := metav1.Now()
    	_, oldCondition := podutil.GetPodCondition(oldStatus, conditionType)
    	if oldCondition != nil && condition.Status == oldCondition.Status {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 02 16:27:19 UTC 2024
    - 44.3K bytes
    - Viewed (0)
Back to top