component

package
v4.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2025 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultComponentWaitTimeOut30Minutes = time.Second * 1800

DefaultComponentWaitTimeOut30Minutes is the default timeout. Since the components are actual applied unordered we use a 30 Minutes timeout as default.

Functions

func CreateComponentLabelSelector

func CreateComponentLabelSelector(name string) string

func NewInstallComponentStep

func NewInstallComponentStep(client componentsClient, componentName string, attributes appcontext.ComponentAttributes, namespace string) *installComponentStep

NewInstallComponentStep creates a new step responsible to apply a component resource to the cluster, and, thus, starting the component installation.

func NewInstallHelmChartStep

func NewInstallHelmChartStep(namespace string, chartUrl string, helmClient helmClient) *installHelmChartStep

NewInstallHelmChartStep creates new instance of a k8s component chart

func NewWaitForComponentStep

func NewWaitForComponentStep(client componentsClient, componentName string, namespace string, timeout time.Duration) *waitForComponentStep

NewWaitForComponentStep creates a new setup step which on waits for a component with a specific label

func SplitChartString

func SplitChartString(chart string) (string, string, error)

func SplitHelmNamespaceFromChartString

func SplitHelmNamespaceFromChartString(chartString string) (string, string)

func TimeoutInSeconds

func TimeoutInSeconds() time.Duration

TimeoutInSeconds returns either DefaultComponentWaitTimeOut30Minutes or a positive integer if set as EnvVar COMPONENT_TIMEOUT_SECS. See also componentTimeOutInSecondsEnvVar

Types

This section is empty.

Jump to

Keyboard shortcuts

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