volumes

package
v1.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const PodVolPerms os.FileMode = 0755

Variables

This section is empty.

Functions

This section is empty.

Types

type Mount

type Mount struct {
	Name          string
	HostPath      string
	ContainerPath string
	ReadOnly      bool
}

Mount represents a universal mount point in a container. Note: This is a simplified version of the actual implementation and can be replaced by containerd's Mount type whenever (if) containerd is integrated into the project.

func CreateContainerMounts

func CreateContainerMounts(ctx context.Context, podVolRoot string, container corev1.Container, pod *corev1.Pod, serviceAccountToken string, configMaps map[string]*corev1.ConfigMap) ([]Mount, error)

CreateContainerMounts creates the mounts for a container based on the pod spec.

Jump to

Keyboard shortcuts

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