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

Support test clusters other than minikube #356

Merged
merged 2 commits into from
Oct 26, 2018
Merged

Support test clusters other than minikube #356

merged 2 commits into from
Oct 26, 2018

Conversation

KnVerey
Copy link
Contributor

@KnVerey KnVerey commented Oct 24, 2018

Makes it possible to run the tests against a docker-in-docker cluster for example (which I've been using lately). To do that, you create a .local-context file (which is git ignored) containing the name of the context you want to use. This is similar to what we did for Cloud Portal.

@Shopify/cloudx for review

Copy link
Contributor

@karanthukral karanthukral left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@dturn dturn left a comment

Choose a reason for hiding this comment

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

lgtm

nodes = kubeclient.get_nodes
return 1 if nodes.one?
nodes.count do |node|
!node.metadata.labels.to_h.keys.include?(:"node-role.kubernetes.io/master")
Copy link
Contributor

Choose a reason for hiding this comment

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

dind gives you a multi node setup?

Copy link
Contributor Author

@KnVerey KnVerey Oct 25, 2018

Choose a reason for hiding this comment

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

Yep! Two nodes + master by default. Here's the repo for it FYI: https://github.com/kubernetes-sigs/kubeadm-dind-cluster

@KnVerey KnVerey merged commit 6a4f7a8 into master Oct 26, 2018
@KnVerey KnVerey deleted the alt_test_cluster branch January 9, 2019 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants