Documentation ¶
Index ¶
- func GetBasicVolume(configMapName, volumeName string) corev1.Volume
- func GetVolumeFromConfigMap(configMap *apicommonv1.ConfigMapConfig, ...) corev1.Volume
- func GetVolumeFromCustomConfig(customConfig v2alpha1.CustomConfig, defaultConfigMapName, volumeName string) corev1.Volume
- func GetVolumeFromCustomConfigSpec(customConfig *apicommonv1.CustomConfig, ...) corev1.Volume
- func GetVolumeFromMultiCustomConfig(multiCustomConfig *v2alpha1.MultiCustomConfig, ...) corev1.Volume
- func GetVolumeMountFromCustomConfigSpec(cfcm *apicommonv1.CustomConfig, volumeName, volumePath, defaultSubPath string) corev1.VolumeMount
- func GetVolumeMountWithSubPath(volumeName, volumePath, subPath string) corev1.VolumeMount
- func GetVolumes(volumeName, hostPath, mountPath string, readOnly bool) (corev1.Volume, corev1.VolumeMount)
- func GetVolumesEmptyDir(volumeName, mountPath string, readOnly bool) (corev1.Volume, corev1.VolumeMount)
- func GetVolumesFromConfigMap(configMap *apicommonv1.ConfigMapConfig, ...) (corev1.Volume, corev1.VolumeMount)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBasicVolume ¶
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 *apicommonv1.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 GetVolumeFromCustomConfigSpec ¶
func GetVolumeFromCustomConfigSpec(customConfig *apicommonv1.CustomConfig, volumeName, defaultConfigMapName string) corev1.Volume
GetVolumeFromCustomConfigSpec return a corev1.Volume corresponding to a CustomConfig. This is only used in v1alpha1.
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 GetVolumeMountFromCustomConfigSpec ¶
func GetVolumeMountFromCustomConfigSpec(cfcm *apicommonv1.CustomConfig, volumeName, volumePath, defaultSubPath string) corev1.VolumeMount
GetVolumeMountFromCustomConfigSpec return a corev1.Volume corresponding to a common CustomConfig. It is only used in v1alpha1.
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 *apicommonv1.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.