azure

package
v1.4.22-ec5 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2026 License: Apache-2.0 Imports: 47 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateBlockBlob

func CreateBlockBlob(ctx context.Context, in *CreateBlockBlobInput) (string, error)

CreateBlockBlob creates a block blob and uploads a file from a URL to it.

func CreateManagedImage

func CreateManagedImage(ctx context.Context, in *CreateManagedImageInput) error

CreateManagedImage creates a managed image for nodes, which is only used on Azure Stack.

func CreatePageBlob

func CreatePageBlob(ctx context.Context, in *CreatePageBlobInput) (string, error)

CreatePageBlob creates a blob and uploads a file from a URL to it.

func GenerateStorageAccountEncryption added in v0.90.17

func GenerateStorageAccountEncryption(ctx context.Context, in *CustomerManagedKeyInput) (*armstorage.Encryption, error)

GenerateStorageAccountEncryption generates all the Encryption information for the Storage Account using the Customer Managed Key.

Types

type CreateBlobContainerInput

type CreateBlobContainerInput struct {
	SubscriptionID       string
	ResourceGroupName    string
	StorageAccountName   string
	ContainerName        string
	PublicAccess         *armstorage.PublicAccess
	StorageClientFactory *armstorage.ClientFactory
}

CreateBlobContainerInput contains the input parameters used for creating a blob storage container.

type CreateBlobContainerOutput

type CreateBlobContainerOutput struct {
	BlobContainer *armstorage.BlobContainer
}

CreateBlobContainerOutput contains the return values after creating a blob storage container.

func CreateBlobContainer

CreateBlobContainer creates a blob container in a storage account.

type CreateBlockBlobInput

type CreateBlockBlobInput struct {
	StorageURL           string
	BlobURL              string
	StorageAccountName   string
	AllowSharedKeyAccess bool
	BootstrapIgnData     []byte
	AuthType             azic.AuthenticationType
	TokenCredential      azcore.TokenCredential
	StorageAccountKeys   []armstorage.AccountKey
	ClientOpts           *arm.ClientOptions
	CloudEnvironment     aztypes.CloudEnvironment
	ContainerName        string
	BlobName             string
	UserDelegatedSAS     *sas.UserDelegationCredential
	StorageSuffix        string
	ARMEndpoint          string
	Region               string
	ResourceGroupName    string
	Session              *azic.Session
	Tags                 map[string]*string
	UserDelegatedCreds   *service.UserDelegationCredential
}

CreateBlockBlobInput containers the input parameters used for creating a block blob.

type CreateBlockBlobOutput

type CreateBlockBlobOutput struct {
	PageBlobClient      *pageblob.Client
	SharedKeyCredential *azblob.SharedKeyCredential
}

CreateBlockBlobOutput contains the return values after creating a block blob.

type CreateGalleryImageInput

type CreateGalleryImageInput struct {
	ResourceGroupName    string
	GalleryName          string
	GalleryImageName     string
	Region               string
	Publisher            string
	Offer                string
	SKU                  string
	Tags                 map[string]*string
	TokenCredential      azcore.TokenCredential
	ClientOpts           *arm.ClientOptions
	Architecture         armcompute.Architecture
	OSType               armcompute.OperatingSystemTypes
	OSState              armcompute.OperatingSystemStateTypes
	HyperVGeneration     armcompute.HyperVGeneration
	ComputeClientFactory *armcompute.ClientFactory
	SecurityType         string
}

CreateGalleryImageInput contains the input parameters for creating a gallery image.

type CreateGalleryImageOutput

type CreateGalleryImageOutput struct {
	GalleryImage *armcompute.GalleryImage
}

CreateGalleryImageOutput contains the return values after creating a gallery image.

func CreateGalleryImage

func CreateGalleryImage(ctx context.Context, in *CreateGalleryImageInput) (*CreateGalleryImageOutput, error)

CreateGalleryImage creates a gallery image.

type CreateGalleryImageVersionInput

type CreateGalleryImageVersionInput struct {
	ResourceGroupName       string
	GalleryName             string
	GalleryImageName        string
	GalleryImageVersionName string
	Region                  string
	StorageAccountID        string
	BlobURL                 string
	Tags                    map[string]*string
	RegionalReplicaCount    int32
	ComputeClientFactory    *armcompute.ClientFactory
}

CreateGalleryImageVersionInput contains the input parameters for creating a gallery image version.

type CreateGalleryImageVersionOutput

type CreateGalleryImageVersionOutput struct {
	GalleryImageVersion *armcompute.GalleryImageVersion
}

CreateGalleryImageVersionOutput contains the return values after create a gallery image version.

func CreateGalleryImageVersion

CreateGalleryImageVersion creates a gallery image version.

type CreateImageGalleryInput

type CreateImageGalleryInput struct {
	SubscriptionID    string
	ResourceGroupName string
	GalleryName       string
	Region            string
	Tags              map[string]*string
	TokenCredential   azcore.TokenCredential
	ClientOpts        *arm.ClientOptions
}

CreateImageGalleryInput contains the input parameters for creating a image gallery.

type CreateImageGalleryOutput

type CreateImageGalleryOutput struct {
	ComputeClientFactory *armcompute.ClientFactory
	Gallery              *armcompute.Gallery
}

CreateImageGalleryOutput contains the return values after creating a image gallery.

func CreateImageGallery

func CreateImageGallery(ctx context.Context, in *CreateImageGalleryInput) (*CreateImageGalleryOutput, error)

CreateImageGallery creates a image gallery.

type CreateManagedImageInput

type CreateManagedImageInput struct {
	VHDBlobURL        string
	ResourceGroupName string
	Region            string
	InfraID           string
	Tags              map[string]*string
	Client            *armcompute.ImagesClient
}

CreateManagedImageInput contains parameters for creating a managed image on Azure Stack.

type CreatePageBlobInput

type CreatePageBlobInput struct {
	StorageURL           string
	BlobURL              string
	ImageURL             string
	StorageAccountName   string
	AllowSharedKeyAccess bool
	CloudEnvironment     aztypes.CloudEnvironment
	BootstrapIgnData     []byte
	UserDelegatedSAS     *sas.UserDelegationCredential
	ImageLength          int64
	TokenCredential      azcore.TokenCredential
	StorageAccountKeys   []armstorage.AccountKey
	ClientOpts           *arm.ClientOptions
}

CreatePageBlobInput containers the input parameters used for creating a page blob.

type CreatePageBlobOutput

type CreatePageBlobOutput struct {
	PageBlobClient      *pageblob.Client
	SharedKeyCredential *azblob.SharedKeyCredential
}

CreatePageBlobOutput contains the return values after creating a page blob.

type CreateStorageAccountInput

type CreateStorageAccountInput struct {
	SubscriptionID       string
	ResourceGroupName    string
	StorageAccountName   string
	Region               string
	Tags                 map[string]*string
	AuthType             azic.AuthenticationType
	AllowSharedKeyAccess bool
	CustomerManagedKey   *aztypes.CustomerManagedKey
	CloudName            aztypes.CloudEnvironment
	TokenCredential      azcore.TokenCredential
	ClientOpts           *arm.ClientOptions
}

CreateStorageAccountInput contains the input parameters for creating a storage account.

type CreateStorageAccountOutput

type CreateStorageAccountOutput struct {
	StorageAccount        *armstorage.Account
	StorageAccountsClient *armstorage.AccountsClient
	StorageClientFactory  *armstorage.ClientFactory
	StorageAccountKeys    []armstorage.AccountKey
}

CreateStorageAccountOutput contains the return values after creating a storage account.

func CreateStorageAccount

CreateStorageAccount creates a new storage account.

type CustomerManagedKeyInput added in v0.90.17

type CustomerManagedKeyInput struct {
	SubscriptionID     string
	ResourceGroupName  string
	CustomerManagedKey *aztypes.CustomerManagedKey
	TokenCredential    azcore.TokenCredential
}

CustomerManagedKeyInput contains the input parameters for creating the customer managed key and identity.

type Provider

type Provider struct {
	ResourceGroupName    string
	StorageAccountName   string
	StorageURL           string
	StorageAccount       *armstorage.Account
	StorageClientFactory *armstorage.ClientFactory
	StorageAccountKeys   []armstorage.AccountKey
	NetworkClientFactory *armnetwork.ClientFactory

	CloudConfiguration cloud.Configuration
	TokenCredential    azcore.TokenCredential
	Tags               map[string]*string
	// contains filtered or unexported fields
}

Provider implements Azure CAPI installation.

func (Provider) Ignition

func (p Provider) Ignition(ctx context.Context, in clusterapi.IgnitionInput) ([]*corev1.Secret, error)

Ignition provisions the Azure container that holds the bootstrap ignition file.

func (*Provider) InfraReady

func (p *Provider) InfraReady(ctx context.Context, in clusterapi.InfraReadyInput) error

InfraReady is called once the installer infrastructure is ready.

func (*Provider) Name

func (p *Provider) Name() string

Name returns the name of the provider.

func (Provider) NetworkTimeout

func (p Provider) NetworkTimeout() time.Duration

NetworkTimeout uses the default timeout of 15 minutes to satisfy the Timeouts interface. Azure only needs special handling for machine provisioning timeouts.

func (*Provider) PostDestroy added in v0.90.17

func (p *Provider) PostDestroy(ctx context.Context, in clusterapi.PostDestroyerInput) error

PostDestroy removes SSH access from the network security rules and removes SSH port forwarding off the public load balancer when the bootstrap machine is destroyed.

func (*Provider) PostProvision

func (p *Provider) PostProvision(ctx context.Context, in clusterapi.PostProvisionInput) error

PostProvision provisions an external Load Balancer (when appropriate), and adds configuration for the MCS to the CAPI-provisioned internal LB.

func (Provider) ProvisionTimeout

func (p Provider) ProvisionTimeout() time.Duration

ProvisionTimeout bumps the machine provisioning timeout due to https://issues.redhat.com/browse/OCPBUGS-43625.

func (*Provider) PublicGatherEndpoint added in v0.90.17

func (*Provider) PublicGatherEndpoint() clusterapi.GatherEndpoint

PublicGatherEndpoint indicates that machine ready checks should NOT wait for an ExternalIP in the status and should use the API load balancer when gathering bootstrap log bundles.

Jump to

Keyboard shortcuts

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