Documentation ¶
Overview ¶
Package files provides controllers which manage file resources.
Index ¶
- type CRIConfigPartsController
- type CRIRegistryConfigController
- func (ctrl *CRIRegistryConfigController) Inputs() []controller.Input
- func (ctrl *CRIRegistryConfigController) Name() string
- func (ctrl *CRIRegistryConfigController) Outputs() []controller.Output
- func (ctrl *CRIRegistryConfigController) Run(ctx context.Context, r controller.Runtime, logger *zap.Logger) error
- type EtcFileController
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CRIConfigPartsController ¶ added in v1.0.0
type CRIConfigPartsController struct { // Path to /etc/cri/conf.d directory. CRIConfdPath string }
CRIConfigPartsController merges parts of the CRI config from /etc/cri/conf.d/*.part into final /etc/cri/conf.d/cri.toml.
func (*CRIConfigPartsController) Inputs ¶ added in v1.0.0
func (ctrl *CRIConfigPartsController) Inputs() []controller.Input
Inputs implements controller.Controller interface.
func (*CRIConfigPartsController) Name ¶ added in v1.0.0
func (ctrl *CRIConfigPartsController) Name() string
Name implements controller.Controller interface.
func (*CRIConfigPartsController) Outputs ¶ added in v1.0.0
func (ctrl *CRIConfigPartsController) Outputs() []controller.Output
Outputs implements controller.Controller interface.
func (*CRIConfigPartsController) Run ¶ added in v1.0.0
func (ctrl *CRIConfigPartsController) Run(ctx context.Context, r controller.Runtime, logger *zap.Logger) error
Run implements controller.Controller interface.
type CRIRegistryConfigController ¶ added in v1.0.0
type CRIRegistryConfigController struct {
// contains filtered or unexported fields
}
CRIRegistryConfigController generates parts of the CRI config for registry configuration.
func (*CRIRegistryConfigController) Inputs ¶ added in v1.0.0
func (ctrl *CRIRegistryConfigController) Inputs() []controller.Input
Inputs implements controller.Controller interface.
func (*CRIRegistryConfigController) Name ¶ added in v1.0.0
func (ctrl *CRIRegistryConfigController) Name() string
Name implements controller.Controller interface.
func (*CRIRegistryConfigController) Outputs ¶ added in v1.0.0
func (ctrl *CRIRegistryConfigController) Outputs() []controller.Output
Outputs implements controller.Controller interface.
func (*CRIRegistryConfigController) Run ¶ added in v1.0.0
func (ctrl *CRIRegistryConfigController) Run(ctx context.Context, r controller.Runtime, logger *zap.Logger) error
Run implements controller.Controller interface.
type EtcFileController ¶
type EtcFileController struct { // Path to /etc directory, read-only filesystem. EtcPath string // Shadow path where actual file will be created and bind mounted into EtcdPath. ShadowPath string // contains filtered or unexported fields }
EtcFileController watches EtcFileSpecs, creates/updates files.
func (*EtcFileController) Inputs ¶
func (ctrl *EtcFileController) Inputs() []controller.Input
Inputs implements controller.Controller interface.
func (*EtcFileController) Name ¶
func (ctrl *EtcFileController) Name() string
Name implements controller.Controller interface.
func (*EtcFileController) Outputs ¶
func (ctrl *EtcFileController) Outputs() []controller.Output
Outputs implements controller.Controller interface.
func (*EtcFileController) Run ¶
func (ctrl *EtcFileController) Run(ctx context.Context, r controller.Runtime, logger *zap.Logger) error
Run implements controller.Controller interface.