launcher

package
v2.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ExpectedContext     = "kind-kind"
	LauncherTestInstall = "test-ako"
	HelmRepoURL         = "https://mongodb.github.io/helm-charts"
	RepoRef             = "mongodb"
	OperatorChart       = "mongodb-atlas-operator"
	AtlasURI            = "https://cloud-qa.mongodb.com"
	// #nosec G101 -- This is just a name
	AtlasSecretName = "mongodb-atlas-operator-api-key"
)

Variables

View Source
var (
	NoWait = (*WaitConfig)(nil)
)

Functions

func MustLookupEnv

func MustLookupEnv(envvar string) string

MustLookupEnv sets the env var value given, or panics if the env var is not set

Types

type AtlasCredentials

type AtlasCredentials struct {
	OrgID      string
	PublicKey  string
	PrivateKey string
}

type Launcher

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

func NewFromEnv

func NewFromEnv(version string) *Launcher

NewFromEnv creates an operator Launcher using defaults and credentials from env vars

func NewLauncher

func NewLauncher(creds AtlasCredentials, version string, cmdOutput bool) *Launcher

NewLauncher creates a new operator Launcher

func (*Launcher) Cleanup

func (l *Launcher) Cleanup() error

Cleanup related Launcher test resources, merely wipe the kind cluster

func (*Launcher) Kubectl

func (l *Launcher) Kubectl(args ...string) (string, error)

func (*Launcher) Launch

func (l *Launcher) Launch(yml string, waitCfg *WaitConfig) error

Launch will try to launch the operator and apply the given YAML for it to handle

type WaitConfig

type WaitConfig struct {
	Condition string
	Target    string
	Timeout   time.Duration
}

func WaitReady

func WaitReady(target string, timeout time.Duration) *WaitConfig

Jump to

Keyboard shortcuts

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