Documentation ¶
Overview ¶
Package k8s provides controllers which manage Kubernetes resources.
Index ¶
- type ControlPlaneStaticPodController
- func (ctrl *ControlPlaneStaticPodController) Inputs() []controller.Input
- func (ctrl *ControlPlaneStaticPodController) Name() string
- func (ctrl *ControlPlaneStaticPodController) Outputs() []controller.Output
- func (ctrl *ControlPlaneStaticPodController) Run(ctx context.Context, r controller.Runtime, logger *zap.Logger) error
- type EndpointController
- type ExtraManifestController
- type KubeletConfigController
- type KubeletServiceController
- type KubeletSpecController
- type KubeletStaticPodController
- func (ctrl *KubeletStaticPodController) Inputs() []controller.Input
- func (ctrl *KubeletStaticPodController) Name() string
- func (ctrl *KubeletStaticPodController) Outputs() []controller.Output
- func (ctrl *KubeletStaticPodController) Run(ctx context.Context, r controller.Runtime, logger *zap.Logger) error
- type ManifestApplyController
- type ManifestController
- type NodeIPConfigController
- type NodeIPController
- type NodenameController
- type RenderSecretsStaticPodController
- func (ctrl *RenderSecretsStaticPodController) Inputs() []controller.Input
- func (ctrl *RenderSecretsStaticPodController) Name() string
- func (ctrl *RenderSecretsStaticPodController) Outputs() []controller.Output
- func (ctrl *RenderSecretsStaticPodController) Run(ctx context.Context, r controller.Runtime, logger *zap.Logger) error
- type ServiceManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ControlPlaneStaticPodController ¶
type ControlPlaneStaticPodController struct{}
ControlPlaneStaticPodController manages k8s.StaticPod based on control plane configuration.
func (*ControlPlaneStaticPodController) Inputs ¶ added in v0.10.0
func (ctrl *ControlPlaneStaticPodController) Inputs() []controller.Input
Inputs implements controller.Controller interface.
func (*ControlPlaneStaticPodController) Name ¶
func (ctrl *ControlPlaneStaticPodController) Name() string
Name implements controller.Controller interface.
func (*ControlPlaneStaticPodController) Outputs ¶ added in v0.10.0
func (ctrl *ControlPlaneStaticPodController) Outputs() []controller.Output
Outputs implements controller.Controller interface.
func (*ControlPlaneStaticPodController) Run ¶
func (ctrl *ControlPlaneStaticPodController) Run(ctx context.Context, r controller.Runtime, logger *zap.Logger) error
Run implements controller.Controller interface.
type EndpointController ¶ added in v0.11.0
type EndpointController struct{}
EndpointController looks up control plane endpoints.
func (*EndpointController) Inputs ¶ added in v0.11.0
func (ctrl *EndpointController) Inputs() []controller.Input
Inputs implements controller.Controller interface.
func (*EndpointController) Name ¶ added in v0.11.0
func (ctrl *EndpointController) Name() string
Name implements controller.Controller interface.
func (*EndpointController) Outputs ¶ added in v0.11.0
func (ctrl *EndpointController) Outputs() []controller.Output
Outputs implements controller.Controller interface.
func (*EndpointController) Run ¶ added in v0.11.0
func (ctrl *EndpointController) Run(ctx context.Context, r controller.Runtime, logger *zap.Logger) error
Run implements controller.Controller interface.
type ExtraManifestController ¶
type ExtraManifestController struct{}
ExtraManifestController renders manifests based on templates and config/secrets.
func (*ExtraManifestController) Inputs ¶ added in v0.10.0
func (ctrl *ExtraManifestController) Inputs() []controller.Input
Inputs implements controller.Controller interface.
func (*ExtraManifestController) Name ¶
func (ctrl *ExtraManifestController) Name() string
Name implements controller.Controller interface.
func (*ExtraManifestController) Outputs ¶ added in v0.10.0
func (ctrl *ExtraManifestController) Outputs() []controller.Output
Outputs implements controller.Controller interface.
func (*ExtraManifestController) Run ¶
func (ctrl *ExtraManifestController) Run(ctx context.Context, r controller.Runtime, logger *zap.Logger) error
Run implements controller.Controller interface.
type KubeletConfigController ¶ added in v0.14.0
type KubeletConfigController struct{}
KubeletConfigController renders manifests based on templates and config/secrets.
func (*KubeletConfigController) Inputs ¶ added in v0.14.0
func (ctrl *KubeletConfigController) Inputs() []controller.Input
Inputs implements controller.Controller interface.
func (*KubeletConfigController) Name ¶ added in v0.14.0
func (ctrl *KubeletConfigController) Name() string
Name implements controller.Controller interface.
func (*KubeletConfigController) Outputs ¶ added in v0.14.0
func (ctrl *KubeletConfigController) Outputs() []controller.Output
Outputs implements controller.Controller interface.
func (*KubeletConfigController) Run ¶ added in v0.14.0
func (ctrl *KubeletConfigController) Run(ctx context.Context, r controller.Runtime, logger *zap.Logger) error
Run implements controller.Controller interface.
type KubeletServiceController ¶ added in v0.14.0
type KubeletServiceController struct {
V1Alpha1Services ServiceManager
}
KubeletServiceController renders kubelet configuration files and controls kubelet service lifecycle.
func (*KubeletServiceController) Inputs ¶ added in v0.14.0
func (ctrl *KubeletServiceController) Inputs() []controller.Input
Inputs implements controller.Controller interface.
func (*KubeletServiceController) Name ¶ added in v0.14.0
func (ctrl *KubeletServiceController) Name() string
Name implements controller.Controller interface.
func (*KubeletServiceController) Outputs ¶ added in v0.14.0
func (ctrl *KubeletServiceController) Outputs() []controller.Output
Outputs implements controller.Controller interface.
func (*KubeletServiceController) Run ¶ added in v0.14.0
func (ctrl *KubeletServiceController) Run(ctx context.Context, r controller.Runtime, logger *zap.Logger) error
Run implements controller.Controller interface.
type KubeletSpecController ¶ added in v0.14.0
type KubeletSpecController struct{}
KubeletSpecController renders manifests based on templates and config/secrets.
func (*KubeletSpecController) Inputs ¶ added in v0.14.0
func (ctrl *KubeletSpecController) Inputs() []controller.Input
Inputs implements controller.Controller interface.
func (*KubeletSpecController) Name ¶ added in v0.14.0
func (ctrl *KubeletSpecController) Name() string
Name implements controller.Controller interface.
func (*KubeletSpecController) Outputs ¶ added in v0.14.0
func (ctrl *KubeletSpecController) Outputs() []controller.Output
Outputs implements controller.Controller interface.
func (*KubeletSpecController) Run ¶ added in v0.14.0
func (ctrl *KubeletSpecController) Run(ctx context.Context, r controller.Runtime, logger *zap.Logger) error
Run implements controller.Controller interface.
type KubeletStaticPodController ¶
type KubeletStaticPodController struct{}
KubeletStaticPodController renders static pod definitions and manages k8s.StaticPodStatus.
func (*KubeletStaticPodController) Inputs ¶ added in v0.10.0
func (ctrl *KubeletStaticPodController) Inputs() []controller.Input
Inputs implements controller.Controller interface.
func (*KubeletStaticPodController) Name ¶
func (ctrl *KubeletStaticPodController) Name() string
Name implements controller.Controller interface.
func (*KubeletStaticPodController) Outputs ¶ added in v0.10.0
func (ctrl *KubeletStaticPodController) Outputs() []controller.Output
Outputs implements controller.Controller interface.
func (*KubeletStaticPodController) Run ¶
func (ctrl *KubeletStaticPodController) Run(ctx context.Context, r controller.Runtime, logger *zap.Logger) error
Run implements controller.Controller interface.
type ManifestApplyController ¶
type ManifestApplyController struct{}
ManifestApplyController applies manifests via control plane endpoint.
func (*ManifestApplyController) Inputs ¶ added in v0.10.0
func (ctrl *ManifestApplyController) Inputs() []controller.Input
Inputs implements controller.Controller interface.
func (*ManifestApplyController) Name ¶
func (ctrl *ManifestApplyController) Name() string
Name implements controller.Controller interface.
func (*ManifestApplyController) Outputs ¶ added in v0.10.0
func (ctrl *ManifestApplyController) Outputs() []controller.Output
Outputs implements controller.Controller interface.
func (*ManifestApplyController) Run ¶
func (ctrl *ManifestApplyController) Run(ctx context.Context, r controller.Runtime, logger *zap.Logger) error
Run implements controller.Controller interface.
type ManifestController ¶
type ManifestController struct{}
ManifestController renders manifests based on templates and config/secrets.
func (*ManifestController) Inputs ¶ added in v0.10.0
func (ctrl *ManifestController) Inputs() []controller.Input
Inputs implements controller.Controller interface.
func (*ManifestController) Name ¶
func (ctrl *ManifestController) Name() string
Name implements controller.Controller interface.
func (*ManifestController) Outputs ¶ added in v0.10.0
func (ctrl *ManifestController) Outputs() []controller.Output
Outputs implements controller.Controller interface.
func (*ManifestController) Run ¶
func (ctrl *ManifestController) Run(ctx context.Context, r controller.Runtime, logger *zap.Logger) error
Run implements controller.Controller interface.
type NodeIPConfigController ¶ added in v0.14.0
type NodeIPConfigController struct{}
NodeIPConfigController renders manifests based on templates and config/secrets.
func (*NodeIPConfigController) Inputs ¶ added in v0.14.0
func (ctrl *NodeIPConfigController) Inputs() []controller.Input
Inputs implements controller.Controller interface.
func (*NodeIPConfigController) Name ¶ added in v0.14.0
func (ctrl *NodeIPConfigController) Name() string
Name implements controller.Controller interface.
func (*NodeIPConfigController) Outputs ¶ added in v0.14.0
func (ctrl *NodeIPConfigController) Outputs() []controller.Output
Outputs implements controller.Controller interface.
func (*NodeIPConfigController) Run ¶ added in v0.14.0
func (ctrl *NodeIPConfigController) Run(ctx context.Context, r controller.Runtime, logger *zap.Logger) error
Run implements controller.Controller interface.
type NodeIPController ¶ added in v0.14.0
type NodeIPController struct{}
NodeIPController renders manifests based on templates and config/secrets.
func (*NodeIPController) Inputs ¶ added in v0.14.0
func (ctrl *NodeIPController) Inputs() []controller.Input
Inputs implements controller.Controller interface.
func (*NodeIPController) Name ¶ added in v0.14.0
func (ctrl *NodeIPController) Name() string
Name implements controller.Controller interface.
func (*NodeIPController) Outputs ¶ added in v0.14.0
func (ctrl *NodeIPController) Outputs() []controller.Output
Outputs implements controller.Controller interface.
func (*NodeIPController) Run ¶ added in v0.14.0
func (ctrl *NodeIPController) Run(ctx context.Context, r controller.Runtime, logger *zap.Logger) error
Run implements controller.Controller interface.
type NodenameController ¶ added in v0.11.0
type NodenameController struct{}
NodenameController renders manifests based on templates and config/secrets.
func (*NodenameController) Inputs ¶ added in v0.11.0
func (ctrl *NodenameController) Inputs() []controller.Input
Inputs implements controller.Controller interface.
func (*NodenameController) Name ¶ added in v0.11.0
func (ctrl *NodenameController) Name() string
Name implements controller.Controller interface.
func (*NodenameController) Outputs ¶ added in v0.11.0
func (ctrl *NodenameController) Outputs() []controller.Output
Outputs implements controller.Controller interface.
func (*NodenameController) Run ¶ added in v0.11.0
func (ctrl *NodenameController) Run(ctx context.Context, r controller.Runtime, logger *zap.Logger) error
Run implements controller.Controller interface.
type RenderSecretsStaticPodController ¶
type RenderSecretsStaticPodController struct{}
RenderSecretsStaticPodController manages k8s.SecretsReady and renders secrets from secrets.Kubernetes.
func (*RenderSecretsStaticPodController) Inputs ¶ added in v0.10.0
func (ctrl *RenderSecretsStaticPodController) Inputs() []controller.Input
Inputs implements controller.Controller interface.
func (*RenderSecretsStaticPodController) Name ¶
func (ctrl *RenderSecretsStaticPodController) Name() string
Name implements controller.Controller interface.
func (*RenderSecretsStaticPodController) Outputs ¶ added in v0.10.0
func (ctrl *RenderSecretsStaticPodController) Outputs() []controller.Output
Outputs implements controller.Controller interface.
func (*RenderSecretsStaticPodController) Run ¶
func (ctrl *RenderSecretsStaticPodController) Run(ctx context.Context, r controller.Runtime, logger *zap.Logger) error
Run implements controller.Controller interface.
type ServiceManager ¶ added in v0.14.0
type ServiceManager interface { IsRunning(id string) (system.Service, bool, error) Load(services ...system.Service) []string Stop(ctx context.Context, serviceIDs ...string) (err error) Start(serviceIDs ...string) error }
ServiceManager is the interface to the v1alpha1 services subsystems.