annotations

package
v0.0.0-...-167a106 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

View Source
const (
	AnnotKeyUsrspConfigData = "userspace/configuration-data"
	AnnotKeyUsrspMappedDir  = "userspace/mapped-dir"

	DefaultBaseCNIDir  = "/var/lib/cni/usrspcni"
	DefaultLocalCNIDir = "/var/lib/cni/usrspcni/data"

	DefaultHostkubeletPodBaseDir  = "/var/lib/kubelet/pods/"
	DefaultHostEmptyDirVolumeName = "volumes/kubernetes.io~empty-dir/"
)

List of Annotations supported in the podSpec

Variables

This section is empty.

Functions

func GetFileAnnotationConfigData

func GetFileAnnotationConfigData(annotFile string) ([]*types.ConfigurationData, error)

func GetFileAnnotationMappedDir

func GetFileAnnotationMappedDir(annotFile string) (string, error)

func GetPodVolumeMountHostSharedDir

func GetPodVolumeMountHostSharedDir(pod *v1.Pod) (string, error)

func WritePodAnnotation

func WritePodAnnotation(kubeClient kubernetes.Interface,
	pod *v1.Pod,
	configData *types.ConfigurationData) (*v1.Pod, error)

Types

type NoKubeClientProvidedError

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

func (*NoKubeClientProvidedError) Error

func (e *NoKubeClientProvidedError) Error() string

type NoPodProvidedError

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

func (*NoPodProvidedError) Error

func (e *NoPodProvidedError) Error() string

type NoSharedDirProvidedError

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

Errors returned from this module

func (*NoSharedDirProvidedError) Error

func (e *NoSharedDirProvidedError) Error() string

Jump to

Keyboard shortcuts

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