Documentation ¶
Index ¶
- Constants
- func CreateNIC(ctx context.Context, location, groupName string, subnet network.Subnet, ...) (nic network.Interface, err error)
- func CreatePublicIP(ctx context.Context, location, groupName string, ...) (ip network.PublicIPAddress, err error)
- func CreateVM(ctx context.Context, location, groupName, sshKeyData string, ...) error
- func IsIDSpaceExhausted(err error) bool
- func Setup(ctx context.Context, c Config) error
- func Teardown(c Config) error
- func WaitForNetworkToBeCreated(ctx context.Context, logger micrologger.Logger, ...) error
- func WrapTestMain(m *testing.M, c Config)
- type Config
- type LogAnalyticsConfig
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 ¶
IsIDSpaceExhausted asserts idSpaceExhaustedError.
func WaitForNetworkToBeCreated ¶
func WaitForNetworkToBeCreated(ctx context.Context, logger micrologger.Logger, resourceGroupName, virtualNetworkName, masterSubnetName string, subnetsClient network.SubnetsClient) error
func WrapTestMain ¶
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 }
type LogAnalyticsConfig ¶
type LogAnalyticsConfig struct { WorkspaceID string }
Click to show internal directories.
Click to hide internal directories.