-
Notifications
You must be signed in to change notification settings - Fork 100
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
feat: add vcluster e2e cluster provider #450
base: main
Are you sure you want to change the base?
Conversation
Hi @crandles. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
9f6fc49
to
c1c98a4
Compare
Signed-off-by: Chris Randles <[email protected]>
@crandles this is awesome and thanks for the contribution. |
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.
This is a great start. I left some comments.
echo.SetEnv("KUBECONFIG", c.hostKubeCfg) | ||
} | ||
|
||
p := echo.RunProc(command) |
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 think @harshanarayana has some util wrapper for running procs that should be considered here.
} | ||
return c | ||
} | ||
func (c *Cluster) Create(ctx context.Context, args ...string) (string, error) { |
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.
@crandles does this vcluster create function will only work for kind "real" clusters (i don't know much about vclusters). If that is the case, you may wanna consider making that clear in naming (i.e. third_party/kind_vcluster).
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.
No, this doesn't require kind, this should work in any host k8s cluster.
I set it up via kind in the example so that it could presumably execute successfully (doubting there's a real cluster to access otherwise within CI).
I'd expect normal usage would be against your preferred existing AWS or Google flavored 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.
This looks good to me.
LGTM
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: crandles, vladimirvivien 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 |
/retest |
New changes are detected. LGTM label has been removed. |
f0c081b
to
ae7b6fa
Compare
Updated copyright, verify-boilerplate passes locally now. |
/retest |
@crandles: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
golangci appears to be passing now for thew new code I've added, though errirng for some existing LOC:
Assuming that won't block this PR. |
@harshanarayana and @cpanato any idea why golangci failing on previously working code ? |
errors were primarily for:
It's possible that I'm using a different toolchain version, but as the warning seemed fair, I've fixed it via cf9cbf2
|
addition of vcluster provider; interested to see if the CI fails. vcluster needs a "host" cluster to launch into, so I've followed an existing example where a real cluster or kind cluster are utilized as necessary:
e2e-framework/examples/real_cluster/main_test.go
Line 39 in 9206e6f
What type of PR is this?
/kind feature
What this PR does / why we need it:
This PR enables a new
E2EClusterProvider
forvcluster
based clusters.Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., Usage docs, etc.: