Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 73 for conditionType (0.25 sec)

  1. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/helpers_test.go

    	tests := []struct {
    		name                 string
    		crdCondition         []CustomResourceDefinitionCondition
    		conditionType        CustomResourceDefinitionConditionType
    		expectedcrdCondition []CustomResourceDefinitionCondition
    	}{
    		{
    			name: "test remove CRDCondition when the conditionType meets",
    			crdCondition: []CustomResourceDefinitionCondition{
    				{
    					Type:               Established,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 17 19:08:05 UTC 2019
    - 15.4K 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/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)
  4. staging/src/k8s.io/apiextensions-apiserver/pkg/apihelpers/helpers_test.go

    		name                 string
    		crdCondition         []apiextensionsv1.CustomResourceDefinitionCondition
    		conditionType        apiextensionsv1.CustomResourceDefinitionConditionType
    		expectedcrdCondition []apiextensionsv1.CustomResourceDefinitionCondition
    	}{
    		{
    			name: "test remove CRDCondition when the conditionType meets",
    			crdCondition: []apiextensionsv1.CustomResourceDefinitionCondition{
    				{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 03 16:49:27 UTC 2019
    - 20.3K bytes
    - Viewed (0)
  5. pkg/registry/certificates/certificates/strategy.go

    // or returns false if the newCSR added or removed instances
    func preserveConditionInstances(newCSR, oldCSR *certificates.CertificateSigningRequest, conditionType certificates.RequestConditionType) bool {
    	oldIndices := findConditionIndices(oldCSR, conditionType)
    	newIndices := findConditionIndices(newCSR, conditionType)
    	if len(oldIndices) != len(newIndices) {
    		// instances were added or removed, we cannot preserve the existing values
    		return false
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 18 21:41:43 UTC 2022
    - 11.4K bytes
    - Viewed (0)
  6. pkg/kubelet/status/generate.go

    		if c == nil {
    			unreadyMessages = append(unreadyMessages, fmt.Sprintf("corresponding condition of pod readiness gate %q does not exist.", string(rg.ConditionType)))
    		} else if c.Status != v1.ConditionTrue {
    			unreadyMessages = append(unreadyMessages, fmt.Sprintf("the status of pod readiness gate %q is not \"True\", but %v", string(rg.ConditionType), c.Status))
    		}
    	}
    
    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/api/v1/pod/util.go

    // Returns nil and -1 if the condition is not present, and the index of the located 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: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 24 17:18:04 UTC 2023
    - 13.2K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. .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)
Back to top