-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Apply validation to check the conversion #4597
base: master
Are you sure you want to change the base?
Apply validation to check the conversion #4597
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: sbin64 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Welcome @sbin64! |
Hi @sbin64. 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. |
test/e2e/v4/plugin_cluster_test.go
Outdated
Eventually(func(g Gomega) { | ||
output, err := kbc.Kubectl.Get( | ||
true, | ||
"-n", "test-ns", |
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 need to re-check the code above to confirm think the ns is true
only right?
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.
Yes. And I have added validation check for v1 -> v2 conversion. Thanks
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 we should not "-n", "test-ns",
The true will get the CRs from the namespace defined in the TestContext
Give a look on its implementation
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.
Yes, I found that.
Do I need establish a CRD for that? sth like
crdName := "conversiontests." + kbc.Group
Eventually(func(g Gomega) {
_, err := kbc.Kubectl.Get(false, "crd", crdName)
g.Expect(err).NotTo(HaveOccurred(), "CRD %s not found", crdName)
}
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.
/ok-to-test
@sbin64: The following tests 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. |
Closes: #4297