Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct {
K8s kubernetes.Interface
NodeName string
PluginName string
PluginIdx string
KubeletPodsDir string
HostPrefixDir string
}
Options configures the Plugin.
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
Plugin is an NRI plugin that applies cgroupv2 io.max limits to containers whose CSI volumes carry IO limit metadata in their VolumeAttachment.
func (*Plugin) CreateContainer ¶
func (p *Plugin) CreateContainer(ctx context.Context, pod *api.PodSandbox, container *api.Container) (*api.ContainerAdjustment, []*api.ContainerUpdate, error)
CreateContainer implements stub.CreateContainerInterface.
The returned ContainerAdjustment carries io.max entries in the cgroupv2 Unified map; the runtime writes them to the container cgroup at creation time, so we never touch the cgroup filesystem directly.
Click to show internal directories.
Click to hide internal directories.