options

package
v0.0.0-...-c2c0533 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ControllerUserAgent = "crane-scheduler-controller"
)

Variables

This section is empty.

Functions

func NewInformerFactory

func NewInformerFactory(cs clientset.Interface, resyncPeriod time.Duration) informers.SharedInformerFactory

NewInformerFactory creates a SharedInformerFactory and initializes an event informer that returns specified events.

Types

type Options

type Options struct {
	*annotatorconfig.AnnotatorConfiguration

	LeaderElection *componentbaseconfig.LeaderElectionConfiguration
	// contains filtered or unexported fields
}

Options has all the params needed to run a Annotator.

func NewOptions

func NewOptions() (*Options, error)

NewOptions returns default annotator app options.

func (*Options) ApplyTo

func (o *Options) ApplyTo(c *controllerappconfig.Config) error

ApplyTo fills up Annotator config with options.

func (*Options) Config

func (o *Options) Config() (*controllerappconfig.Config, error)

Config returns an Annotator config object.

func (*Options) Flags

func (o *Options) Flags(flag *pflag.FlagSet) error

Flags returns flags for a specific Annotator by section name.

func (*Options) Validate

func (o *Options) Validate() error

Validate validates the options and config before launching Annotator.

Jump to

Keyboard shortcuts

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