userns

package
v1.31.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnabledUserNamespacesSupport added in v1.31.0

func EnabledUserNamespacesSupport() bool

Types

type UsernsManager

type UsernsManager struct {
	// contains filtered or unexported fields
}

func MakeUserNsManager

func MakeUserNsManager(kl userNsPodsManager) (*UsernsManager, error)

func (*UsernsManager) CleanupOrphanedPodUsernsAllocations

func (m *UsernsManager) CleanupOrphanedPodUsernsAllocations(pods []*v1.Pod, runningPods []*kubecontainer.Pod) error

CleanupOrphanedPodUsernsAllocations reconciliates the state of user namespace allocations with the pods actually running. It frees any user namespace allocation for orphaned pods.

func (*UsernsManager) GetOrCreateUserNamespaceMappings

func (m *UsernsManager) GetOrCreateUserNamespaceMappings(pod *v1.Pod, runtimeHandler string) (*runtimeapi.UserNamespace, error)

GetOrCreateUserNamespaceMappings returns the configuration for the sandbox user namespace

func (*UsernsManager) Release

func (m *UsernsManager) Release(podUID types.UID)

Release releases the user namespace allocated to the specified pod.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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