-
Notifications
You must be signed in to change notification settings - Fork 373
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 a new e2e provider to make test running on remote cluster #158
Add a new e2e provider to make test running on remote cluster #158
Conversation
Thanks for your PR. The following commands are available:
|
99df0d9
to
808b363
Compare
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.
I don't mind merging this as it is, we can make some improvements later (unify flags / code with other providers).
I do think that there is no need for the remote.master
command-line flag so I would suggest removing it.
test/e2e/providers/remote.go
Outdated
var ( | ||
homedir, _ = os.UserHomeDir() | ||
sshConfig = flag.String("remote.sshconfig", path.Join(homedir, ".ssh", "config"), "Path of the sshconfig") | ||
masterHostname = flag.String("remote.master", "", "Hostname of the master node of the kubernetes cluster") |
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.
maybe we can do without this (like the vagrant provider) even though it means parsing the SSH config for every call to RunCommandOnNode
? That would simplify usage with no significant drawback. What do you think?
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.
Sure, changed.
808b363
to
f8799d6
Compare
Signed-off-by: Weiqiang TANG <weiqiangt@vmware.com>
f8799d6
to
bbefcdd
Compare
Co-Authored-By: Antonin Bas <antonin.bas@gmail.com>
Signed-off-by: Weiqiang TANG <weiqiangt@vmware.com>
Addressing comments Signed-off-by: Weiqiang TANG <weiqiangt@vmware.com>
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.
LGTM
Better to update #158 (comment) as you have removed |
Thanks. |
/test-e2e |
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.
LGTM
Delete the unrequired method of deleting record from record map without lock. Add a method to get the flow updated time for flow given flow key
Reverting this commit 7c0a0ae. Reason is the PR(antrea-io#1949) that depends on this commit is not yet ready. And to move the tag of go-ipfix in Antrea for other PRs this commit should be present in the latest release tags. Therefore, reverting this.
Delete the unrequired method of deleting record from record map without lock. Add a method to get the flow updated time for flow given flow key
Delete the unrequired method of deleting record from record map without lock. Add a method to get the flow updated time for flow given flow key
Implemented the remote provider which accepts sshconfig file and kubeconfig file to run the e2e test on a remote Kubernetes cluster.
The provider accept two new flags:
remote.kubeconfig
: Path of the kubeconfig of the cluster in local machineremote.sshconfig
: Path of the sshconfig