Documentation ¶
Index ¶
Constants ¶
const ( // DefaultClusterSigningCertFile is deprecated. Do not use. DefaultClusterSigningCertFile = "/etc/kubernetes/ca/ca.pem" // DefaultClusterSigningKeyFile is deprecated. Do not use. DefaultClusterSigningKeyFile = "/etc/kubernetes/ca/ca.key" )
Variables ¶
This section is empty.
Functions ¶
func NewDefaultControllerManagerComponentConfig ¶
func NewDefaultControllerManagerComponentConfig(insecurePort int32) componentconfig.KubeControllerManagerConfiguration
NewDefaultControllerManagerComponentConfig returns default kube-controller manager configuration object.
Types ¶
type GenericControllerManagerOptions ¶
type GenericControllerManagerOptions struct { // TODO: turn ComponentConfig into modular option structs. This is not generic. ComponentConfig componentconfig.KubeControllerManagerConfiguration SecureServing *apiserveroptions.SecureServingOptions // TODO: remove insecure serving mode InsecureServing *InsecureServingOptions Master string Kubeconfig string }
GenericControllerManagerOptions is the common structure for a controller manager. It works with NewGenericControllerManagerOptions and AddDefaultControllerFlags to create the common components of kube-controller-manager and cloud-controller-manager.
func NewGenericControllerManagerOptions ¶
func NewGenericControllerManagerOptions(componentConfig componentconfig.KubeControllerManagerConfiguration) GenericControllerManagerOptions
NewGenericControllerManagerOptions returns common/default configuration values for both the kube-controller-manager and the cloud-contoller-manager. Any common changes should be made here. Any individual changes should be made in that controller.
func (*GenericControllerManagerOptions) AddFlags ¶
func (o *GenericControllerManagerOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds common/default flags for both the kube and cloud Controller Manager Server to the specified FlagSet. Any common changes should be made here. Any individual changes should be made in that controller.
func (*GenericControllerManagerOptions) ApplyTo ¶
func (o *GenericControllerManagerOptions) ApplyTo(c *genericcontrollermanager.Config, userAgent string) error
ApplyTo fills up controller manager config with options and userAgent
func (*GenericControllerManagerOptions) Validate ¶
func (o *GenericControllerManagerOptions) Validate() []error
Validate checks GenericControllerManagerOptions and return a slice of found errors.
type InsecureServingOptions ¶
type InsecureServingOptions struct { BindAddress net.IP BindPort int // BindNetwork is the type of network to bind to - defaults to "tcp", accepts "tcp", // "tcp4", and "tcp6". BindNetwork string // Listener is the secure server network listener. // either Listener or BindAddress/BindPort/BindNetwork is set, // if Listener is set, use it and omit BindAddress/BindPort/BindNetwork. Listener net.Listener }
InsecureServingOptions are for creating an unauthenticated, unauthorized, insecure port. No one should be using these anymore.
func (*InsecureServingOptions) AddDeprecatedFlags ¶
func (s *InsecureServingOptions) AddDeprecatedFlags(fs *pflag.FlagSet)
AddDeprecatedFlags adds deprecated flags related to insecure serving for controller manager to the specified FlagSet. TODO: remove it until kops stop using `--address`
func (*InsecureServingOptions) AddFlags ¶
func (s *InsecureServingOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags related to insecure serving for controller manager to the specified FlagSet.
func (*InsecureServingOptions) ApplyTo ¶
func (s *InsecureServingOptions) ApplyTo(c **genericcontrollermanager.InsecureServingInfo, cfg *componentconfig.KubeControllerManagerConfiguration) error
ApplyTo adds InsecureServingOptions to the insecureserverinfo amd kube-controller manager configuration. Note: the double pointer allows to set the *InsecureServingInfo to nil without referencing the struct hosting this pointer.
func (*InsecureServingOptions) Validate ¶
func (s *InsecureServingOptions) Validate() []error
Validate ensures that the insecure port values within the range of the port.