...

Package utils

Overview ▾

func AddOdoMandatoryVolume

func AddOdoMandatoryVolume(containers []corev1.Container)

AddOdoMandatoryVolume adds the odo mandatory volumes to the containers

func AddOdoProjectVolume

func AddOdoProjectVolume(containers []corev1.Container)

AddOdoProjectVolume adds the odo project volume to the containers

func GetOdoContainerVolumes

func GetOdoContainerVolumes(sourcePVCName string) []corev1.Volume

GetOdoContainerVolumes returns the mandatory Kube volumes for an Odo component

func UpdateContainersEntrypointsIfNeeded

func UpdateContainersEntrypointsIfNeeded(
    devfileObj devfileParser.DevfileObj,
    containers []corev1.Container,
    devfileBuildCmd string,
    devfileRunCmd string,
    devfileDebugCmd string,
) ([]corev1.Container, error)

UpdateContainersEntrypointsIfNeeded updates the run components entrypoint if no entrypoint has been specified for the component in the devfile