migration

package
v5.5.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package migration provides an operatorkit resource that migrates awsconfig CRs to reference the default credential secret if they do not already. It can be safely removed once all awsconfig CRs reference a credential secret.

Latest changes:

  • v24: Added migration code to fill spec.Cluster.Scaling.{Min,Max} values when they are zero. When all tenant clusters are migrated to at least v24, migrations in this file can be removed.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

func IsMalformedDomain

func IsMalformedDomain(err error) bool

IsMalformedDomain asserts malformedDomainError.

Types

type Config

type Config struct {
	G8sClient versioned.Interface
	Logger    micrologger.Logger
}

type Resource

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

func New

func New(config Config) (*Resource, error)

func (*Resource) EnsureCreated

func (r *Resource) EnsureCreated(ctx context.Context, obj interface{}) error

func (*Resource) EnsureDeleted

func (r *Resource) EnsureDeleted(ctx context.Context, obj interface{}) error

func (*Resource) Name

func (r *Resource) Name() string

Jump to

Keyboard shortcuts

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