azure

package
v0.13.2 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2025 License: AGPL-3.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadBlobContainerContents added in v0.12.2

func DownloadBlobContainerContents(ctx context.Context,
	blobClient *azblob.Client,
	blobContainerName string,
)

Downloads contents of the given Azure Blob Container locally. If the contents are gZip encoded, then you can choose to gZip decode them after download. NOTE : The download path is decided by utils.GetDownloadedStorageBucketContentsDir( ).

func GetClientSecretCredentials added in v0.9.0

func GetClientSecretCredentials(ctx context.Context) *azidentity.ClientSecretCredential

Constructs and returns Azure client secret credentials.

func GetServiceAccountIssuerURL added in v0.8.0

func GetServiceAccountIssuerURL(ctx context.Context) string

Returns URL of the OIDC provider being used for Workload Identity support.

func GetStorageAccountURL added in v0.9.0

func GetStorageAccountURL() string

Returns URL of the storage account being used.

func NewAzureCloudProvider

func NewAzureCloudProvider() cloud.CloudProvider

Types

type Azure

type Azure struct {
	// contains filtered or unexported fields
}

func CloudProviderToAzure

func CloudProviderToAzure(ctx context.Context, cloudProvider cloud.CloudProvider) *Azure

Type casts the give CloudProvider interface instance to an instance of the Azure struct. Panics if the type casting fails.

func (*Azure) CreateOIDCProvider added in v0.12.2

func (a *Azure) CreateOIDCProvider(ctx context.Context)

func (*Azure) DeleteResourceGroup

func (a *Azure) DeleteResourceGroup(ctx context.Context)

func (*Azure) GetInfrastructureDetails added in v0.12.2

func (*Azure) GetInfrastructureDetails(ctx context.Context, clusterClient client.Client)

Retrieves details about the infrastructure provisioned using CrossPlane.

After CrossPlane has provisioned the infrastructure, CrossPlane provides us the infrastructure
details in a few ways. Here are the 2 ways we care about :

(1) Resource specific non-secret details are persisted in the status.atProvider field of the
    resource object.

(2) Secret details are persisted to Kubernetes Secrets.
    REFER : Write connection details requests in CrossPlane Managed Resources, Compositions
            and Composite Resource (XR) Claims.

func (*Azure) GetVMSpecs

func (a *Azure) GetVMSpecs(ctx context.Context, vmType string) *cloud.VMSpec

func (*Azure) ProvisionInfrastructure added in v0.12.2

func (*Azure) ProvisionInfrastructure(ctx context.Context)

Installs CrossPlane. And then provisions required infrastructure for Azure Workload Identity and Disaster Recovery, using CrossPlane.

func (*Azure) SetupDisasterRecovery

func (a *Azure) SetupDisasterRecovery(ctx context.Context)

Sets up the provisioned cluster for Disaster Recovery.

func (*Azure) UpdateCapiClusterValuesFileWithCloudSpecificDetails

func (a *Azure) UpdateCapiClusterValuesFileWithCloudSpecificDetails(ctx context.Context,
	capiClusterValuesFilePath string,
	updates any,
)

func (*Azure) UpdateMachineTemplate

func (*Azure) UpdateMachineTemplate(ctx context.Context,
	clusterClient client.Client,
	updates any,
)

type AzureMachineTemplateUpdates added in v0.11.0

type AzureMachineTemplateUpdates struct {
	NewImageOffer string
}

type DownloadBlobContentArgs added in v0.12.2

type DownloadBlobContentArgs struct {
	BlobClient *azblob.Client

	DownloadDir,

	BlobContainerName,
	BlobName string
}

type TemplateArgs

type TemplateArgs struct {
	StorageAccountName,
	BlobContainerName string
}

Jump to

Keyboard shortcuts

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