cri

package
v0.0.0-...-8f3027a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2024 License: Apache-2.0, Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PauseContainerNetNS = "none"
)

Variables

This section is empty.

Functions

func IsDockershimV1

func IsDockershimV1(netns string) bool

IsDockershimV1 checks whether the CNI request is from the Dockershim baked into kubelet. In that case, Docker will use either "none" or "container:<container ID>" for the netns arg. If the request is from containerd then netns will be a hex string. We use the netns value to determine whether to use HNS V1 APIs (for Dockershim) or HNS V2 APIs (for containerd and other CRI-compliant runtimes).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL