stack

package
v2.19.5 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeployOptions

type DeployOptions struct {
	HelmClient                 helm.Client
	HelmValues                 *yamled.Document
	KubeClient                 ctrlruntimeclient.Client
	StorageClassProvider       string
	KubermaticConfiguration    *operatorv1alpha1.KubermaticConfiguration
	RawKubermaticConfiguration *unstructured.Unstructured
	ForceHelmReleaseUpgrade    bool

	// ChartsDirectory is the path to the directory where all Helm
	// charts are stored. This is the primary option to influence
	// from where to load charts and the KKP CRDs (which are part
	// of the kubermatic-operator chart).
	ChartsDirectory string

	// KubermaticCRDDirectory is used only during the CRD migration and should
	// not be used by regular install commands. The migration currently needs
	// to point to a non-standard CRD directory that the regular installer
	// logic would not find.
	// If this field is set, it has precedence over ChartsDirectory, but affects
	// only the KKP CRDs. cert-manager CRDs will for example always use the
	// ChartsDirectory instead.
	KubermaticCRDDirectory string

	SeedsGetter      provider.SeedsGetter
	SeedClientGetter provider.SeedClientGetter

	Logger                             *logrus.Entry
	EnableCertManagerV2Migration       bool
	EnableCertManagerUpstreamMigration bool
	EnableNginxIngressMigration        bool
	EnableOpenstackCSIDriverMigration  bool
	EnableLogrotateMigration           bool
	DisableTelemetry                   bool
}

type Stack

type Stack interface {
	Name() string
	ValidateConfiguration(config *operatorv1alpha1.KubermaticConfiguration, helmValues *yamled.Document, opt DeployOptions, logger logrus.FieldLogger) (*operatorv1alpha1.KubermaticConfiguration, *yamled.Document, []error)
	ValidateState(ctx context.Context, opt DeployOptions) []error
	Deploy(ctx context.Context, opt DeployOptions) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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