setup

package
v5.0.0-beta7 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2020 License: Apache-2.0 Imports: 47 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 (
	DraughtsmanNamespace     = "draughtsman"
	DraughtsmanConfigMapName = "draughtsman-values-configmap"
	DraughtsmanSecretName    = "draughtsman-values-secret" // nolint:gosec

)
View Source
const (
	ClusterIPRange        = "172.31.0.0/16"
	OrganizationNamespace = "org-giantswarm"
)
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 IsIDSpaceExhausted

func IsIDSpaceExhausted(err error) bool

IsIDSpaceExhausted asserts idSpaceExhaustedError.

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
	K8sClients         k8sclient.Interface
	Logger             micrologger.Logger
	Release            *release.Release
	LogAnalyticsConfig LogAnalyticsConfig
}

func NewConfig

func NewConfig() (Config, error)

type LogAnalyticsConfig

type LogAnalyticsConfig struct {
	WorkspaceID string
	SharedKey   string
}

Jump to

Keyboard shortcuts

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