Skip to content

Commit

Permalink
Merge pull request #14539 from johngmyers/v6-flatcar
Browse files Browse the repository at this point in the history
Use ARM instancetype for ARM images in tests
  • Loading branch information
k8s-ci-robot committed Nov 13, 2022
2 parents 35dada5 + 40b23eb commit 6e2b3c6
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tests/e2e/kubetest2-kops/deployer/up.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,11 @@ func (d *deployer) createCluster(zones []string, adminAccess string, yes bool) e
args = append(args, "--yes")
}

isArm := false
if d.CreateArgs != "" {
if strings.Contains(d.CreateArgs, "arm64") {
isArm = true
}
createArgs, err := shlex.Split(d.CreateArgs)
if err != nil {
return err
Expand All @@ -139,7 +143,11 @@ func (d *deployer) createCluster(zones []string, adminAccess string, yes bool) e

switch d.CloudProvider {
case "aws":
args = appendIfUnset(args, "--master-size", "c5.large")
if isArm {
args = appendIfUnset(args, "--master-size", "c7g.large")
} else {
args = appendIfUnset(args, "--master-size", "c5.large")
}
case "gce":
args = appendIfUnset(args, "--master-size", "e2-standard-2")
if d.GCPProject != "" {
Expand Down

0 comments on commit 6e2b3c6

Please sign in to comment.