Documentation ¶
Overview ¶
Package secrets provides controllers which manage secret resources.
Index ¶
Constants ¶
const KubernetesCertificateValidityDuration = constants.KubernetesDefaultCertificateValidityDuration
KubernetesCertificateValidityDuration is the validity duration for the certificates created with this controller.
Controller automatically refreshes certs at 50% of CertificateValidityDuration.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EtcdController ¶
type EtcdController struct{}
EtcdController manages secrets.Etcd based on configuration.
func (*EtcdController) ManagedResources ¶
func (ctrl *EtcdController) ManagedResources() (resource.Namespace, resource.Type)
ManagedResources implements controller.Controller interface.
func (*EtcdController) Name ¶
func (ctrl *EtcdController) Name() string
Name implements controller.Controller interface.
func (*EtcdController) Run ¶
func (ctrl *EtcdController) Run(ctx context.Context, r controller.Runtime, logger *log.Logger) error
Run implements controller.Controller interface.
type KubernetesController ¶
type KubernetesController struct{}
KubernetesController manages secrets.Kubernetes based on configuration.
func (*KubernetesController) ManagedResources ¶
func (ctrl *KubernetesController) ManagedResources() (resource.Namespace, resource.Type)
ManagedResources implements controller.Controller interface.
func (*KubernetesController) Name ¶
func (ctrl *KubernetesController) Name() string
Name implements controller.Controller interface.
func (*KubernetesController) Run ¶
func (ctrl *KubernetesController) Run(ctx context.Context, r controller.Runtime, logger *log.Logger) error
Run implements controller.Controller interface.
type RootController ¶
type RootController struct{}
RootController manages secrets.Root based on configuration.
func (*RootController) ManagedResources ¶
func (ctrl *RootController) ManagedResources() (resource.Namespace, resource.Type)
ManagedResources implements controller.Controller interface.
func (*RootController) Name ¶
func (ctrl *RootController) Name() string
Name implements controller.Controller interface.
func (*RootController) Run ¶
func (ctrl *RootController) Run(ctx context.Context, r controller.Runtime, logger *log.Logger) error
Run implements controller.Controller interface.