-
Notifications
You must be signed in to change notification settings - Fork 64
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: check if the request is a dry-run to match CAPI topology design #277
feat: check if the request is a dry-run to match CAPI topology design #277
Conversation
pkg/webhookhandler/validator_test.go
Outdated
switch operation { | ||
case admissionv1.Create: | ||
req.Object = runtime.RawExtension{ | ||
Raw: []byte(runtime.EncodeOrDie(encoder, oldObj)), | ||
Object: oldObj, | ||
} | ||
case admissionv1.Update: | ||
req.DryRun = &defaultReqDryRun |
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.
Please replace with ptr.To(false)
and drop defaultReqDryRun
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.
Done, thx for the tip :)
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.
It failed to compile in the e2e test: https://prow.ci.kubevirt.io/view/gs/kubevirt-prow/pr-logs/pull/kubernetes-sigs_cluster-api-provider-kubevirt/277/pull-kubernetes-sigs-cluster-api-provider-kubevirt-e2e/1764970340280176640
please run go mod tidy
and push the modified files.
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.
Thanks for the PR!
/ok-to-test
Pull Request Test Coverage Report for Build 8158792860Details
💛 - Coveralls |
Tests needs to be fixed @nunnatsa ? Or just re request ? |
I don't think we need to touch the test. just run BTW, we currently can't re-run e2e. the only way is to push again, e.g.
============ EDIT ============= Try to re-push then |
No changes after many e2e restart |
Found it: you'll need to also run |
/lgtm |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: aamoyel, nunnatsa 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 |
Fix #264