Documentation ¶
Index ¶
- func CreateClusterUsingDefaults(giantSwarmClient *client.Client) (string, string, error)
- func CreateKeyPair(giantSwarmClient *client.Client, clusterID string, clusterAPIEndpoint string) (string, error)
- func CreateLoadOnIngress(ingressEndpoint string)
- func CreateNodePoolUsingDefaults(giantSwarmClient *client.Client, clusterID string) (string, error)
- func CreateNodePoolWithCustomParams(giantSwarmClient *client.Client, clusterID string, instanceType string, ...) (string, error)
- func DeleteCluster(giantSwarmClient *client.Client, clusterID string) error
- func DeleteNodePool(giantSwarmClient *client.Client, clusterID string, nodePoolID string) error
- func DeployTestApp(kubeconfigPath string, clusterAPIEndpoint string) (string, error)
- func GetNodePoolDetails(giantSwarmClient *client.Client, clusterID string, nodePoolID string) (*models.V5GetNodePoolResponse, error)
- func IncreaseTestAppReplicas(kubeconfigPath string) error
- func RenameNodePool(giantSwarmClient *client.Client, clusterID string, nodePoolID string, ...) error
- func RunKubectlCommandToTestKeyPair(kubeconfigPath string) error
- func ScaleNodePool(giantSwarmClient *client.Client, clusterID string, nodePoolID string, min int, ...) error
- func TestClient(giantSwarmClient *client.Client) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateClusterUsingDefaults ¶
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 ¶
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 ¶
DeleteCluster tests whether a cluster gets deleted okay.
func DeleteNodePool ¶
DeleteNodePool tests whether a node pool can be deleted.
func DeployTestApp ¶
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 ¶
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 ¶
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 ¶
TestClient verifies whether the given client can authenticate.
Types ¶
This section is empty.