options

package
v0.0.0-...-f45c986 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DevOpsControllerManagerOptions

type DevOpsControllerManagerOptions struct {
	KubernetesOptions *k8s.KubernetesOptions
	JenkinsOptions    *jenkins.Options
	LeaderElect       bool
	LeaderElection    *leaderelection.LeaderElectionConfig
	WebhookCertDir    string
	S3Options         *s3.Options
	FeatureOptions    *FeatureOptions
	ArgoCDOption      *config.ArgoCDOption

	// 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
}

func NewDevOpsControllerManagerOptions

func NewDevOpsControllerManagerOptions() *DevOpsControllerManagerOptions

func (*DevOpsControllerManagerOptions) Flags

func (*DevOpsControllerManagerOptions) Validate

func (s *DevOpsControllerManagerOptions) Validate() []error

type FeatureOptions

type FeatureOptions struct {
	Controllers          map[string]bool
	SystemNamespace      string
	ExternalAddress      string
	ClusterName          string
	PipelineRunDataStore string
}

FeatureOptions provide some feature options, such as specifying the controller to be enabled.

func NewFeatureOptions

func NewFeatureOptions() *FeatureOptions

NewFeatureOptions provide default options

func (*FeatureOptions) AddFlags

func (o *FeatureOptions) AddFlags(fs *pflag.FlagSet, c *FeatureOptions)

AddFlags adds flags related to FeatureOptions for controller manager to the feature FlagSet.

func (*FeatureOptions) ApplyTo

func (o *FeatureOptions) ApplyTo(options *FeatureOptions)

ApplyTo fills up FeatureOptions config with options

func (*FeatureOptions) GetControllers

func (o *FeatureOptions) GetControllers() map[string]bool

GetControllers returns the controllers map it supports a special key 'all', the default config is not working if 'all' is false

func (*FeatureOptions) Validate

func (o *FeatureOptions) Validate() []error

Validate checks validation of FeatureOptions.

Jump to

Keyboard shortcuts

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