Documentation
¶
Overview ¶
Package commonclient provides version-independent wrappers over controller-runtime and client-go. This enables one codebase to work with multiple versions of controller-runtime.
Index ¶
- func GetHTTPClient(c cluster.Cluster) (*http.Client, error)
- func NewDiscoveryRESTMapper(c *rest.Config, httpClient *http.Client) (meta.RESTMapper, error)
- func NewDynamicRESTMapper(c *rest.Config, httpClient *http.Client) (meta.RESTMapper, error)
- func SetMetricsBindAddress(options *ctrl.Options, bindAddress string) error
- func SourceKind(cache cache.Cache, obj client.Object) source.Source
- func SourceKindWithHandler(cache cache.Cache, obj client.Object, ...) source.Source
- type EventHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetHTTPClient ¶
GetHTTPClient returns the http.Client associated with the Cluster
func NewDiscoveryRESTMapper ¶
NewDiscoveryRESTMapper is a version-independent wrapper around creating a meta.RESTMapper It calls NewDynamicRESTMapper as of kubebuilder-declarative-pattern 0.17. Deprecated: prefer NewDynamicRESTMapper
func NewDynamicRESTMapper ¶
NewDynamicRESTMapper is a version-independent wrapper around apiutil.NewDynamicRESTMapper
func SetMetricsBindAddress ¶
SetMetricsBindAddress sets the metrics address on options independent of manager options version
func SourceKind ¶
SourceKind is a version-indendenent abstraction over calling source.Kind
Types ¶
type EventHandler ¶
type EventHandler = handler.EventHandler