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

Document basic workflow for the kind deployer #276

Open
rexagod opened this issue Nov 5, 2024 · 6 comments
Open

Document basic workflow for the kind deployer #276

rexagod opened this issue Nov 5, 2024 · 6 comments

Comments

@rexagod
Copy link
Member

rexagod commented Nov 5, 2024

Hello! 👋🏼

I'm trying to run the node tester with the kind deployer, but I'm having no luck so far. The command below fails with a 1 exit code without any logs whatsoever.

kubetest2 kind --test=node --build --up --down -- --focus-regex='Kubelet Config' --repo-root="." -v 2

Also, I want to point out that a simple kubetest2 --help will print out a help message, within which, there's this line:

kubetest2 should be called with a deployer like: 'kubetest2 kind --help'

However, doing kubetest2 kind --help prints nothing either.

Am I missing something here?

@elieser1101
Copy link
Contributor

To get the deployer help you should install the deployer itself, in your case will be go install sigs.k8s.io/kubetest2/kubetest2-kind@latest

@rexagod
Copy link
Member Author

rexagod commented Nov 7, 2024

I followed the README, and it suggests doing go install sigs.k8s.io/kubetest2/...@latest which I reckon includes that?

@rexagod
Copy link
Member Author

rexagod commented Nov 7, 2024

Yep, same results unfortunately.

┌[rexagod@nebuchadnezzar] [/dev/ttys004] [kubelet-allow-disabling-metrics] [130]
└[~/repositories/oss/kubernetes]> go install sigs.k8s.io/kubetest2/kubetest2-kind@latest
go: downloading sigs.k8s.io/kubetest2 v0.0.0-20241105154129-acda51a5e9e3
┌[rexagod@nebuchadnezzar] [/dev/ttys004] [kubelet-allow-disabling-metrics]
└[~/repositories/oss/kubernetes]> kubetest2 kind --help
┌[rexagod@nebuchadnezzar] [/dev/ttys004] [kubelet-allow-disabling-metrics] [1]
└[~/repositories/oss/kubernetes]>

@elieser1101
Copy link
Contributor

elieser1101 commented Nov 7, 2024

did u ensure the downloaded kubetest2-kind binary is available on your PATH?

@rexagod
Copy link
Member Author

rexagod commented Nov 8, 2024

Yep, in the $PATH.

┌[rexagod@nebuchadnezzar] [/dev/ttys004] [kubelet-allow-disabling-metrics] [1]
└[~/repositories/oss/kubernetes]> which kubetest2-kind
/Users/rexagod/go/bin/kubetest2-kind

@elieser1101
Copy link
Contributor

Hi @rexagod I think there might be two separate things here.

  1. For some reason kubetests2 is not able to find kubetest2-kind to execute it
    1.1 You could try running /Users/rexagod/go/bin/kubetest2-kind --help itself, maybe its not executable for some reason
  2. I think what you are trying to do is not supported at the moment, the tester node is defaulting to test with gce nodes.

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

No branches or pull requests

2 participants