code: func GetCondition(status apps.ReplicaSetStatus, condType apps.ReplicaSetConditionType) *apps.ReplicaSetCondition {
  	for _, c := range status.Conditions {
  		if c.Type == condType {
  			return &c
  		}
  	}
  	return nil
  }
docs: // GetCondition returns a replicaset condition with the provided type if it exists.