util

package
v1.32.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IpcNamespaceForPod

func IpcNamespaceForPod(pod *v1.Pod) runtimeapi.NamespaceMode

IpcNamespaceForPod returns the runtimeapi.NamespaceMode for the IPC namespace of a pod

func NamespacesForPod

func NamespacesForPod(pod *v1.Pod, runtimeHelper kubecontainer.RuntimeHelper, rcManager RuntimeHandlerResolver) (*runtimeapi.NamespaceOption, error)

namespacesForPod returns the runtimeapi.NamespaceOption for a given pod. An empty or nil pod can be used to get the namespace defaults for v1.Pod.

func NetworkNamespaceForPod

func NetworkNamespaceForPod(pod *v1.Pod) runtimeapi.NamespaceMode

NetworkNamespaceForPod returns the runtimeapi.NamespaceMode for the network namespace of a pod

func PidNamespaceForPod

func PidNamespaceForPod(pod *v1.Pod) runtimeapi.NamespaceMode

PidNamespaceForPod returns the runtimeapi.NamespaceMode for the PID namespace of a pod

func PodSandboxChanged

func PodSandboxChanged(pod *v1.Pod, podStatus *kubecontainer.PodStatus) (bool, uint32, string)

PodSandboxChanged checks whether the spec of the pod is changed and returns (changed, new attempt, original sandboxID if exist).

Types

type RuntimeHandlerResolver added in v1.30.0

type RuntimeHandlerResolver interface {
	LookupRuntimeHandler(runtimeClassName *string) (string, error)
}

LookupRuntimeHandler is implemented by *runtimeclass.Manager.

Jump to

Keyboard shortcuts

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