Combine statefulset burst and monotonic scaling tests

Use subtests to avoid duplicating entire suite of control logic.
This commit is contained in:
Clayton Coleman
2017-04-25 00:40:45 -04:00
parent 2861ae5eb9
commit 20d45af694
3 changed files with 221 additions and 231 deletions

View File

@@ -229,7 +229,7 @@ func isHealthy(pod *v1.Pod) bool {
// allowsBurst is true if the alpha burst annotation is set.
func allowsBurst(set *apps.StatefulSet) bool {
return set.Annotations[apps.StatefulSetBurstAnnotation] == "true"
return set.Spec.PodManagementPolicy == apps.ParallelPodManagement
}
// newControllerRef returns an ControllerRef pointing to a given StatefulSet.