allErrs=append(allErrs,fmt.Errorf("Node '%s' already has a taint with key (%s) and effect (%v), and --overwrite is false",node.Name,taint.Key,taint.Effect))
break
}
}
}
returnutilerrors.NewAggregate(allErrs)
}
// updateTaints applies a taint option(o) to a node in cluster after computing the net effect of operation(i.e. does it result in an overwrite?), it reports back the end result in a way that user can easily interpret.