# Functions

BeNotFoundError checks if error is a NotFound error.
HaveLabel succeeds if the actual object has a label with a matching key.
HaveLabelWithValue succeeds if the actual object has a label with a matching key and value.
OfType returns a matcher for checking whether a condition has a certain type.
WithMessage returns a matcher for checking whether a condition has a certain message.
WithReason returns a matcher for checking whether a condition has a certain reason.
WithStatus returns a matcher for checking whether a condition has a certain status.

# Variables

MatchCondition is an alias for gomega.And to make matching conditions more readable, e.g., Expect(clusterRing.Status.Conditions).To(ConsistOf( MatchCondition( OfType(shardingv1alpha1.ClusterRingReady), WithStatus(metav1.ConditionTrue), ), )).