Documentation
¶
Index ¶
- func DownloadBlobContainerContents(ctx context.Context, blobClient *azblob.Client, blobContainerName string) error
- func GetClientSecretCredentials() (*azidentity.ClientSecretCredential, error)
- func GetServiceAccountIssuerURL() (string, error)
- func GetStorageAccountURL() string
- func NewAzureCloudProvider() (cloud.CloudProvider, error)
- type Azure
- func (a *Azure) CreateOIDCProvider(ctx context.Context) error
- func (a *Azure) DeleteResourceGroup(ctx context.Context) error
- func (*Azure) GetInfrastructureDetails(ctx context.Context, clusterClient client.Client) error
- func (a *Azure) GetVMSpecs(ctx context.Context, vmType string) (*cloud.VMSpec, error)
- func (a *Azure) ProvisionInfrastructure(ctx context.Context) error
- func (a *Azure) SetupDisasterRecovery(ctx context.Context) error
- func (a *Azure) UpdateCapiClusterValuesFile(ctx context.Context, path string, updates any) error
- func (*Azure) UpdateMachineTemplate(ctx context.Context, clusterClient client.Client, name string, updates any) error
- type AzureMachineTemplateUpdates
- type TemplateArgs
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, ) error
DownloadBlobContainerContents 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. The download path is decided by utils.GetDownloadedStorageBucketContentsDir.
func GetClientSecretCredentials ¶ added in v0.9.0
func GetClientSecretCredentials() (*azidentity.ClientSecretCredential, error)
Constructs and returns Azure client secret credentials.
func GetServiceAccountIssuerURL ¶ added in v0.8.0
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, error)
Types ¶
type Azure ¶
type Azure struct {
// contains filtered or unexported fields
}
func CloudProviderToAzure ¶
func CloudProviderToAzure(cloudProvider cloud.CloudProvider) (*Azure, error)
Type casts the given CloudProvider interface instance to an instance of the Azure struct.
func (*Azure) CreateOIDCProvider ¶ added in v0.12.2
func (*Azure) GetInfrastructureDetails ¶ added in v0.12.2
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 (*Azure) ProvisionInfrastructure ¶ added in v0.12.2
ProvisionInfrastructure installs CrossPlane and then provisions required infrastructure for Azure Workload Identity and Disaster Recovery using CrossPlane.
func (*Azure) SetupDisasterRecovery ¶
SetupDisasterRecovery sets up the provisioned cluster for Disaster Recovery.
func (*Azure) UpdateCapiClusterValuesFile ¶ added in v0.18.0
type AzureMachineTemplateUpdates ¶ added in v0.11.0
type AzureMachineTemplateUpdates struct {
NewImageOffer string
}
type TemplateArgs ¶
type TemplateArgs struct {
StorageAccountName,
BlobContainerName string
}