volume

package
v1.11.0-rc.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBasicVolume

func GetBasicVolume(configMapName, volumeName string) corev1.Volume

GetBasicVolume returns a basic Volume from a config map name and volume name. It is used in features and overrides.

func GetVolumeFromConfigMap

func GetVolumeFromConfigMap(configMap *v2alpha1.ConfigMapConfig, defaultConfigMapName, volumeName string) corev1.Volume

GetVolumeFromConfigMap returns a Volume from a common ConfigMapConfig.

func GetVolumeFromCustomConfig

func GetVolumeFromCustomConfig(customConfig v2alpha1.CustomConfig, defaultConfigMapName, volumeName string) corev1.Volume

GetVolumeFromCustomConfig returns a Volume from a v2alpha1 CustomConfig. It is used for agent-level configuration overrides in v2alpha1.

func GetVolumeFromMultiCustomConfig

func GetVolumeFromMultiCustomConfig(multiCustomConfig *v2alpha1.MultiCustomConfig, volumeName, configMapName string) corev1.Volume

GetVolumeFromMultiCustomConfig returns a Volume from a v2alpha1 MultiCustomConfig. It is used for Extra Checksd and Extra Confd.

func GetVolumeMountWithSubPath

func GetVolumeMountWithSubPath(volumeName, volumePath, subPath string) corev1.VolumeMount

GetVolumeMountWithSubPath return a corev1.VolumeMount with a subPath. The subPath is needed in situations when a specific file needs to be mounted without affecting the rest of the directory. This is used in features and overrides.

func GetVolumes

func GetVolumes(volumeName, hostPath, mountPath string, readOnly bool) (corev1.Volume, corev1.VolumeMount)

GetVolumes creates a corev1.Volume and corev1.VolumeMount corresponding to a host path.

func GetVolumesEmptyDir

func GetVolumesEmptyDir(volumeName, mountPath string, readOnly bool) (corev1.Volume, corev1.VolumeMount)

GetVolumesEmptyDir creates a corev1.Volume (with an empty dir) and corev1.VolumeMount.

func GetVolumesFromConfigMap

func GetVolumesFromConfigMap(configMap *v2alpha1.ConfigMapConfig, volumeName, defaultCMName, configFolder string) (corev1.Volume, corev1.VolumeMount)

GetVolumesFromConfigMap returns a Volume and VolumeMount from a ConfigMapConfig. It is only used in the features that are within the conf.d/ file path

Types

This section is empty.

Jump to

Keyboard shortcuts

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