Documentation ¶
Index ¶
- func DiscoverAndWaitForControlPlaneInitialized(ctx context.Context, input DiscoverAndWaitForControlPlaneMachinesInput, ...)
- func DiscoverAndWaitForControlPlaneReady(ctx context.Context, input DiscoverAndWaitForControlPlaneMachinesInput, ...)
- func GetAKSKubernetesVersion(ctx context.Context, e2eConfig *clusterctl.E2EConfig) (string, error)
- func GetAzureManagedControlPlaneByCluster(ctx context.Context, input GetAzureManagedControlPlaneByClusterInput) *infraexpv1.AzureManagedControlPlane
- func WaitForAllControlPlaneAndMachinesToExist(ctx context.Context, input WaitForControlPlaneAndMachinesReadyInput, ...)
- func WaitForAtLeastOneControlPlaneAndMachineToExist(ctx context.Context, input WaitForControlPlaneAndMachinesReadyInput, ...)
- func WaitForControlPlaneInitialized(ctx context.Context, input clusterctl.ApplyClusterTemplateAndWaitInput, ...)
- func WaitForControlPlaneMachinesReady(ctx context.Context, input clusterctl.ApplyClusterTemplateAndWaitInput, ...)
- func WaitForControlPlaneMachinesToExist(ctx context.Context, input WaitForControlPlaneAndMachinesReadyInput, ...)
- type AzureClusterProxy
- type AzureLogCollector
- type DiscoverAndWaitForControlPlaneMachinesInput
- type GetAzureManagedControlPlaneByClusterInput
- type WaitForControlPlaneAndMachinesReadyInput
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 ¶
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 ¶
func WaitForControlPlaneInitialized(ctx context.Context, input clusterctl.ApplyClusterTemplateAndWaitInput, result *clusterctl.ApplyClusterTemplateAndWaitResult)
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 (*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.