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

Fix vagrant so that ssh commands work OOTB #5557

Merged
merged 1 commit into from
Mar 18, 2015

Conversation

jayunit100
Copy link
Member

This adds a provisioner specific unit testing framework, so that any provisioner can test its specific functionality.

It also fixes a particular bug for a particular provisioner which im particularly fond of :)

@derekwaynecarr derekwaynecarr self-assigned this Mar 17, 2015
# Here an individual provider can add extra tests,
# For example 'vagrant ssh master1 kubectl get pods' should work
# to show existing pods, and so on.
${KUBE_ROOT}/cluster/${KUBERNETES_PROVIDER}/validate-provider.sh
Copy link
Member

Choose a reason for hiding this comment

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

You would need a shell file for each provider?

My bias is we do not do this piece since the goal is to move more of this into a Go program.

@jayunit100
Copy link
Member Author

looks like build has passed now, i can rebase if you think its a good idea.

@derekwaynecarr
Copy link
Member

No need to rebase. I am not sure I understand the value of the validate-cluster operation per provider right now as presented. It looks like something that will just make things slower. Is there any reason you can't move whatever additional verification you want to do in cluster/vagrant/util.sh verify-cluster function?

@jayunit100
Copy link
Member Author

you're right - that is a great place for it cluster/vagrant/util.sh , which seems to be serving as an interface . Somehow that completely skipped my mind .

@derekwaynecarr
Copy link
Member

squash your commits

@jayunit100
Copy link
Member Author

squashed a few and minimized the change, removed one extra file. I think this is something we can agree on. if this looks useful feel free to push, if not happy to close also....

@derekwaynecarr
Copy link
Member

I am not seeing the squash...

I still see 5 commits where 1 commit would be appropriate - you are just changing 2 files and 7 lines ;-)

@jayunit100
Copy link
Member Author

hmmm funny, let me push again

… vagrant/util.sh, remove run_provider_test, cleanup.
@jayunit100
Copy link
Member Author

okay i just rebased /pushed :)

@derekwaynecarr
Copy link
Member

Thanks ;-)

derekwaynecarr added a commit that referenced this pull request Mar 18, 2015
Fix vagrant so that ssh commands work OOTB
@derekwaynecarr derekwaynecarr merged commit ac3b1b2 into kubernetes:master Mar 18, 2015
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.

3 participants