crdmigration

package
v2.20.16 Latest Latest
Warning

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

Go to latest
Published: May 16, 2023 License: Apache-2.0 Imports: 43 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 is the current configuration from the cluster,
	// but not defaulted because the defaulting code is rewritten for the new
	// API group already. Beware.
	KubermaticConfiguration *operatorv1alpha1.KubermaticConfiguration

	MasterClient    ctrlruntimeclient.Client
	Seeds           map[string]*kubermaticv1.Seed
	SeedClients     map[string]ctrlruntimeclient.Client
	ChartsDirectory string
	EtcdTimeout     time.Duration
	CheckRunning    bool
}

Jump to

Keyboard shortcuts

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