-
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.
Multiple problems occured during testing.
1: Looks like we are patching VLAN and VxLAN IDs as string for TenantNetworks. This resulted in netwatcher not being able to handle host interfaces, as decoding failed. We have defined "value" in the Patch struct as RawMessage, which implicitly resulted in always creating "string" patches. Changed the type to "interface{}" to mimic the official, upstream type, and let json.Marshal take care of creating the appropriate byte[] representation. 2: For some reason ClusterNetworks and TenantNetworks Informers complain during DELETE... but not DanmNet Informer. Trying to use separate clients and factories per API, maybe it is a multi-treading issue? Update: turned out these items are tombstone items! We need to handle them gracefully, they might hold our objects. 3: We also unfortunetaly can't avoid separate handlers for each API due to static type correctness. 4: We need to make sure that we only try to create and start an Informer, if its respective API is present in the cluster. We solve this by doing a "List" first, and only create the Informer if listing was successful.
- Loading branch information
Showing
7 changed files
with
269 additions
and
111 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,8 @@ rules: | |
- "danm.k8s.io" | ||
resources: | ||
- danmnets | ||
- clusternetworks | ||
- tenantnetworks | ||
verbs: | ||
- get | ||
- list | ||
|
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
Oops, something went wrong.