component

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultPodWaitTimeOut5Minutes = time.Second * 300

DefaultPodWaitTimeOut5Minutes contains the period when a

Functions

func GetNodeMasterFileContent

func GetNodeMasterFileContent(namespace string) string

GetNodeMasterFileContent returns the dns address for the node master file

func NewEtcdClientInstallerStep

func NewEtcdClientInstallerStep(clientSet kubernetes.Interface, setupCtx *ctx.SetupContext) *etcdClientInstallerStep

NewEtcdClientInstallerStep creates step to install the etcd client.

func NewInstallComponentStep added in v0.18.0

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 added in v0.18.0

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

NewInstallHelmChartStep creates new instance of a k8s component chart

func NewNodeMasterCreationStep

func NewNodeMasterCreationStep(clusterConfig *rest.Config, targetNamespace string) (*nodeMasterCreationStep, error)

NewNodeMasterCreationStep create a new setup step responsible to create a node master config map pointing to the current etcd server.

func NewWaitForComponentStep added in v0.16.1

func NewWaitForComponentStep(client componentsClient, labelSelector string, namespace string) *waitForComponentStep

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

func NewWaitForPodStep

func NewWaitForPodStep(client kubernetes.Interface, labelSelector string, namespace string, timeout time.Duration) *waitForPodStep

NewWaitForPodStep creates a new setup step which on waits for a pod with a specific label

func PodTimeoutInSeconds added in v0.9.0

func PodTimeoutInSeconds() time.Duration

PodTimeoutInSeconds returns either DefaultPodWaitTimeOut5Minutes or a positive integer if set as EnvVar POD_TIMEOUT_SECS. See also podTimeOutInSecondsEnvVar

func SplitChartString added in v0.18.0

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

func SplitHelmNamespaceFromChartString added in v0.18.0

func SplitHelmNamespaceFromChartString(chartString string) (string, string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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