register

package
v0.0.0-...-e1628ab Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddToManager

func AddToManager(opts *Options, mgr manager.Manager) error

AddToManager allow you register controller to Manager.

func InitFlags

func InitFlags(opts *Options, flagset *flag.FlagSet, flagPrefix string)

InitFlags set and load options from flagset.

Types

type Options

type Options struct {
	// will enable controller if "Enable" empty or true
	Enable       *bool
	Client       *client.Client
	ResyncPeriod time.Duration
	WorkerNumber uint
	Namespace    string
	// which EverouteCluster should synchronize SecurityPolicy from
	EverouteCluster string
	SharedFactory   informer.SharedInformerFactory
}

Jump to

Keyboard shortcuts

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