Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
client-go: factor the dynamic client similarly to others
All other clients: - expose a New() method that takes a rest.Interface - expose their RESTClient() - return pointers to the type, not instances of an interface that the type implements For code that is generic over all Kubernetes clients, and for general developer experience, it's best to make sure that this client adheres to these common practices. Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
- Loading branch information
1 parent
827c77a
commit 74af6f1
Showing
1 changed file
with
15 additions
and
10 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