Documentation ¶
Overview ¶
Package cri provides CRI related controllers.
Index ¶
- Constants
- type ImageCacheConfigController
- func (ctrl *ImageCacheConfigController) Inputs() []controller.Input
- func (ctrl *ImageCacheConfigController) Name() string
- func (ctrl *ImageCacheConfigController) Outputs() []controller.Output
- func (ctrl *ImageCacheConfigController) Run(ctx context.Context, r controller.Runtime, logger *zap.Logger) error
- type RegistriesConfigController
- type RuncMemFDBindController
- type SeccompProfileController
- type SeccompProfileFileController
- func (ctrl *SeccompProfileFileController) Inputs() []controller.Input
- func (ctrl *SeccompProfileFileController) Name() string
- func (ctrl *SeccompProfileFileController) Outputs() []controller.Output
- func (ctrl *SeccompProfileFileController) Run(ctx context.Context, r controller.Runtime, _ *zap.Logger) error
- type ServiceManager
Constants ¶
const ( VolumeImageCacheISO = "IMAGECACHE-ISO" VolumeImageCacheDISK = constants.ImageCachePartitionLabel MinImageCacheSize = 500 * 1024 * 1024 // 500MB MaxImageCacheSize = 1 * 1024 * 1024 * 1024 // 1GB RegistrydServiceID = services.RegistryID )
Volume configuration constants.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImageCacheConfigController ¶
type ImageCacheConfigController struct { V1Alpha1ServiceManager ServiceManager VolumeMounter func(label string, opts ...mountv2.NewPointOption) error DisableCacheCopy bool // used for testing // contains filtered or unexported fields }
ImageCacheConfigController manages configures Image Cache.
func (*ImageCacheConfigController) Inputs ¶
func (ctrl *ImageCacheConfigController) Inputs() []controller.Input
Inputs implements controller.StatsController interface.
func (*ImageCacheConfigController) Name ¶
func (ctrl *ImageCacheConfigController) Name() string
Name implements controller.StatsController interface.
func (*ImageCacheConfigController) Outputs ¶
func (ctrl *ImageCacheConfigController) Outputs() []controller.Output
Outputs implements controller.StatsController interface.
func (*ImageCacheConfigController) Run ¶
func (ctrl *ImageCacheConfigController) Run(ctx context.Context, r controller.Runtime, logger *zap.Logger) error
Run implements controller.StatsController interface.
type RegistriesConfigController ¶
type RegistriesConfigController = transform.Controller[*config.MachineConfig, *cri.RegistriesConfig]
RegistriesConfigController watches v1alpha1.Config, updates registry.RegistriesConfig.
func NewRegistriesConfigController ¶
func NewRegistriesConfigController() *RegistriesConfigController
NewRegistriesConfigController creates new config controller.
type RuncMemFDBindController ¶ added in v1.8.0
type RuncMemFDBindController struct {
V1Alpha1Mode runtimetalos.Mode
}
RuncMemFDBindController created a locked memfd bind for the runc binary, so that it can be used instead of copying the actual runc binary everytime.
func (*RuncMemFDBindController) Inputs ¶ added in v1.8.0
func (ctrl *RuncMemFDBindController) Inputs() []controller.Input
Inputs implements controller.Controller interface.
func (*RuncMemFDBindController) Name ¶ added in v1.8.0
func (ctrl *RuncMemFDBindController) Name() string
Name implements controller.Controller interface.
func (*RuncMemFDBindController) Outputs ¶ added in v1.8.0
func (ctrl *RuncMemFDBindController) Outputs() []controller.Output
Outputs implements controller.Controller interface.
func (*RuncMemFDBindController) Run ¶ added in v1.8.0
func (ctrl *RuncMemFDBindController) Run(ctx context.Context, r controller.Runtime, logger *zap.Logger) error
Run implements controller.Controller interface.
type SeccompProfileController ¶
type SeccompProfileController struct{}
SeccompProfileController manages SeccompProfiles.
func (*SeccompProfileController) Inputs ¶
func (ctrl *SeccompProfileController) Inputs() []controller.Input
Inputs implements controller.StatsController interface.
func (*SeccompProfileController) Name ¶
func (ctrl *SeccompProfileController) Name() string
Name implements controller.StatsController interface.
func (*SeccompProfileController) Outputs ¶
func (ctrl *SeccompProfileController) Outputs() []controller.Output
Outputs implements controller.StatsController interface.
func (*SeccompProfileController) Run ¶
func (ctrl *SeccompProfileController) Run(ctx context.Context, r controller.Runtime, _ *zap.Logger) error
Run implements controller.StatsController interface.
type SeccompProfileFileController ¶
type SeccompProfileFileController struct { V1Alpha1Mode runtimetalos.Mode SeccompProfilesDirectory string }
SeccompProfileFileController manages the Seccomp Profiles on the host.
func (*SeccompProfileFileController) Inputs ¶
func (ctrl *SeccompProfileFileController) Inputs() []controller.Input
Inputs implements controller.StatsController interface.
func (*SeccompProfileFileController) Name ¶
func (ctrl *SeccompProfileFileController) Name() string
Name implements controller.StatsController interface.
func (*SeccompProfileFileController) Outputs ¶
func (ctrl *SeccompProfileFileController) Outputs() []controller.Output
Outputs implements controller.StatsController interface.
func (*SeccompProfileFileController) Run ¶
func (ctrl *SeccompProfileFileController) Run(ctx context.Context, r controller.Runtime, _ *zap.Logger) error
Run implements controller.StatsController interface.