Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DisableDeepCopy = disableDeepCopy{}
Functions ¶
func FieldIndexName ¶
FieldIndexName constructs the name of the index over the given field, for use with an indexer.
func KeyToNamespacedKey ¶
KeyToNamespacedKey prefixes the given index key with a namespace for use in field selector indexes.
func NewClient ¶
func NewClient(cache cache.Cache, config *rest.Config, options client.Options, uncachedObjects ...client.Object) (client.Client, error)
NewClient creates the default caching client with disable deepcopy list from cache.
func NewRegistry ¶
NewRegistry creates clientset by client-go
Types ¶
type GenericClientset ¶
type GenericClientset struct { DiscoveryClient discovery.DiscoveryInterface KubeClient kubeclientset.Interface KruiseClient kruiseclientset.Interface }
GenericClientset defines a generic client
func GetGenericClient ¶
func GetGenericClient() *GenericClientset
GetGenericClient returns default clientset
func GetGenericClientWithName ¶ added in v0.3.0
func GetGenericClientWithName(name string) *GenericClientset
GetGenericClientWithName returns clientset with given name as user-agent
Click to show internal directories.
Click to hide internal directories.