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 (s *DevOpsControllerManagerOptions) Flags() cliflag.NamedFlagSets
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.
Click to show internal directories.
Click to hide internal directories.