e2e

package
v0.0.0-...-cf9bbde Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2022 License: MIT Imports: 41 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DiscoverAndWaitForControlPlaneInitialized

func DiscoverAndWaitForControlPlaneInitialized(ctx context.Context, input DiscoverAndWaitForControlPlaneMachinesInput, intervals ...interface{})

DiscoverAndWaitForControlPlaneInitialized gets the azure managed control plane associated with the cluster, and waits for atleast one control plane machine to be up.

func DiscoverAndWaitForControlPlaneReady

func DiscoverAndWaitForControlPlaneReady(ctx context.Context, input DiscoverAndWaitForControlPlaneMachinesInput, intervals ...interface{})

DiscoverAndWaitForControlPlaneReady gets the azure managed control plane associated with the cluster, and waits for all the control plane machines to be up.

func GetAKSKubernetesVersion

func GetAKSKubernetesVersion(ctx context.Context, e2eConfig *clusterctl.E2EConfig) (string, error)

GetAKSKubernetesVersion gets the kubernetes version for AKS clusters.

func GetAzureManagedControlPlaneByCluster

func GetAzureManagedControlPlaneByCluster(ctx context.Context, input GetAzureManagedControlPlaneByClusterInput) *infraexpv1.AzureManagedControlPlane

GetAzureManagedControlPlaneByCluster returns the AzureManagedControlPlane object for a cluster. Important! this method relies on labels that are created by the CAPI controllers during the first reconciliation, so it is necessary to ensure this is already happened before calling it.

func WaitForAllControlPlaneAndMachinesToExist

func WaitForAllControlPlaneAndMachinesToExist(ctx context.Context, input WaitForControlPlaneAndMachinesReadyInput, intervals ...interface{})

WaitForAllControlPlaneAndMachinesToExist waits for all control plane machines to be provisioned.

func WaitForAtLeastOneControlPlaneAndMachineToExist

func WaitForAtLeastOneControlPlaneAndMachineToExist(ctx context.Context, input WaitForControlPlaneAndMachinesReadyInput, intervals ...interface{})

WaitForAtLeastOneControlPlaneAndMachineToExist waits for atleast one control plane machine to be provisioned.

func WaitForControlPlaneInitialized

WaitForControlPlaneInitialized waits for the azure managed control plane to be initialized. This will be invoked by cluster api e2e framework.

func WaitForControlPlaneMachinesReady

func WaitForControlPlaneMachinesReady(ctx context.Context, input clusterctl.ApplyClusterTemplateAndWaitInput, result *clusterctl.ApplyClusterTemplateAndWaitResult)

WaitForControlPlaneMachinesReady waits for the azure managed control plane to be ready. This will be invoked by cluster api e2e framework.

func WaitForControlPlaneMachinesToExist

func WaitForControlPlaneMachinesToExist(ctx context.Context, input WaitForControlPlaneAndMachinesReadyInput, minReplicas controlPlaneReplicas, intervals ...interface{})

WaitForControlPlaneMachinesToExist waits for a certain number of control plane machines to be provisioned represented.

Types

type AzureClusterProxy

type AzureClusterProxy struct {
	framework.ClusterProxy
}

func NewAzureClusterProxy

func NewAzureClusterProxy(name string, kubeconfigPath string, scheme *runtime.Scheme, options ...framework.Option) *AzureClusterProxy

func (*AzureClusterProxy) CollectWorkloadClusterLogs

func (acp *AzureClusterProxy) CollectWorkloadClusterLogs(ctx context.Context, namespace, name, outputPath string)

type AzureLogCollector

type AzureLogCollector struct{}

AzureLogCollector collects logs from a workload cluster.

func (AzureLogCollector) CollectMachineLog

func (k AzureLogCollector) CollectMachineLog(ctx context.Context, managementClusterClient client.Client, m *clusterv1.Machine, outputPath string) error

CollectMachineLog collects logs from a machine.

func (AzureLogCollector) CollectMachinePoolLog

func (k AzureLogCollector) CollectMachinePoolLog(ctx context.Context, managementClusterClient client.Client, mp *clusterv1exp.MachinePool, outputPath string) error

CollectMachinePoolLog collects logs from a machine pool.

type DiscoverAndWaitForControlPlaneMachinesInput

type DiscoverAndWaitForControlPlaneMachinesInput struct {
	Lister  framework.Lister
	Getter  framework.Getter
	Cluster *clusterv1.Cluster
}

DiscoverAndWaitForControlPlaneMachinesInput contains the fields the required for checking the status of azure managed control plane.

type GetAzureManagedControlPlaneByClusterInput

type GetAzureManagedControlPlaneByClusterInput struct {
	Lister      framework.Lister
	ClusterName string
	Namespace   string
}

GetAzureManagedControlPlaneByClusterInput contains the fields the required for fetching the azure managed control plane.

type WaitForControlPlaneAndMachinesReadyInput

type WaitForControlPlaneAndMachinesReadyInput struct {
	Lister       framework.Lister
	Getter       framework.Getter
	ControlPlane *infraexpv1.AzureManagedControlPlane
	ClusterName  string
	Namespace    string
}

WaitForControlPlaneAndMachinesReadyInput contains the fields required for checking the status of azure managed control plane machines.

Directories

Path Synopsis
k8s

Jump to

Keyboard shortcuts

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