-
Notifications
You must be signed in to change notification settings - Fork 41
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 tests for other webhook types #37
Add tests for other webhook types #37
Conversation
c426825
to
efa91a3
Compare
Thanks for writing the tests! It looks like the gomofules need to be updated. |
efa91a3
to
64c62c9
Compare
updated |
It looks like there are merge conflicts on the go.mod file? |
pkg/rotator/rotator_test.go
Outdated
@@ -9,7 +9,10 @@ import ( | |||
"github.com/onsi/gomega" | |||
admissionv1 "k8s.io/api/admissionregistration/v1" | |||
corev1 "k8s.io/api/core/v1" | |||
apiextensionsv1beta1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1" |
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.
since v1beta1 is removed in k8s v1.22, should we use v1?
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.
Rebased onto #39
Signed-off-by: Adam Malcontenti-Wilson <amalcontenti-wilson@zendesk.com>
Signed-off-by: Adam Malcontenti-Wilson <amalcontenti-wilson@zendesk.com>
Signed-off-by: Adam Malcontenti-Wilson <amalcontenti-wilson@zendesk.com>
64c62c9
to
78e920c
Compare
Signed-off-by: Adam Malcontenti-Wilson <amalcontenti-wilson@zendesk.com>
78e920c
to
d3e7cc6
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.
LGTM
Should we close #39 now that this PR is rebased on it?
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
Adding test-table-driven-tests for TestReconcileWebhook providing a resource of each type.