options

package
v1.7.6 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NamespaceNebulaSystem = "nebula-system"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	// LeaderElection defines the configuration of leader election client.
	LeaderElection cbc.LeaderElectionConfiguration

	// Period at which the controller forces the repopulation of its local object stores.
	// Defaults to 0, which means the created informer will never do resyncs.
	SyncPeriod metav1.Duration

	// Namespaces restricts the cache's ListWatch to the desired namespaces
	// Default watches all namespaces
	Namespaces []string

	// MetricsBindAddress is the TCP address that the controller should bind to
	// for serving prometheus metrics.
	// It can be set to "0" to disable the metrics serving.
	// Defaults to ":8080".
	MetricsBindAddress string

	// HealthProbeBindAddress is the TCP address that the controller should bind to
	// for serving health probes.
	//	// It can be set to "0" to disable serving the health probe.
	// Defaults to ":8081".
	HealthProbeBindAddress string

	// ConcurrentNebulaClusterSyncs is the number of NebulaCluster objects that are
	// allowed to sync concurrently.
	ConcurrentNebulaClusterSyncs int

	// ConcurrentNebulaRestoreSyncs is the number of NebulaRestore objects that are
	// allowed to sync concurrently.
	ConcurrentNebulaRestoreSyncs int

	// EnableAdmissionWebhook enable admission webhook for controller manager.
	EnableAdmissionWebhook bool

	// EnableKruiseScheme enable openkruise scheme for controller manager managing AdvancedStatefulSet.
	EnableKruiseScheme bool

	ProfileOpts profile.Options
	WebhookOpts webhook.Options
}

Options contains everything necessary to create and run controller-manager.

func NewOptions

func NewOptions() *Options

func (*Options) AddFlags

func (o *Options) AddFlags(flags *pflag.FlagSet)

Jump to

Keyboard shortcuts

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