options

package
v0.0.0-...-e779149 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KubeSphereControllerManagerOptions

type KubeSphereControllerManagerOptions struct {
	KubernetesOptions     *k8s.KubernetesOptions
	DevopsOptions         *jenkins.Options
	AuthenticationOptions *authentication.Options
	LdapOptions           *ldapclient.Options
	OpenPitrixOptions     *openpitrix.Options
	NetworkOptions        *network.Options
	MultiClusterOptions   *multicluster.Options
	ServiceMeshOptions    *servicemesh.Options
	GatewayOptions        *gateway.Options
	MonitoringOptions     *prometheus.Options
	AlertingOptions       *alerting.Options
	LeaderElect           bool
	LeaderElection        *leaderelection.LeaderElectionConfig
	WebhookCertDir        string

	// KubeSphere is using sigs.k8s.io/application as fundamental object to implement Application Management.
	// There are other projects also built on sigs.k8s.io/application, when KubeSphere installed along side
	// them, conflicts happen. So we leave an option to only reconcile applications  matched with the given
	// selector. Default will reconcile all applications.
	//    For example
	//      "kubesphere.io/creator=" means reconcile applications with this label key
	//      "!kubesphere.io/creator" means exclude applications with this key
	ApplicationSelector string

	// ControllerGates is the list of controller gates to enable or disable controller.
	// '*' means "all enabled by default controllers"
	// 'foo' means "enable 'foo'"
	// '-foo' means "disable 'foo'"
	// first item for a particular name wins.
	//     e.g. '-foo,foo' means "disable foo", 'foo,-foo' means "enable foo"
	// * has the lowest priority.
	//     e.g. *,-foo, means "disable 'foo'"
	ControllerGates []string

	// Enable gops or not.
	GOPSEnabled bool
}

func NewKubeSphereControllerManagerOptions

func NewKubeSphereControllerManagerOptions() *KubeSphereControllerManagerOptions

func (*KubeSphereControllerManagerOptions) Flags

func (s *KubeSphereControllerManagerOptions) Flags(allControllerNameSelectors []string) cliflag.NamedFlagSets

func (*KubeSphereControllerManagerOptions) IsControllerEnabled

func (s *KubeSphereControllerManagerOptions) IsControllerEnabled(name string) bool

IsControllerEnabled check if a specified controller enabled or not.

func (*KubeSphereControllerManagerOptions) MergeConfig

MergeConfig merge new config without validation When misconfigured, the app should just crash directly

func (*KubeSphereControllerManagerOptions) Validate

func (s *KubeSphereControllerManagerOptions) Validate(allControllerNameSelectors []string) []error

Validate Options and Genetic Options

Jump to

Keyboard shortcuts

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