migration

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 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:

  • v22: Added migration code to fill spec.Cluster.Scaling.{Min,Max} values when they are zero. When all tenant clusters are migrated to at least v22, 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