func (list ConditionList) Get(conditionType ConditionType) (Condition, bool) {
	for _, x := range list {
		if x.Type == conditionType {
			return x, true
		}
	}
	return Condition{}, false
}
Get a condition by type.
Returns true if found, false if not found.
package v2alpha1
import (
	v1 "k8s.io/api/core/v1"
	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
type ConditionType string
const (
	ConditionTypeConfigured ConditionType = "Configured"
)
type Condition struct {
	Type ConditionType `json:"type"`
	Status v1.ConditionStatus `json:"status"`
	LastUpdateTime metav1.Time `json:"lastUpdateTime,omitempty"`
	LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"`
	Reason string `json:"reason,omitempty"`
	Message string `json:"message,omitempty"`
}
type ConditionList []Condition
func (list ConditionList) IsTrue(conditionType ConditionType) bool {
	c, found := list.Get(conditionType)
	return found && c.Status == v1.ConditionTrue
}