Documentation ¶
Index ¶
- func ComponentExists(client kclient.Client, name string) bool
- func ConvertEnvs(vars []common.DockerimageEnv) []corev1.EnvVar
- func GetContainers(devfileObj devfile.DevfileObj) []corev1.Container
- func GetResourceReqs(comp common.DevfileComponent) corev1.ResourceRequirements
- func GetVolumes(devfileObj devfile.DevfileObj) map[string][]adaptersCommon.DevfileVolume
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComponentExists ¶
ComponentExists checks whether a deployment by the given name exists
func ConvertEnvs ¶
func ConvertEnvs(vars []common.DockerimageEnv) []corev1.EnvVar
ConvertEnvs converts environment variables from the devfile structure to kubernetes structure
func GetContainers ¶
func GetContainers(devfileObj devfile.DevfileObj) []corev1.Container
GetContainers iterates through the components in the devfile and returns a slice of the corresponding containers
func GetResourceReqs ¶
func GetResourceReqs(comp common.DevfileComponent) corev1.ResourceRequirements
GetResourceReqs creates a kubernetes ResourceRequirements object based on resource requirements set in the devfile
func GetVolumes ¶
func GetVolumes(devfileObj devfile.DevfileObj) map[string][]adaptersCommon.DevfileVolume
GetVolumes iterates through the components in the devfile and returns a map of component alias to the devfile volumes
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.