uat

package
v0.0.0-...-670b31e Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2020 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateClusterUsingDefaults

func CreateClusterUsingDefaults(giantSwarmClient *client.Client) (string, string, error)

CreateClusterUsingDefaults tests - whether we can create a cluster - whether defaults are applied as expected.

func CreateKeyPair

func CreateKeyPair(giantSwarmClient *client.Client, clusterID string, clusterAPIEndpoint string) (string, error)

CreateKeyPair tests key pair creation for the new cluster and stores away the key pair in a kubectl config file for later use.

func CreateLoadOnIngress

func CreateLoadOnIngress(ingressEndpoint string)

CreateLoadOnIngress sets a constant load on the given URL.

func CreateNodePoolUsingDefaults

func CreateNodePoolUsingDefaults(giantSwarmClient *client.Client, clusterID string) (string, error)

CreateNodePoolUsingDefaults ensures that a node pool can be created with minimal spec and defaults apply.

func CreateNodePoolWithCustomParams

func CreateNodePoolWithCustomParams(giantSwarmClient *client.Client, clusterID string, instanceType string, availabilityZones []string) (string, error)

CreateNodePoolWithCustomParams checks the creation of a node pool with some custom properties.

func DeleteCluster

func DeleteCluster(giantSwarmClient *client.Client, clusterID string) error

DeleteCluster tests whether a cluster gets deleted okay.

func DeleteNodePool

func DeleteNodePool(giantSwarmClient *client.Client, clusterID string, nodePoolID string) error

DeleteNodePool tests whether a node pool can be deleted.

func DeployTestApp

func DeployTestApp(kubeconfigPath string, clusterAPIEndpoint string) (string, error)

DeployTestApp attempts to deploy a helloworld app on the cluster. Returns the ingress URL of the app.

func GetNodePoolDetails

func GetNodePoolDetails(giantSwarmClient *client.Client, clusterID string, nodePoolID string) (*models.V5GetNodePoolResponse, error)

GetNodePoolDetails returns details on a node pool

func IncreaseTestAppReplicas

func IncreaseTestAppReplicas(kubeconfigPath string) error

IncreaseTestAppReplicas increases the test app replicas.

func RenameNodePool

func RenameNodePool(giantSwarmClient *client.Client, clusterID string, nodePoolID string, name string) error

RenameNodePool tests whether a node pool can be renamed.

func RunKubectlCommandToTestKeyPair

func RunKubectlCommandToTestKeyPair(kubeconfigPath string) error

RunKubectlCommandToTestKeyPair used kubectl to get a list of cluster nodes and returns an error if that fails.

func ScaleNodePool

func ScaleNodePool(giantSwarmClient *client.Client, clusterID string, nodePoolID string, min int, max int) error

ScaleNodePool tests whether a node pool can be scaled.

func TestClient

func TestClient(giantSwarmClient *client.Client) error

TestClient verifies whether the given client can authenticate.

Types

This section is empty.

Jump to

Keyboard shortcuts

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