Skip to content
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 cluster creation logic for local users #569

Merged
merged 3 commits into from
Aug 14, 2019

Conversation

chaodaiG
Copy link
Contributor

Add logic of checking for local environment, i.e. uses existing cluster if kubeconfig is set, uses existing gcp project if gcloud is set.

Part of: knative/test-infra#1186

/cc @adrcunha

@googlebot googlebot added the cla: yes Indicates the PR's author has signed the CLA. label Aug 13, 2019
@knative-prow-robot knative-prow-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Aug 13, 2019
@adrcunha
Copy link
Contributor

Please add tests for the new functions, since they're not placeholders anymore. That helper function for running shell commands will be very useful for covering the scenarios.

@adrcunha adrcunha changed the title Test Infra 2.0: Add cluster creation logic for local users Add cluster creation logic for local users Aug 13, 2019
@knative-prow-robot knative-prow-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Aug 13, 2019
@chaodaiG
Copy link
Contributor Author

unit test added, thanks for changing the title btw

Copy link
Contributor

@adrcunha adrcunha left a comment

Choose a reason for hiding this comment

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

unit test added, thanks for changing the title btw

Thanks. I assume that testSetup is coming?

testutils/clustermanager/gke.go Outdated Show resolved Hide resolved
testutils/clustermanager/gke.go Outdated Show resolved Hide resolved
testutils/clustermanager/gke.go Show resolved Hide resolved
testutils/clustermanager/gke_test.go Show resolved Hide resolved
testutils/clustermanager/gke_test.go Show resolved Hide resolved
testutils/clustermanager/gke.go Show resolved Hide resolved
testutils/clustermanager/gke.go Outdated Show resolved Hide resolved
testutils/clustermanager/util.go Show resolved Hide resolved
testutils/clustermanager/util_test.go Outdated Show resolved Hide resolved
@chaodaiG
Copy link
Contributor Author

chaodaiG commented Aug 13, 2019 via email

@adrcunha
Copy link
Contributor

/approve
/lgtm

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Aug 14, 2019
@knative-prow-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: adrcunha, chaodaiG

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

@knative-prow-robot knative-prow-robot merged commit 057c0df into knative:master Aug 14, 2019
@chaodaiG chaodaiG deleted the clusterlib_env branch August 22, 2019 18:15
chengjingtao pushed a commit to katanomi/knative-pkg that referenced this pull request Oct 22, 2024
ReportObjectsLists now accepts a namespace option to filter results to
the test context namespace.
This avoids noise from unrelated namespaces in test reports.
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. cla: yes Indicates the PR's author has signed the CLA. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. test-infra-2.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants