code: func filterOutCondition(conditions []apps.ReplicaSetCondition, condType apps.ReplicaSetConditionType) []apps.ReplicaSetCondition {
  	var newConditions []apps.ReplicaSetCondition
  	for _, c := range conditions {
  		if c.Type == condType {
  			continue
  		}
  		newConditions = append(newConditions, c)
  	}
  	return newConditions
  }
docs: // filterOutCondition returns a new slice of replicaset conditions without conditions with the provided type.