package userns
import "k8s.io/kubernetes/pkg/kubelet/userns"
Index ¶
- type UsernsManager
- func MakeUserNsManager(kl userNsPodsManager) (*UsernsManager, error)
- func (m *UsernsManager) CleanupOrphanedPodUsernsAllocations(pods []*v1.Pod, runningPods []*kubecontainer.Pod) error
- func (m *UsernsManager) GetOrCreateUserNamespaceMappings(pod *v1.Pod) (*runtimeapi.UserNamespace, error)
- func (m *UsernsManager) Release(podUID types.UID)
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) (*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.
Source Files ¶
userns_manager.go
- Version
- v1.28.6
- Published
- Jan 17, 2024
- Platform
- js/wasm
- Imports
- 17 packages
- Last checked
- 12 seconds ago –
Tools for package owners.