Documentation
¶
Overview ¶
Package cri resolves the CRI endpoint KubeSolo talks to: either a host-managed container runtime named with --container-runtime-endpoint, or KubeSolo's own embedded containerd.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Endpoint ¶
type Endpoint struct {
// URL is the endpoint in unix:// form, as passed to the kubelet and the CRI client.
URL string
// SocketPath is the filesystem path of URL, for existence checks.
SocketPath string
// External is true when the endpoint belongs to a host-managed runtime
// rather than the containerd KubeSolo starts itself.
External bool
}
Endpoint is the resolved CRI endpoint.
func Resolve ¶
Resolve parses a --container-runtime-endpoint value. A bare path is accepted and given the unix:// scheme, since runtime documentation commonly quotes it that way. An empty value yields the zero Endpoint: the caller then supplies the embedded containerd endpoint with Embedded, which depends on --path.
Click to show internal directories.
Click to hide internal directories.