Fix breaking volume resize e2e tests

This commit is contained in:
Hemant Kumar
2018-05-24 15:56:40 -04:00
parent 0dd6e75567
commit 23a73283b3
2 changed files with 4 additions and 0 deletions

View File

@@ -243,6 +243,9 @@ func MakeDeployment(replicas int32, podLabels map[string]string, nodeSelector ma
},
Spec: apps.DeploymentSpec{
Replicas: &replicas,
Selector: &metav1.LabelSelector{
MatchLabels: podLabels,
},
Template: v1.PodTemplateSpec{
ObjectMeta: metav1.ObjectMeta{
Labels: podLabels,