component

package
v0.16.2 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultComponentWaitTimeOut5Minutes = time.Second * 300

DefaultComponentWaitTimeOut5Minutes contains the default period of 5 minutes to wait for components to get installed

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

func NewComponentOperatorInstallerStep(setupCtx *appcontext.SetupContext, helmClient helmClient) *componentOperatorInstallerStep

NewComponentOperatorInstallerStep creates new instance of the component-operator

func NewEtcdClientInstallerStep

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

NewEtcdClientInstallerStep creates step to install the etcd client.

func NewInstallComponentsStep added in v0.16.1

func NewInstallComponentsStep(client componentsClient, componentName string, componentNamespace string, version string, namespace string) *installComponentsStep

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

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, timeout time.Duration) *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

Types

This section is empty.

Jump to

Keyboard shortcuts

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