Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for IsStatusConditionPresentAndEqual (0.29 sec)

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

    	return IsStatusConditionPresentAndEqual(conditions, conditionType, metav1.ConditionTrue)
    }
    
    // IsStatusConditionFalse returns true when the conditionType is present and set to `metav1.ConditionFalse`
    func IsStatusConditionFalse(conditions []metav1.Condition, conditionType string) bool {
    	return IsStatusConditionPresentAndEqual(conditions, conditionType, metav1.ConditionFalse)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 22 01:13:33 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/api/meta/conditions_test.go

    			conditionType:   "first",
    			conditionStatus: metav1.ConditionFalse,
    			expected:        true,
    		},
    	}
    
    	for _, test := range tests {
    		t.Run(test.name, func(t *testing.T) {
    			actual := IsStatusConditionPresentAndEqual(test.conditions, test.conditionType, test.conditionStatus)
    			if actual != test.expected {
    				t.Error(actual)
    			}
    
    		})
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 22 01:13:33 UTC 2023
    - 6.7K bytes
    - Viewed (0)
Back to top