Documentation ¶
Overview ¶
Copyright Contributors to the Open Cluster Management project
Copyright Contributors to the Open Cluster Management project
Index ¶
- func NewDefaultComponentConfig() (kubectrlmgrconfig.KubeControllerManagerConfiguration, error)
- type CSRSigningControllerOptions
- type GarbageCollectorControllerOptions
- type KubeControllerManagerOptions
- func (s *KubeControllerManagerOptions) ApplyTo(c *kubecontrollerconfig.Config) error
- func (s KubeControllerManagerOptions) Config(cfg *restclient.Config) (*kubecontrollerconfig.Config, error)
- func (s *KubeControllerManagerOptions) Flags() cliflag.NamedFlagSets
- func (s *KubeControllerManagerOptions) Validate() error
- type NamespaceControllerOptions
- type SAControllerOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDefaultComponentConfig ¶
func NewDefaultComponentConfig() (kubectrlmgrconfig.KubeControllerManagerConfiguration, error)
NewDefaultComponentConfig returns kube-controller manager configuration object.
Types ¶
type CSRSigningControllerOptions ¶
type CSRSigningControllerOptions struct {
*csrsigningconfig.CSRSigningControllerConfiguration
}
CSRSigningControllerOptions holds the CSRSigningController options.
func (*CSRSigningControllerOptions) AddFlags ¶
func (o *CSRSigningControllerOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags related to CSRSigningController for controller manager to the specified FlagSet.
func (*CSRSigningControllerOptions) ApplyTo ¶
func (o *CSRSigningControllerOptions) ApplyTo(cfg *csrsigningconfig.CSRSigningControllerConfiguration) error
ApplyTo fills up CSRSigningController config with options.
func (*CSRSigningControllerOptions) Validate ¶
func (o *CSRSigningControllerOptions) Validate() []error
Validate checks validation of CSRSigningControllerOptions.
type GarbageCollectorControllerOptions ¶
type GarbageCollectorControllerOptions struct {
*garbagecollectorconfig.GarbageCollectorControllerConfiguration
}
GarbageCollectorControllerOptions holds the GarbageCollectorController options.
func (*GarbageCollectorControllerOptions) AddFlags ¶
func (o *GarbageCollectorControllerOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags related to GarbageCollectorController for controller manager to the specified FlagSet.
func (*GarbageCollectorControllerOptions) ApplyTo ¶
func (o *GarbageCollectorControllerOptions) ApplyTo(cfg *garbagecollectorconfig.GarbageCollectorControllerConfiguration) error
ApplyTo fills up GarbageCollectorController config with options.
func (*GarbageCollectorControllerOptions) Validate ¶
func (o *GarbageCollectorControllerOptions) Validate() []error
Validate checks validation of GarbageCollectorController.
type KubeControllerManagerOptions ¶
type KubeControllerManagerOptions struct { Generic *cmoptions.GenericControllerManagerConfigurationOptions CSRSigningController *CSRSigningControllerOptions GarbageCollectorController *GarbageCollectorControllerOptions NamespaceController *NamespaceControllerOptions SAController *SAControllerOptions Metrics *metrics.Options Logs *logs.Options ShowHiddenMetricsForVersion string }
KubeControllerManagerOptions is the main context object for the kube-controller manager.
func NewKubeControllerManagerOptions ¶
func NewKubeControllerManagerOptions() (*KubeControllerManagerOptions, error)
NewKubeControllerManagerOptions creates a new KubeControllerManagerOptions with a default config.
func (*KubeControllerManagerOptions) ApplyTo ¶
func (s *KubeControllerManagerOptions) ApplyTo(c *kubecontrollerconfig.Config) error
ApplyTo fills up controller manager config with options.
func (KubeControllerManagerOptions) Config ¶
func (s KubeControllerManagerOptions) Config(cfg *restclient.Config) (*kubecontrollerconfig.Config, error)
Config return a controller manager config objective
func (*KubeControllerManagerOptions) Flags ¶
func (s *KubeControllerManagerOptions) Flags() cliflag.NamedFlagSets
Flags returns flags for a specific APIServer by section name
func (*KubeControllerManagerOptions) Validate ¶
func (s *KubeControllerManagerOptions) Validate() error
Validate is used to validate the options and config before launching the controller manager
type NamespaceControllerOptions ¶
type NamespaceControllerOptions struct {
*namespaceconfig.NamespaceControllerConfiguration
}
NamespaceControllerOptions holds the NamespaceController options.
func (*NamespaceControllerOptions) AddFlags ¶
func (o *NamespaceControllerOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags related to NamespaceController for controller manager to the specified FlagSet.
func (*NamespaceControllerOptions) ApplyTo ¶
func (o *NamespaceControllerOptions) ApplyTo(cfg *namespaceconfig.NamespaceControllerConfiguration) error
ApplyTo fills up NamespaceController config with options.
func (*NamespaceControllerOptions) Validate ¶
func (o *NamespaceControllerOptions) Validate() []error
Validate checks validation of NamespaceControllerOptions.
type SAControllerOptions ¶ added in v0.2.0
type SAControllerOptions struct {
*serviceaccountconfig.SAControllerConfiguration
}
SAControllerOptions holds the ServiceAccountController options.
func (*SAControllerOptions) AddFlags ¶ added in v0.2.0
func (o *SAControllerOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags related to ServiceAccountController for controller manager to the specified FlagSet
func (*SAControllerOptions) ApplyTo ¶ added in v0.2.0
func (o *SAControllerOptions) ApplyTo(cfg *serviceaccountconfig.SAControllerConfiguration) error
ApplyTo fills up ServiceAccountController config with options.
func (*SAControllerOptions) Validate ¶ added in v0.2.0
func (o *SAControllerOptions) Validate() []error
Validate checks validation of ServiceAccountControllerOptions.