Documentation ¶
Overview ¶
Package cachedclient contains utility methods to create a new controller runtime client with cache.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCachedClient ¶
GetCachedClient returns a controller runtime client with the cache initialized only for the resources added to the scheme. The necessary rest.Config is generated inside this function.
func GetCachedClientWithConfig ¶
func GetCachedClientWithConfig(ctx context.Context, scheme *runtime.Scheme, conf *rest.Config) (client.Client, error)
GetCachedClientWithConfig returns a controller runtime client with the cache initialized only for the resources added to the scheme. The necessary rest.Config is passed as third parameter, it must not be nil.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.