Documentation ¶
Index ¶
- Variables
- func CheckCacheSync[T comparable](logger logr.Logger, status map[T]bool) bool
- func CreateClientConfig(logger logr.Logger) *rest.Config
- func CreateDClient(logger logr.Logger, ctx context.Context, dyn dynamic.Interface, ...) dclient.Interface
- func CreateDynamicClient(logger logr.Logger, opts ...dyn.NewOption) dynamic.Interface
- func CreateKubernetesClient(logger logr.Logger, opts ...kube.NewOption) kubernetes.Interface
- func CreateKyvernoClient(logger logr.Logger, opts ...kyverno.NewOption) versioned.Interface
- func CreateMetadataClient(logger logr.Logger, opts ...meta.NewOption) metadata.Interface
- func GetMetricsConfiguration(logger logr.Logger, client kubernetes.Interface) config.MetricsConfiguration
- func InitFlags(config Configuration)
- func ParseFlags(config Configuration)
- func Setup(name string) (context.Context, logr.Logger, metrics.MetricsConfigManager, context.CancelFunc)
- func SetupLogger() logr.Logger
- func SetupMaxProcs(logger logr.Logger) func()
- func SetupMetrics(ctx context.Context, logger logr.Logger, kubeClient kubernetes.Interface) (metrics.MetricsConfigManager, context.CancelFunc)
- func SetupProfiling(logger logr.Logger)
- func SetupSignals(logger logr.Logger) (context.Context, context.CancelFunc)
- func SetupTracing(logger logr.Logger, name string, kubeClient kubernetes.Interface) context.CancelFunc
- func ShowVersion(logger logr.Logger)
- func StartInformers[T startable](ctx context.Context, informers ...T)
- func StartInformersAndWaitForCacheSync(ctx context.Context, logger logr.Logger, informers ...informer) bool
- func WaitForCacheSync(ctx context.Context, logger logr.Logger, informers ...informer) bool
- type Configuration
- type ConfigurationOption
- type Controller
Constants ¶
This section is empty.
Variables ¶
View Source
var Context = context.Background()
Functions ¶
func CheckCacheSync ¶
func CheckCacheSync[T comparable](logger logr.Logger, status map[T]bool) bool
func CreateDClient ¶
func CreateDynamicClient ¶
func CreateKubernetesClient ¶
func CreateKyvernoClient ¶
func CreateMetadataClient ¶
func GetMetricsConfiguration ¶
func GetMetricsConfiguration(logger logr.Logger, client kubernetes.Interface) config.MetricsConfiguration
func InitFlags ¶
func InitFlags(config Configuration)
func ParseFlags ¶
func ParseFlags(config Configuration)
func Setup ¶
func Setup(name string) (context.Context, logr.Logger, metrics.MetricsConfigManager, context.CancelFunc)
func SetupLogger ¶
func SetupMaxProcs ¶
func SetupMetrics ¶
func SetupMetrics(ctx context.Context, logger logr.Logger, kubeClient kubernetes.Interface) (metrics.MetricsConfigManager, context.CancelFunc)
func SetupProfiling ¶
func SetupSignals ¶
func SetupTracing ¶
func SetupTracing(logger logr.Logger, name string, kubeClient kubernetes.Interface) context.CancelFunc
func ShowVersion ¶
func StartInformers ¶
Types ¶
type Configuration ¶
type Configuration interface { UsesMetrics() bool UsesTracing() bool UsesProfiling() bool UsesKubeconfig() bool FlagSets() []*flag.FlagSet }
func NewConfiguration ¶
func NewConfiguration(options ...ConfigurationOption) Configuration
type ConfigurationOption ¶
type ConfigurationOption func(c *configuration)
func WithFlagSets ¶
func WithFlagSets(flagsets ...*flag.FlagSet) ConfigurationOption
func WithKubeconfig ¶
func WithKubeconfig() ConfigurationOption
func WithMetrics ¶
func WithMetrics() ConfigurationOption
func WithProfiling ¶
func WithProfiling() ConfigurationOption
func WithTracing ¶
func WithTracing() ConfigurationOption
type Controller ¶
func NewController ¶
func NewController(name string, c controllers.Controller, w int) Controller
Click to show internal directories.
Click to hide internal directories.