mirror of https://github.com/linkerd/linkerd2.git
The linkerd-multicluster extension uses client-go's `unstructured` API to access Link custom resources. This API allowed us to develop quickly without the work of generating typed bindings. However, using the unstrucutred API is error prone since fields must be accessed by their string name. It is also inconsistent with the rest of the project which uses typed bindings. We replace the use of the unstructured API for Link resources with generated typed bindings. The client-go APIs are slightly different and client-go does not provide a way to update subresources for typed bindings. Therefore, when updating a Link's status subresource, we use a patch instead of an update. Signed-off-by: Alex Leong <alex@buoyant.io> |
||
---|---|---|
.. | ||
doc.go | ||
register.go | ||
types.go | ||
zz_generated.deepcopy.go |