migration

package
v0.0.0-...-1de4ae8 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: EPL-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheClusterDefaultsCleaner

type CheClusterDefaultsCleaner struct {
	deploy.Reconcilable
	// contains filtered or unexported fields
}

CheClusterDefaultsCleaner is a migration tool that cleans up the CheCluster CR by removing values that have been set by the operator in the past as defaults. All those defaults are moved to environment variables in the operator deployment now. The purpose of this are the following:

  • productization needs, downstream version of the operator can have different defaults
  • possibility to change defaults, it allows to have new values after upgrading the operator, because previous ones are not relevant anymore and can't be changed once the CR is created

func NewCheClusterDefaultsCleaner

func NewCheClusterDefaultsCleaner() *CheClusterDefaultsCleaner

func (*CheClusterDefaultsCleaner) Finalize

func (*CheClusterDefaultsCleaner) Reconcile

type CleanUpTask

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

type Migrator

type Migrator struct {
	deploy.Reconcilable
	// contains filtered or unexported fields
}

func NewMigrator

func NewMigrator() *Migrator

func (*Migrator) Finalize

func (m *Migrator) Finalize(ctx *chetypes.DeployContext) bool

func (*Migrator) Reconcile

func (m *Migrator) Reconcile(ctx *chetypes.DeployContext) (reconcile.Result, bool, error)

Jump to

Keyboard shortcuts

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