Skip to content

Commit

Permalink
Merge pull request #10649 from rifelpet/kubetest-upgrade
Browse files Browse the repository at this point in the history
Use the same package marker for kubectl as for e2e binary
  • Loading branch information
k8s-ci-robot authored Jan 24, 2021
2 parents 57e2c8e + 6114c4f commit 08d0183
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/e2e/pkg/tester/kubectl.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func (t *Tester) AcquireKubectl() (string, error) {
cmd := exec.Command(
"gsutil",
"cat",
fmt.Sprintf("gs://%s/%s/latest.txt", t.TestPackageBucket, t.TestPackageDir),
fmt.Sprintf("gs://%s/%s/%v", t.TestPackageBucket, t.TestPackageDir, t.TestPackageMarker),
)
lines, err := exec.OutputLines(cmd)
if err != nil {
Expand All @@ -52,7 +52,7 @@ func (t *Tester) AcquireKubectl() (string, error) {
}
t.TestPackageVersion = lines[0]

klog.Infof("Kubectl package version was not specified. Defaulting to latest: %s", t.TestPackageVersion)
klog.Infof("Kubectl package version was not specified. Defaulting to version from %s: %s", t.TestPackageMarker, t.TestPackageVersion)
}

clientTar := fmt.Sprintf("kubernetes-client-%s-%s.tar.gz", runtime.GOOS, runtime.GOARCH)
Expand Down

0 comments on commit 08d0183

Please sign in to comment.