Documentation ¶
Index ¶
- type KubeSphereControllerManagerOptions
- func (s *KubeSphereControllerManagerOptions) Flags(allControllerNameSelectors []string) cliflag.NamedFlagSets
- func (s *KubeSphereControllerManagerOptions) IsControllerEnabled(name string) bool
- func (s *KubeSphereControllerManagerOptions) MergeConfig(cfg *controllerconfig.Config)
- func (s *KubeSphereControllerManagerOptions) Validate(allControllerNameSelectors []string) []error
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 ¶
func (s *KubeSphereControllerManagerOptions) MergeConfig(cfg *controllerconfig.Config)
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
Click to show internal directories.
Click to hide internal directories.