tide

package
v0.0.0-...-c6cf6ad Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2021 License: Apache-2.0 Imports: 37 Imported by: 0

Documentation

Overview

Package tide provides the utilities for installing and removing the wave operator and all of its dependencies.

The WaveEnvironment custom resource contains metadata about the installation of wave-operator that is used at time of removal.

Index

Constants

View Source
const (
	WaveOperatorDeployment = "wave-operator"
	WaveOperatorChart      = "wave-operator"
	WaveOperatorRepository = "https://charts.spot.io"
	WaveOperatorVersion    = "" // empty string indicates latest chart version
	WaveOperatorValues     = ""

	CertManagerChart      = "cert-manager"
	CertManagerRepository = "https://charts.jetstack.io"
	CertManagerVersion    = "v1.3.1"
	CertManagerValues     = "installCRDs: true"

	ConfigIsOceanClusterProvisioned = "isOceanClusterProvisioned"
	ConfigIsK8sProvisioned          = "isK8sProvisioned"
	ConfigInitialWaveOperatorImage  = "initialWaveOperatorImage"
)
View Source
const AnnotationPrefix = "tide.wave.spot.io"

Variables

This section is empty.

Functions

This section is empty.

Types

type Environment

type Environment interface {
	EnvironmentGetter
	EnvironmentSaver
}

type EnvironmentGetter

type EnvironmentGetter interface {
	GetConfiguration() (*v1alpha1.WaveEnvironment, error)
}

type EnvironmentSaver

type EnvironmentSaver interface {
	SaveConfiguration(env *v1alpha1.WaveEnvironment) error
}

type FakeEnvironment

type FakeEnvironment struct {
	Env v1alpha1.WaveEnvironment
}

func (*FakeEnvironment) GetConfiguration

func (f *FakeEnvironment) GetConfiguration() (*v1alpha1.WaveEnvironment, error)

func (*FakeEnvironment) SaveConfiguration

func (f *FakeEnvironment) SaveConfiguration(env *v1alpha1.WaveEnvironment) error

type Manager

type Manager interface {
	EnvironmentGetter
	SetWaveInstallSpec(spec install.InstallSpec) error

	SetConfiguration(config map[string]interface{}) (*v1alpha1.WaveEnvironment, error)
	DeleteConfiguration(deleteEnvironmentCRD bool) error
	Create(env v1alpha1.WaveEnvironment) error
	Delete() error

	CreateTideRBAC() error
	DeleteTideRBAC() error
}

func NewManager

func NewManager(log logr.Logger) (Manager, error)

type Upgrade

type Upgrade struct {
	UpgradedAt time.Time           `json:"upgradedAt"`
	Version    string              `json:"version"`
	Spec       install.InstallSpec `json:"spec"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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