Skip to content

Commit

Permalink
Merge pull request kubernetes#119603 from borg-land/machine-type-fix
Browse files Browse the repository at this point in the history
Calculate the correct machine-type
  • Loading branch information
k8s-ci-robot committed Jul 28, 2023
2 parents d4fde1e + a65d207 commit 97c7dbc
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions test/e2e_node/remote/gce/gce_runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -768,12 +768,15 @@ func (g *GCERunner) updateKernelArguments(instance *compute.Instance, image stri
}

func (g *GCERunner) machineType(machine string) string {
var ret string
if machine == "" && *instanceType != "" {
machine = *instanceType
ret = *instanceType
} else if machine != "" {
ret = machine
} else {
machine = defaultGCEMachine
ret = defaultGCEMachine
}
return fmt.Sprintf("zones/%s/machineTypes/%s", *zone, machine)
return fmt.Sprintf("zones/%s/machineTypes/%s", *zone, ret)
}
func (g *GCERunner) rebootInstance(instance *compute.Instance) error {
// wait until the instance will not response to SSH
Expand Down

0 comments on commit 97c7dbc

Please sign in to comment.