// BindingHasStatus returns if the instance is in the specified status.
BindingHasStatus returns if the instance is in the specified status.
// BindingHasStatus returns if the instance is in the specified status .
func (sdk *SDK) bindingHasStatus(binding *v1beta1.ServiceBinding, status v1beta1.ServiceBindingConditionType) bool {
	if binding == nil {
		return false
	}
	for _, cond := range binding.Status.Conditions {
		if cond.Type == status &&
			cond.Status == v1beta1.ConditionTrue {
			return true
		}
	}
	return false
}
func ( sdk * SDK ) bindingHasStatus ( binding * v1beta1 . ServiceBinding , status v1beta1 . ServiceBindingConditionType ) bool { if binding == nil { return false } for _ , cond := range binding . Status . Conditions { if cond . Type == status && cond . Status == v1beta1 . ConditionTrue { return true } } return false }
BindingHasStatus returns if the instance is in the specified status.
BindingHasStatus returns if the instance is in the specified status .