-
Notifications
You must be signed in to change notification settings - Fork 21
Add webhook for ipaddressallocation #1134
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
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1134 +/- ##
==========================================
- Coverage 74.11% 73.03% -1.08%
==========================================
Files 137 137
Lines 21572 21702 +130
==========================================
- Hits 15988 15851 -137
- Misses 4576 4853 +277
+ Partials 1008 998 -10
🚀 New features to boost your workflow:
|
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
/e2e |
1 similar comment
/e2e |
/e2e |
46b7405
to
861d543
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
Search all the service under the same namespace. If the ip has been used in the service, operator will reject the deletion of ipaddressallocation Test Done: 1. create an ipaddressallocation with ip 192.168.0.50 2. update svc with loadBalancerIP: 192.168.0.50 3. wait for svc ready 4. delete the ipaddressallocation 5. check if return error like: Error from server (Forbidden): admission webhook "ipaddressallocation.validating.crd.nsx.vmware.com" denied the request: cannot delete IPAddressAllocation ip2: IP 192.168.0.50 is still in use by Service milk-svc
/e2e |
1 similar comment
/e2e |
Search all the service under the same namespace. If the ip has been used in the service, operator will reject the deletion of ipaddressallocation
Test Done:
case 1:
"ipaddressallocation.validating.crd.nsx.vmware.com" denied the request: cannot delete IPAddressAllocation ip2: IP 192.168.0.50 is still in use by Service milk-svc
case 2:
"ipaddressallocation.validating.crd.nsx.vmware.com" denied the request: cannot delete IPAddressAllocation ip1: IP 192.168.0.55 is still in use by Service milk-svc