// ConditionExists returns a condition and whether it exists
ConditionExists returns a condition and whether it exists
// ConditionExists returns a condition and whether it exists
func (u *MySQLUser) ConditionExists(
	ct mysqlv1alpha1.MysqlUserConditionType,
) (
	*mysqlv1alpha1.MySQLUserCondition, bool,
) {
	for i := range u.Status.Conditions {
		cond := &u.Status.Conditions[i]
		if cond.Type == ct {
			return cond, true
		}
	}
	return nil, false
}
func ( u * MySQLUser ) ConditionExists ( ct mysqlv1alpha1 . MysqlUserConditionType , ) ( * mysqlv1alpha1 . MySQLUserCondition , bool , ) { for i := range u . Status . Conditions { cond := & u . Status . Conditions [ i ] if cond . Type == ct { return cond , true } } return nil , false }
ConditionExists returns a condition and whether it exists
ConditionExists returns a condition and whether it exists