crdmigration

package
v2.19.2 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2022 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateBackups

func CreateBackups(ctx context.Context, logger logrus.FieldLogger, opt *Options) error

func DuplicateResources

func DuplicateResources(ctx context.Context, logger logrus.FieldLogger, opt *Options) error

func InstallCRDs

func InstallCRDs(ctx context.Context, logger logrus.FieldLogger, opt *Options) error

func PerformPreflightChecks

func PerformPreflightChecks(ctx context.Context, logger logrus.FieldLogger, opt *Options) error

func RemoveOldResources

func RemoveOldResources(ctx context.Context, logger logrus.FieldLogger, opt *Options) error

func ShutdownControllers

func ShutdownControllers(ctx context.Context, logger logrus.FieldLogger, opt *Options) error

Types

type Kind

type Kind struct {
	// Name is the name of the Kind, e.g. "Cluster"
	Name string
	// Namespaced is true if the Kind is namespaced.
	Namespaced bool
	// MasterCluster is true if resources of this kind exist on master clusters.
	MasterCluster bool
	// SeedCluster is true if resources of this kind exist on seed clusters;
	// this includes resources that are just mirrored into seeds, like Users, of which the
	// primary resource lives on the master.
	SeedCluster bool
}

type Options

type Options struct {
	KubermaticNamespace     string
	KubermaticConfiguration *operatorv1alpha1.KubermaticConfiguration
	MasterClient            ctrlruntimeclient.Client
	Seeds                   map[string]*kubermaticv1.Seed
	SeedClients             map[string]ctrlruntimeclient.Client
	CRDDirectory            string
}

Jump to

Keyboard shortcuts

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