@@ -75,8 +75,6 @@ func controlPlaneUpgrade(ctx context.Context, f *framework.Framework, v string,
75
75
switch framework .TestContext .Provider {
76
76
case "gce" :
77
77
return controlPlaneUpgradeGCE (v , extraEnvs )
78
- case "gke" :
79
- return e2eproviders .MasterUpgradeGKE (ctx , f .Namespace .Name , v )
80
78
default :
81
79
return fmt .Errorf ("controlPlaneUpgrade() is not implemented for provider %s" , framework .TestContext .Provider )
82
80
}
@@ -151,8 +149,6 @@ func nodeUpgrade(ctx context.Context, f *framework.Framework, v string, img stri
151
149
switch framework .TestContext .Provider {
152
150
case "gce" :
153
151
err = nodeUpgradeGCE (v , img , extraEnvs )
154
- case "gke" :
155
- err = nodeUpgradeGKE (ctx , f .Namespace .Name , v , img )
156
152
default :
157
153
err = fmt .Errorf ("nodeUpgrade() is not implemented for provider %s" , framework .TestContext .Provider )
158
154
}
@@ -175,59 +171,6 @@ func nodeUpgradeGCE(rawV, img string, extraEnvs []string) error {
175
171
return err
176
172
}
177
173
178
- func nodeUpgradeGKE (ctx context.Context , namespace string , v string , img string ) error {
179
- framework .Logf ("Upgrading nodes to version %q and image %q" , v , img )
180
- nps , err := nodePoolsGKE ()
181
- if err != nil {
182
- return err
183
- }
184
- framework .Logf ("Found node pools %v" , nps )
185
- for _ , np := range nps {
186
- args := []string {
187
- "container" ,
188
- "clusters" ,
189
- fmt .Sprintf ("--project=%s" , framework .TestContext .CloudConfig .ProjectID ),
190
- e2eproviders .LocationParamGKE (),
191
- "upgrade" ,
192
- framework .TestContext .CloudConfig .Cluster ,
193
- fmt .Sprintf ("--node-pool=%s" , np ),
194
- fmt .Sprintf ("--cluster-version=%s" , v ),
195
- "--quiet" ,
196
- }
197
- if len (img ) > 0 {
198
- args = append (args , fmt .Sprintf ("--image-type=%s" , img ))
199
- }
200
- _ , _ , err = framework .RunCmd ("gcloud" , framework .AppendContainerCommandGroupIfNeeded (args )... )
201
-
202
- if err != nil {
203
- return err
204
- }
205
-
206
- e2enode .WaitForSSHTunnels (ctx , namespace )
207
- }
208
- return nil
209
- }
210
-
211
- func nodePoolsGKE () ([]string , error ) {
212
- args := []string {
213
- "container" ,
214
- "node-pools" ,
215
- fmt .Sprintf ("--project=%s" , framework .TestContext .CloudConfig .ProjectID ),
216
- e2eproviders .LocationParamGKE (),
217
- "list" ,
218
- fmt .Sprintf ("--cluster=%s" , framework .TestContext .CloudConfig .Cluster ),
219
- "--format=get(name)" ,
220
- }
221
- stdout , _ , err := framework .RunCmd ("gcloud" , framework .AppendContainerCommandGroupIfNeeded (args )... )
222
- if err != nil {
223
- return nil , err
224
- }
225
- if len (strings .TrimSpace (stdout )) == 0 {
226
- return []string {}, nil
227
- }
228
- return strings .Fields (stdout ), nil
229
- }
230
-
231
174
func waitForNodesReadyAfterUpgrade (ctx context.Context , f * framework.Framework ) error {
232
175
// Wait for it to complete and validate nodes are healthy.
233
176
//
0 commit comments