controller_runtime

package
v0.4.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 2, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCache

func NewCache(config *rest.Config, opts cache.Options) (cache.Cache, error)

NewCache initialize a custom cache used to auto convert labelSelector to fieldSelector when call List func. Use this func with NewManager the same time, otherwise it will not take effect.

func NewManager

func NewManager(config *rest.Config, options manager.Options, objects []client.Object) (manager.Manager, error)

NewManager initialize a custom controller runtime manager with specified options to add index for specified objects which convert labelSelector to fieldSelector because of controller runtime NOT support add index for labelSelector. Be care of only single fieldSelector is supported for now when to call List func which is limited by client-go's implementation. Refer to: https://github.com/kubernetes/kubernetes/pull/109334

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL