linkerd2/controller/gen/apis/link/v1alpha2
Alex Leong 396af7c946
refactor(multicluster): Replace use of unstructured API with typed bindings for Link CR (#13420)
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>
2024-12-10 11:44:19 -08:00
..
doc.go refactor(multicluster): Replace use of unstructured API with typed bindings for Link CR (#13420) 2024-12-10 11:44:19 -08:00
register.go refactor(multicluster): Replace use of unstructured API with typed bindings for Link CR (#13420) 2024-12-10 11:44:19 -08:00
types.go refactor(multicluster): Replace use of unstructured API with typed bindings for Link CR (#13420) 2024-12-10 11:44:19 -08:00
zz_generated.deepcopy.go refactor(multicluster): Replace use of unstructured API with typed bindings for Link CR (#13420) 2024-12-10 11:44:19 -08:00