Documentation ¶
Index ¶
Constants ¶
View Source
const ( // RootCACertConfigMapName is a constant for the name of the ConfigMap which contains the root CA certificate. RootCACertConfigMapName = "kube-root-ca.crt" // RootCADataKey is a constant for the data key in a ConfigMap containing the root CA certificate. RootCADataKey = "ca.crt" // DescriptionAnnotation is constant for annotation key of the config map. DescriptionAnnotation = "kubernetes.io/description" )
View Source
const ControllerName = "root-ca-publisher"
ControllerName is the name of the root ca controller.
Variables ¶
This section is empty.
Functions ¶
func AddToManager ¶
AddToManager adds the controller to a Manager using the default config.
func AddToManagerWithOptions ¶
func AddToManagerWithOptions(mgr manager.Manager, conf ControllerConfig) error
AddToManagerWithOptions adds the controller to a Manager with the given config.
func NewReconciler ¶
NewReconciler is constructor only used in tests.
Types ¶
type ControllerConfig ¶
type ControllerConfig struct { MaxConcurrentWorkers int RootCAPath string TargetCluster cluster.Cluster }
ControllerConfig is the completed configuration for the controller.
type ControllerOptions ¶
type ControllerOptions struct {
// contains filtered or unexported fields
}
ControllerOptions is the completed configuration for the controller.
func (*ControllerOptions) AddFlags ¶
func (o *ControllerOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds the needed command line flags to the given FlagSet.
func (*ControllerOptions) Complete ¶
func (o *ControllerOptions) Complete() error
Complete completes the given command line flags and set the defaultControllerConfig accordingly.
func (*ControllerOptions) Completed ¶
func (o *ControllerOptions) Completed() *ControllerConfig
Completed returns the completed ControllerConfig.
Click to show internal directories.
Click to hide internal directories.