install

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package install ...

Index

Constants

View Source
const (

	// SystemNamespace is the namespace where everest is installed.
	SystemNamespace = "everest-system"
	// MonitoringNamespace is the namespace where the monitoring stack is installed.
	MonitoringNamespace = "everest-monitoring"
	// EverestMonitoringNamespaceEnvVar is the name of the environment variable that holds the monitoring namespace.
	EverestMonitoringNamespaceEnvVar = "MONITORING_NAMESPACE"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v0.5.0

type Config struct {
	// Namespaces defines comma-separated list of namespaces that everest can operate in.
	Namespaces string `mapstructure:"namespaces"`
	// SkipWizard skips wizard during installation.
	SkipWizard bool `mapstructure:"skip-wizard"`
	// KubeconfigPath is a path to a kubeconfig
	KubeconfigPath string `mapstructure:"kubeconfig"`

	Operator OperatorConfig
}

Config stores configuration for the operators.

func (Config) NamespacesList added in v0.8.0

func (c Config) NamespacesList() []string

NamespacesList returns list of the namespaces that everest can operate in.

type Install added in v0.5.0

type Install struct {
	// contains filtered or unexported fields
}

Install implements the main logic for commands.

func NewInstall added in v0.5.0

func NewInstall(c Config, l *zap.SugaredLogger) (*Install, error)

NewInstall returns a new Install struct.

func (*Install) Run added in v0.5.0

func (o *Install) Run(ctx context.Context) error

Run runs the operators installation process.

type OperatorConfig

type OperatorConfig struct {
	// PG stores if PostgresSQL shall be installed.
	PG bool `mapstructure:"postgresql"`
	// PSMDB stores if MongoDB shall be installed.
	PSMDB bool `mapstructure:"mongodb"`
	// PXC stores if XtraDB Cluster shall be installed.
	PXC bool `mapstructure:"xtradb-cluster"`
}

OperatorConfig identifies which operators shall be installed.

Jump to

Keyboard shortcuts

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