setup

package
v4.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2020 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CatalogStorageURL     = "https://giantswarm.github.io/control-plane-catalog"
	TestCatalogStorageURL = "https://giantswarm.github.io/control-plane-test-catalog"
)
View Source
const (
	ClusterIPRange = "172.31.0.0/16"
)
View Source
const (
	ReleaseName = "v1.0.0"
)

Variables

This section is empty.

Functions

func CreateNIC

func CreateNIC(ctx context.Context, location, groupName string, subnet network.Subnet, ip network.PublicIPAddress, nicClient network.InterfacesClient) (nic network.Interface, err error)

CreateNIC creates a new network interface in the passed subnet using the passed public ip address.

func CreatePublicIP

func CreatePublicIP(ctx context.Context, location, groupName string, ipClient network.PublicIPAddressesClient) (ip network.PublicIPAddress, err error)

CreatePublicIP creates a new public IP.

func CreateVM

func CreateVM(ctx context.Context, location, groupName, sshKeyData string, nic network.Interface, config Config) error

CreateVM creates a new virtual machine with the specified name using the specified NIC.

func Setup

func Setup(ctx context.Context, c Config) error

Setup e2e testing environment.

func Teardown

func Teardown(c Config) error

Teardown e2e testing environment.

func WaitForNetworkToBeCreated

func WaitForNetworkToBeCreated(ctx context.Context, logger micrologger.Logger, resourceGroupName, virtualNetworkName, masterSubnetName string, subnetsClient network.SubnetsClient) error

func WrapTestMain

func WrapTestMain(m *testing.M, c Config)

WrapTestMain setup and teardown e2e testing environment.

Types

type Config

type Config struct {
	AzureClient      *e2eclientsazure.Client
	Guest            *framework.Guest
	HelmClient       helmclient.Interface
	Host             *framework.Host
	K8s              *k8sclient.Setup
	LegacyK8sClients k8sclientlegacy.Interface
	K8sClients       k8sclient.Interface
	Logger           micrologger.Logger
	Release          *release.Release
}

func NewConfig

func NewConfig() (Config, error)

Jump to

Keyboard shortcuts

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