Skip to content

Commit

Permalink
WIP pin presubmit cilium-eni job to 20.04
Browse files Browse the repository at this point in the history
  • Loading branch information
rifelpet committed Dec 1, 2023
1 parent fbf1877 commit 8f8eddd
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/e2e/kubetest2-kops/deployer/up.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,18 @@ func (d *deployer) createCluster(zones []string, adminAccess string, yes bool) e
if err != nil {
return err
}

if strings.Contains(d.CreateArgs, "cilium-eni") {
for i, arg := range createArgs {
if strings.Contains(arg, "ubuntu-jammy-22.04-arm64") {
createArgs[i] = "--image='099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20231127'"
}
if strings.Contains(arg, "t4g.large") {
createArgs[i] = strings.ReplaceAll(arg, "t4g.large", "t3.large")
}
}
}

args = append(args, createArgs...)
}
args = appendIfUnset(args, "--admin-access", adminAccess)
Expand Down Expand Up @@ -216,6 +228,7 @@ func (d *deployer) createCluster(zones []string, adminAccess string, yes bool) e
args = appendIfUnset(args, "--kubernetes-feature-gates", d.KubernetesFeatureGates)
}

klog.Infof("Command: %v", args)
cmd := exec.Command(args[0], args[1:]...)
cmd.SetEnv(d.env()...)

Expand Down

0 comments on commit 8f8eddd

Please sign in to comment.