-
Notifications
You must be signed in to change notification settings - Fork 159
add functionality to use gke with kubetest #358
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
add functionality to use gke with kubetest #358
Conversation
3df999a
to
80c62dc
Compare
test/k8s-integration/cluster.go
Outdated
|
||
func getGKEKubeTestArgs() ([]string, error) { | ||
gkeEnv := "prod" | ||
if len(os.Getenv("CLOUDSDK_API_ENDPOINT_OVERRIDES_CONTAINER")) > 0 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the override value could possibly be "test", "staging2", "dev" as well? Could we do a lookup env and parse out the actual environment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
from https://github.com/kubernetes/test-infra/blob/6f786f4306700573630e4698e8f73d7db0baaa01/kubetest/gke.go#L194 it cant be dev or staging2. I've changed it to a switch statement.
45a89c4
to
3c33b1f
Compare
3c33b1f
to
ef9bfb2
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: davidz627, hantaowang 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 |
What type of PR is this?
/kind failing-test
What this PR does / why we need it:
Our new testing framework kubetest does not work out of the box with GKE.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
/assign @davidz627 @jingxu97
Does this PR introduce a user-facing change?: