Documentation ¶
Index ¶
- func AddPostStartLifecycleHooks(wksp *dw.DevWorkspaceTemplateSpec, containers []corev1.Container) error
- func AddPreStopLifecycleHooks(wksp *dw.DevWorkspaceTemplateSpec, containers []corev1.Container) error
- func GetInitContainers(devfile dw.DevWorkspaceTemplateSpecContent) (initContainers, mainComponents []dw.Component, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddPostStartLifecycleHooks ¶ added in v0.11.0
func AddPostStartLifecycleHooks(wksp *dw.DevWorkspaceTemplateSpec, containers []corev1.Container) error
func AddPreStopLifecycleHooks ¶ added in v0.24.0
func AddPreStopLifecycleHooks(wksp *dw.DevWorkspaceTemplateSpec, containers []corev1.Container) error
func GetInitContainers ¶
func GetInitContainers(devfile dw.DevWorkspaceTemplateSpecContent) (initContainers, mainComponents []dw.Component, err error)
GetInitContainers partitions the components in a devfile's flattened spec into initContainer and non-initContainer lists based off devfile lifecycle bindings and commands. Note that a component can appear in both lists, if e.g. it referred to in a preStart command and in a regular command.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.