Merge pull request #10649 from rifelpet/kubetest-upgrade

Use the same package marker for kubectl as for e2e binary
This commit is contained in:
Kubernetes Prow Robot 2021-01-23 19:36:53 -08:00 committed by GitHub
commit 08d0183f59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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 {
@ -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)