options

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GroupKindConcurrency = map[string]int{
	rolloutv1alpha1.SchemeGroupVersion.WithKind("Rollout").GroupKind().String():         10,
	rolloutv1alpha1.SchemeGroupVersion.WithKind("RolloutRun").GroupKind().String():      20,
	rolloutv1alpha1.SchemeGroupVersion.WithKind("TrafficTopology").GroupKind().String(): 10,
	rolloutv1alpha1.SchemeGroupVersion.WithKind("BackendRouting").GroupKind().String():  10,
}

Functions

This section is empty.

Types

type ControllerOptions added in v0.1.1

type ControllerOptions struct {
	LeaderElect             bool
	LeaderElectionNamespace string
	LeaderElectionID        string
	FederatedMode           bool
	MaxConcurrentWorkers    int

	GroupKindConcurrency map[string]int
	CacheSyncTimeout     time.Duration
}

func NewControllerOptions added in v0.1.1

func NewControllerOptions() *ControllerOptions

func (*ControllerOptions) BindFlags added in v0.1.1

func (o *ControllerOptions) BindFlags(fs *pflag.FlagSet)

BindFlags implements suboptions.

func (*ControllerOptions) Complete added in v0.1.1

func (o *ControllerOptions) Complete() error

Complete implements suboptions.

func (*ControllerOptions) Validate added in v0.1.1

func (o *ControllerOptions) Validate() []error

Validate implements suboptions.

type LogOptions added in v0.1.1

type LogOptions struct {
	Logger     string
	ZapOptions *zap.Options
}

func NewLogOptions added in v0.1.1

func NewLogOptions() *LogOptions

func (*LogOptions) BindFlags added in v0.1.1

func (o *LogOptions) BindFlags(fs *pflag.FlagSet)

func (*LogOptions) Complete added in v0.1.1

func (o *LogOptions) Complete() error

func (*LogOptions) Validate added in v0.1.1

func (o *LogOptions) Validate() []error

type Options

type Options struct {
	ClusterConfigProvider clusterprovider.ClusterConfigProvider
	Controller            *ControllerOptions
	Log                   *LogOptions
	Serving               *ServingOptions
}

func NewOptions

func NewOptions() *Options

func (*Options) Complete

func (o *Options) Complete() error

func (*Options) Flags

func (o *Options) Flags(initializers ...initializer.Interface) *cliflag.NamedFlagSets

func (*Options) Validate

func (o *Options) Validate() []error

type ServingOptions added in v0.1.1

type ServingOptions struct {
	MetricsBindAddress     string
	HealthProbeBindAddress string

	WebhookPort    int
	WebhookCertDir string
}

func NewServingOptions added in v0.1.1

func NewServingOptions() *ServingOptions

func (*ServingOptions) BindFlags added in v0.1.1

func (o *ServingOptions) BindFlags(fs *pflag.FlagSet)

BindFlags implements suboptions.

func (*ServingOptions) Complete added in v0.1.1

func (o *ServingOptions) Complete() error

Complete implements suboptions.

func (*ServingOptions) Validate added in v0.1.1

func (o *ServingOptions) Validate() []error

Validate implements suboptions.

Jump to

Keyboard shortcuts

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