@@ -81,29 +81,31 @@ func TestHelmScaleUp(t *testing.T) {
81
81
t .Logf ("====Setting helm chart path to %s" , helmChartPath )
82
82
t .Logf ("====Installing Helm Chart" )
83
83
podZeroName := testUtil .HelmInstall (t , options , releaseName , kubectlOptions , helmChartPath )
84
+ podOneName := releaseName + "-1"
84
85
85
86
// wait until first pod is in Ready status
86
87
k8s .WaitUntilPodAvailable (t , kubectlOptions , podZeroName , 30 , 10 * time .Second )
87
88
88
- newOptions := & helm.Options {
89
- KubectlOptions : kubectlOptions ,
90
- SetValues : map [string ]string {
91
- "persistence.enabled" : "true" ,
92
- "replicaCount" : "2" ,
93
- "image.repository" : imageRepo ,
94
- "image.tag" : imageTag ,
95
- "logCollection.enabled" : "false" ,
96
- "auth.adminUsername" : username ,
97
- "auth.adminPassword" : password ,
98
- },
99
- }
89
+ if ! runUpgradeTest {
90
+ newOptions := & helm.Options {
91
+ KubectlOptions : kubectlOptions ,
92
+ SetValues : map [string ]string {
93
+ "persistence.enabled" : "true" ,
94
+ "replicaCount" : "2" ,
95
+ "image.repository" : imageRepo ,
96
+ "image.tag" : imageTag ,
97
+ "logCollection.enabled" : "false" ,
98
+ "auth.adminUsername" : username ,
99
+ "auth.adminPassword" : password ,
100
+ },
101
+ }
100
102
101
- t .Logf ("====Scaling up pods using helm upgrade" )
102
- helm .Upgrade (t , newOptions , helmChartPath , releaseName )
103
+ t .Logf ("====Scaling up pods using helm upgrade" )
104
+ helm .Upgrade (t , newOptions , helmChartPath , releaseName )
103
105
104
- podOneName := releaseName + "-1"
105
- // wait until second pod is in Ready status
106
- k8s . WaitUntilPodAvailable ( t , kubectlOptions , podOneName , 30 , 10 * time . Second )
106
+ // wait until second pod is in Ready status
107
+ k8s . WaitUntilPodAvailable ( t , kubectlOptions , podOneName , 30 , 10 * time . Second )
108
+ }
107
109
108
110
if runUpgradeTest {
109
111
upgradeOptionsMap := map [string ]string {
0 commit comments