options

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// NamespaceKarmadaSystem is the karmada system namespace.
	NamespaceKarmadaSystem = "karmada-system"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type MultiClusterControllerManagerOptions

type MultiClusterControllerManagerOptions struct {
	// Name is the provider for multicluster services.
	Name string
	// CloudConfigFile is the path to the multicluster provider configuration file.
	CloudConfigFile string
	// ProviderClassName is the name of the ingress class this provider satisfies.
	ProviderClassName string
	// LeaderElection defines the configuration of leader election client.
	LeaderElection componentbaseconfig.LeaderElectionConfiguration
	// BindAddress is the IP address on which to listen for the --secure-port port.
	BindAddress string
	// SecurePort is the port that the server serves at.
	// Note: We hope support https in the future once controller-runtime provides the functionality.
	SecurePort int
	// KubeAPIQPS is the QPS to use while talking with karmada-apiserver.
	KubeAPIQPS float32
	// KubeAPIBurst is the burst to allow while talking with karmada-apiserver.
	KubeAPIBurst int
	// ResyncPeriod is the base frequency the informers are resynced.
	// Defaults to 0, which means the created informer will never do resyncs.
	ResyncPeriod metav1.Duration
	// 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

	RateLimiterOpts ratelimiterflag.Options
	ProfileOpts     profileflag.Options
}

MultiClusterControllerManagerOptions contains everything necessary to create and run multicluster-provider.

func NewClusterControllerManagerOptions

func NewClusterControllerManagerOptions() *MultiClusterControllerManagerOptions

NewClusterControllerManagerOptions builds an empty MultiClusterControllerManagerOptions.

func (*MultiClusterControllerManagerOptions) AddFlags

AddFlags adds flags to the specified FlagSet.

func (*MultiClusterControllerManagerOptions) Validate

Validate checks MultiClusterControllerManagerOptions and return a slice of found errs.

Jump to

Keyboard shortcuts

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