package kuberuntime
import "k8s.io/kubernetes/pkg/kubelet/kuberuntime"
Package kuberuntime contains an implementation of kubecontainer.Runtime using the interface in pkg/kubelet/v1.
Index ¶
- Variables
- func BuildContainerLogsDirectory(podNamespace, podName string, podUID types.UID, containerName string) string
- func BuildPodLogsDirectory(podNamespace, podName string, podUID types.UID) string
- type KubeGenericRuntime
Variables ¶
var ( // ErrCreateContainerConfig - failed to create container config ErrCreateContainerConfig = errors.New("CreateContainerConfigError") // ErrPreCreateHook - failed to execute PreCreateHook ErrPreCreateHook = errors.New("PreCreateHookError") // ErrCreateContainer - failed to create container ErrCreateContainer = errors.New("CreateContainerError") // ErrPreStartHook - failed to execute PreStartHook ErrPreStartHook = errors.New("PreStartHookError") // ErrPostStartHook - failed to execute PostStartHook ErrPostStartHook = errors.New("PostStartHookError") )
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 ¶
func BuildContainerLogsDirectory(podNamespace, podName string, podUID types.UID, containerName string) string
BuildContainerLogsDirectory builds absolute log directory path for a container in pod.
func BuildPodLogsDirectory ¶
BuildPodLogsDirectory builds absolute log directory path for a pod sandbox.
Types ¶
type KubeGenericRuntime ¶
type KubeGenericRuntime interface { kubecontainer.Runtime kubecontainer.StreamingRuntime kubecontainer.CommandRunner }
KubeGenericRuntime is a interface contains interfaces for container runtime and command.
func NewKubeGenericRuntimeManager ¶
func NewKubeGenericRuntimeManager( recorder record.EventRecorder, livenessManager proberesults.Manager, readinessManager proberesults.Manager, startupManager proberesults.Manager, rootDirectory string, machineInfo *cadvisorapi.MachineInfo, podStateProvider podStateProvider, osInterface kubecontainer.OSInterface, runtimeHelper kubecontainer.RuntimeHelper, httpClient types.HTTPGetter, imageBackOff *flowcontrol.Backoff, serializeImagePulls bool, imagePullQPS float32, imagePullBurst int, imageCredentialProviderConfigFile string, imageCredentialProviderBinDir string, cpuCFSQuota bool, cpuCFSQuotaPeriod metav1.Duration, runtimeService internalapi.RuntimeService, imageService internalapi.ImageManagerService, internalLifecycle cm.InternalContainerLifecycle, logManager logs.ContainerLogManager, runtimeClassManager *runtimeclass.Manager, seccompDefault bool, memorySwapBehavior string, getNodeAllocatable func() v1.ResourceList, memoryThrottlingFactor float64, ) (KubeGenericRuntime, error)
NewKubeGenericRuntimeManager creates a new kubeGenericRuntimeManager
Source Files ¶
convert.go doc.go fake_kuberuntime_manager.go helpers.go helpers_unsupported.go instrumented_services.go kuberuntime_container.go kuberuntime_container_unsupported.go kuberuntime_gc.go kuberuntime_image.go kuberuntime_logs.go kuberuntime_manager.go kuberuntime_sandbox.go kuberuntime_sandbox_unsupported.go labels.go legacy.go security_context.go security_context_others.go
Directories ¶
Path | Synopsis |
---|---|
pkg/kubelet/kuberuntime/logs | |
pkg/kubelet/kuberuntime/util |
- Version
- v1.25.7-rc.0
- Published
- Jan 18, 2023
- Platform
- js/wasm
- Imports
- 67 packages
- Last checked
- 13 minutes ago –
Tools for package owners.