lifecycle

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

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