Skip to content

Export kubectl path to test #370

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

hantaowang
Copy link

What type of PR is this?
/kind failing-test

What this PR does / why we need it:
We previous had a PR to export the kubectl path #352 that was closed in favor of another PR #358, but oddly the kubectl path fix was never actually included in that second PR. This adds the fix.

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

None

@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. kind/failing-test Categorizes issue or PR as related to a consistently or frequently failing test. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Aug 10, 2019
@k8s-ci-robot k8s-ci-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Aug 10, 2019
@@ -193,5 +194,14 @@ func getGKEKubeTestArgs() ([]string, error) {
fmt.Sprintf("--gcp-project=%s", project[:len(project)-1]),
}

out, err := exec.Command("which", "kubectl").Output()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where does kubectl come from? The test container image binary? kubectl has interesting compatibility behavior with Kubernetes versions. The kubectl version from the container image may get stale. How do our regular gke tests get kubectl?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It comes from the test image. There really isnt a way to make sure kubectl version is compatible with GKE version unless we build the exact version of kubectl for our GKE cluster version. We can get close by using kubectl built in the testing directory, so at least as long as were using the latest k8s e2e tests then kubectl version >= gke version.

I updated the code to do this.

Copy link
Contributor

@msau42 msau42 Aug 10, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this what normal gke tests do? We should follow closely what is done for the regular tests.

Copy link
Author

@hantaowang hantaowang Aug 10, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mean other tests not owned by sig storage that run on GKE? They do t try to boot their own gke cluster. They let kubetest do the cluster up. And thus they dont have to worry about kubectl as kubetest will manage that for them.

@hantaowang hantaowang force-pushed the make-quick-release-for-test branch from 9d4b3f6 to 309d74a Compare August 10, 2019 00:36
@hantaowang hantaowang force-pushed the make-quick-release-for-test branch from 309d74a to bb96f88 Compare August 10, 2019 00:37
@k8s-ci-robot k8s-ci-robot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Aug 10, 2019
@msau42
Copy link
Contributor

msau42 commented Aug 10, 2019

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 10, 2019
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hantaowang, msau42

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 10, 2019
@hantaowang
Copy link
Author

/retest

@k8s-ci-robot k8s-ci-robot merged commit 94c4b3f into kubernetes-sigs:master Aug 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/failing-test Categorizes issue or PR as related to a consistently or frequently failing test. lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesn't merit a release note. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants