Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDriver ¶
func NewDriver(ctx context.Context, c *imageregistryv1.ImageRegistryConfigStorageAzure, listers *regopclient.StorageListers) *driver
NewDriver creates a new storage driver for Azure Blob Storage.
Types ¶
type Azure ¶
type Azure struct { // IPI SubscriptionID string ClientID string ClientSecret string TenantID string ResourceGroup string Region string FederatedTokenFile string // UPI AccountKey string }
Azure holds configuration used to reach Azure's endpoints.
func GetConfig ¶
func GetConfig(secLister kcorelisters.SecretNamespaceLister, infraLister configlisters.InfrastructureLister) (*Azure, error)
GetConfig reads configuration for the Azure cloud platform services. It first attempts to load credentials from ImageRegistryPrivateConfigurationUser secret, if this secret is not present this function loads credentials from cluster wide config present on secret CloudCredentialsName.
Click to show internal directories.
Click to hide internal directories.