Documentation ¶
Overview ¶
Package kuberuntime contains an implementation of kubecontainer.Runtime using the interface in pkg/kubelet/v1.
Index ¶
- Variables
- func BuildContainerLogsDirectory(podUID types.UID, containerName string) string
- func NewContainerGC(client internalapi.RuntimeService, podStateProvider podStateProvider, ...) *containerGC
- func NewFakeKubeRuntimeManager(runtimeService internalapi.RuntimeService, ...) (*kubeGenericRuntimeManager, error)
- type KubeGenericRuntime
- type LegacyLogProvider
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrCreateContainerConfig = errors.New("CreateContainerConfigError") ErrCreateContainer = errors.New("CreateContainerError") ErrPreStartHook = errors.New("PreStartHookError") ErrPostStartHook = errors.New("PostStartHookError") )
View Source
var ( // ErrVersionNotSupported is returned when the api version of runtime interface is not supported ErrVersionNotSupported = errors.New("Runtime api version is not supported") )
Functions ¶
func BuildContainerLogsDirectory ¶
BuildContainerLogsDirectory builds absolute log directory path for a container in pod.
func NewContainerGC ¶
func NewContainerGC(client internalapi.RuntimeService, podStateProvider podStateProvider, manager *kubeGenericRuntimeManager) *containerGC
NewContainerGC creates a new containerGC.
func NewFakeKubeRuntimeManager ¶
func NewFakeKubeRuntimeManager(runtimeService internalapi.RuntimeService, imageService internalapi.ImageManagerService, machineInfo *cadvisorapi.MachineInfo, osInterface kubecontainer.OSInterface, runtimeHelper kubecontainer.RuntimeHelper, keyring credentialprovider.DockerKeyring) (*kubeGenericRuntimeManager, error)
Types ¶
type KubeGenericRuntime ¶
type KubeGenericRuntime interface { kubecontainer.Runtime kubecontainer.StreamingRuntime kubecontainer.ContainerCommandRunner }
func NewKubeGenericRuntimeManager ¶
func NewKubeGenericRuntimeManager( recorder record.EventRecorder, livenessManager proberesults.Manager, seccompProfileRoot string, containerRefManager *kubecontainer.RefManager, machineInfo *cadvisorapi.MachineInfo, podStateProvider podStateProvider, osInterface kubecontainer.OSInterface, runtimeHelper kubecontainer.RuntimeHelper, httpClient types.HttpGetter, imageBackOff *flowcontrol.Backoff, serializeImagePulls bool, imagePullQPS float32, imagePullBurst int, cpuCFSQuota bool, cpuCFSQuotaPeriod metav1.Duration, runtimeService internalapi.RuntimeService, imageService internalapi.ImageManagerService, internalLifecycle cm.InternalContainerLifecycle, legacyLogProvider LegacyLogProvider, runtimeClassManager *runtimeclass.Manager, ) (KubeGenericRuntime, error)
NewKubeGenericRuntimeManager creates a new kubeGenericRuntimeManager
type LegacyLogProvider ¶
type LegacyLogProvider interface { // Get the last few lines of the logs for a specific container. GetContainerLogTail(uid kubetypes.UID, name, namespace string, containerID kubecontainer.ContainerID) (string, error) }
LegacyLogProvider gives the ability to use unsupported docker log drivers (e.g. journald)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.