scenarios

package
v2.21.4 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2022 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

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

func NewGenerator

func NewGenerator() *Generator

func (*Generator) Scenarios

func (g *Generator) Scenarios(ctx context.Context, opts *types.Options, log *zap.SugaredLogger) ([]Scenario, error)

func (*Generator) WithCloudProviders

func (g *Generator) WithCloudProviders(providerNames ...string) *Generator

func (*Generator) WithContainerRuntimes

func (g *Generator) WithContainerRuntimes(runtimes ...string) *Generator

func (*Generator) WithDualstack

func (g *Generator) WithDualstack(enable bool) *Generator

func (*Generator) WithOSM

func (g *Generator) WithOSM(enable bool) *Generator

func (*Generator) WithOperatingSystems

func (g *Generator) WithOperatingSystems(operatingSystems ...string) *Generator

func (*Generator) WithVersions

func (g *Generator) WithVersions(versions ...*semver.Semver) *Generator

type Scenario

type Scenario interface {
	CloudProvider() providerconfig.CloudProvider
	OperatingSystem() providerconfig.OperatingSystem
	ContainerRuntime() string
	DualstackEnabled() bool
	Version() semver.Semver
	Datacenter() *kubermaticv1.Datacenter
	Name() string
	Log(log *zap.SugaredLogger) *zap.SugaredLogger
	NamedLog(log *zap.SugaredLogger) *zap.SugaredLogger
	IsValid(opts *types.Options, log *zap.SugaredLogger) bool

	APIOperatingSystemSpec() (*apimodels.OperatingSystemSpec, error)
	OperatingSystemSpec() (*apiv1.OperatingSystemSpec, error)

	Cluster(secrets types.Secrets) *kubermaticv1.ClusterSpec
	APICluster(secrets types.Secrets) *apimodels.CreateClusterSpec
	MachineDeployments(ctx context.Context, num int, secrets types.Secrets, cluster *kubermaticv1.Cluster) ([]clusterv1alpha1.MachineDeployment, error)
	NodeDeployments(ctx context.Context, num int, secrets types.Secrets) ([]apimodels.NodeDeployment, error)

	SetDualstackEnabled(bool)
}

Jump to

Keyboard shortcuts

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