options

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultClusternetControllerManagerPort is the default port for the clusternet-controller-manager running in parent cluster.
	// May be overridden by a flag at startup.
	DefaultClusternetControllerManagerPort = 10660
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ControllerManagerOptions

type ControllerManagerOptions struct {

	// Whether the anonymous access is allowed by the kube-apiserver,
	// i.e. flag "--anonymous-auth=true" is set to kube-apiserver.
	// If enabled, then the deployers in Clusternet will use anonymous when proxying requests to child clusters.
	// If not, serviceaccount "clusternet-hub-proxy" will be used instead.
	AnonymousAuthSupported bool
	// default namespace to create Manifest in
	// default to be "clusternet-reserved"
	ReservedNamespace    string
	ClusterAPIKubeconfig string

	//Threadiness of controller workers, default to be 10
	Threadiness int

	// Controllers is the list of controllers to enable or disable
	// '*' means "all enabled by default controllers"
	// 'foo' means "enable 'foo'"
	// '-foo' means "disable 'foo'"
	// first item for a particular name wins
	Controllers []string

	*utils.ControllerOptions

	SecureServing *apiserveroptions.SecureServingOptionsWithLoopback

	// DebuggingOptions holds the Debugging options.
	DebuggingOptions *controllermanageroptions.DebuggingOptions

	Metrics *metrics.Options
}

ControllerManagerOptions holds the command-line options for command

func NewControllerManagerOptions

func NewControllerManagerOptions() (*ControllerManagerOptions, error)

NewControllerManagerOptions creates a new *options with sane defaults

func (*ControllerManagerOptions) Complete

func (o *ControllerManagerOptions) Complete() error

Complete completes all the required options.

func (*ControllerManagerOptions) Config

func (o *ControllerManagerOptions) Config() error

func (*ControllerManagerOptions) Flags

func (o *ControllerManagerOptions) Flags(allControllers, disabledByDefaultControllers []string) *cliflag.NamedFlagSets

Flags initializes flags by section name.

func (*ControllerManagerOptions) Validate

func (o *ControllerManagerOptions) Validate() error

Validate validates all the required options.

Jump to

Keyboard shortcuts

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