providers

package
v2.21.1 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2022 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AzureClusterJig

type AzureClusterJig struct {
	CommonClusterJig

	Credentials AzureCredentialsType
	// contains filtered or unexported fields
}

func NewClusterJigAzure

func NewClusterJigAzure(seedClient ctrlruntimeclient.Client, log *zap.SugaredLogger, version semver.Semver, seedDatacenter string, credentials AzureCredentialsType) *AzureClusterJig

func (*AzureClusterJig) CheckComponents

func (c *AzureClusterJig) CheckComponents(ctx context.Context, userClient ctrlruntimeclient.Client) (bool, error)

func (*AzureClusterJig) Cleanup

func (c *AzureClusterJig) Cleanup(ctx context.Context, userClient ctrlruntimeclient.Client) error

func (*AzureClusterJig) CreateMachineDeployment

func (c *AzureClusterJig) CreateMachineDeployment(ctx context.Context, userClient ctrlruntimeclient.Client) error

func (*AzureClusterJig) Log

func (c *AzureClusterJig) Log() *zap.SugaredLogger

func (*AzureClusterJig) Name

func (c *AzureClusterJig) Name() string

func (*AzureClusterJig) Seed

func (*AzureClusterJig) Setup

func (c *AzureClusterJig) Setup(ctx context.Context) error

type AzureCredentialsType

type AzureCredentialsType struct {
	resources.AzureCredentials
}

func (*AzureCredentialsType) GenerateProviderSpec

func (c *AzureCredentialsType) GenerateProviderSpec(spec *kubermaticv1.AzureCloudSpec, datacenter *kubermaticv1.DatacenterSpecAzure) []byte

func (*AzureCredentialsType) GenerateSecretData

func (c *AzureCredentialsType) GenerateSecretData(datacenter *kubermaticv1.DatacenterSpecAzure) map[string][]byte

type ClusterJigInterface

type ClusterJigInterface interface {
	Setup(ctx context.Context) error
	CreateMachineDeployment(ctx context.Context, userClient ctrlruntimeclient.Client) error
	WaitForNodeToBeReady(ctx context.Context, userClient ctrlruntimeclient.Client) (bool, error)
	CheckComponents(ctx context.Context, userClient ctrlruntimeclient.Client) (bool, error)
	Cleanup(ctx context.Context, userClient ctrlruntimeclient.Client) error
	Name() string
	Seed() ctrlruntimeclient.Client
	Log() *zap.SugaredLogger
}

type CommonClusterJig

type CommonClusterJig struct {
	DatacenterName string
	Version        semver.Semver

	SeedClient ctrlruntimeclient.Client
	// contains filtered or unexported fields
}

func (*CommonClusterJig) WaitForNodeToBeReady

func (ccj *CommonClusterJig) WaitForNodeToBeReady(ctx context.Context, userClient ctrlruntimeclient.Client) (bool, error)

type OpenstackClusterJig

type OpenstackClusterJig struct {
	CommonClusterJig

	Credentials OpenstackCredentialsType
}

func NewClusterJigOpenstack

func NewClusterJigOpenstack(seedClient ctrlruntimeclient.Client, log *zap.SugaredLogger, version semver.Semver, seedDatacenter string, credentials OpenstackCredentialsType) *OpenstackClusterJig

func (*OpenstackClusterJig) CheckComponents

func (c *OpenstackClusterJig) CheckComponents(ctx context.Context, userClient ctrlruntimeclient.Client) (bool, error)

func (*OpenstackClusterJig) Cleanup

func (c *OpenstackClusterJig) Cleanup(ctx context.Context, userClient ctrlruntimeclient.Client) error

func (*OpenstackClusterJig) CreateMachineDeployment

func (c *OpenstackClusterJig) CreateMachineDeployment(ctx context.Context, userClient ctrlruntimeclient.Client) error

func (*OpenstackClusterJig) Log

func (*OpenstackClusterJig) Name

func (c *OpenstackClusterJig) Name() string

func (*OpenstackClusterJig) Seed

func (*OpenstackClusterJig) Setup

func (c *OpenstackClusterJig) Setup(ctx context.Context) error

type OpenstackCredentialsType

type OpenstackCredentialsType struct {
	Username       string
	Password       string
	Tenant         string
	Domain         string
	FloatingIPPool string
	Network        string
}

func (*OpenstackCredentialsType) GenerateProviderSpec

func (osc *OpenstackCredentialsType) GenerateProviderSpec(datacenter *kubermaticv1.DatacenterSpecOpenstack) []byte

func (*OpenstackCredentialsType) GenerateSecretData

func (osc *OpenstackCredentialsType) GenerateSecretData(datacenter *kubermaticv1.DatacenterSpecOpenstack) map[string][]byte

type VsphereClusterJig

type VsphereClusterJig struct {
	CommonClusterJig

	Credentials VsphereCredentialsType
}

func NewClusterJigVsphere

func NewClusterJigVsphere(seedClient ctrlruntimeclient.Client, log *zap.SugaredLogger, version semver.Semver, seedDatacenter string, credentials VsphereCredentialsType) *VsphereClusterJig

func (*VsphereClusterJig) CheckComponents

func (c *VsphereClusterJig) CheckComponents(ctx context.Context, userClient ctrlruntimeclient.Client) (bool, error)

func (*VsphereClusterJig) Cleanup

func (c *VsphereClusterJig) Cleanup(ctx context.Context, userClient ctrlruntimeclient.Client) error

func (*VsphereClusterJig) CreateMachineDeployment

func (c *VsphereClusterJig) CreateMachineDeployment(ctx context.Context, userClient ctrlruntimeclient.Client) error

func (*VsphereClusterJig) Log

func (*VsphereClusterJig) Name

func (c *VsphereClusterJig) Name() string

func (*VsphereClusterJig) Seed

func (*VsphereClusterJig) Setup

func (c *VsphereClusterJig) Setup(ctx context.Context) error

type VsphereCredentialsType

type VsphereCredentialsType struct {
	Username string
	Password string
}

func (*VsphereCredentialsType) GenerateProviderSpec

func (vc *VsphereCredentialsType) GenerateProviderSpec(clustername string, datacenter *kubermaticv1.DatacenterSpecVSphere) []byte

func (*VsphereCredentialsType) GenerateSecretData

func (vc *VsphereCredentialsType) GenerateSecretData(datacenter *kubermaticv1.DatacenterSpecVSphere) map[string][]byte

Jump to

Keyboard shortcuts

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