-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix webhook bugs found during functional testing
1: Started logging the return value of the HTTPS server 2: Changed default bind-address value from "0.0.0.0" to empty string 3: Changed to json.Decoder and started hard-enforcing total adherence to DanmNet schema (no unknown fields are allowed) 4: Added possibility to patch NetworkType parameter (setting to default "ipvlan") 5: To be able to handle modify operations, we only change Alloc if it was previously empty 6: Patch needs to be added when orig and new value are NOT equal :) 7: Value of patch needs to be force-enclosed with quotes, otherwise JSON marshalling fails 8: Other returns reason, and descriptive error logs to some previously not tracked execution paths 9: Alloc start and end were not properly set into the changedNetwork due to copy issues 10: Options related patching operations were changed to "replace", and use upper-case spelling to satisfy json-patch code 11: Added a new validation against manually setting Alloc 12: Dictionary type fields like Allocation_Pool needs to be replaced unblock if any of its fields changed 13: Webhook was coring because we tried to create allocation array even for empty CIDRs 14: Start being smaller than end check was not working due to substracting two uint32s from each other apparently does not work in Golang?
- Loading branch information
Showing
3 changed files
with
80 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters