azure

package
v0.0.0-...-e7c744b Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// PersistentVolumeProvider is a config value for ARK
	PersistentVolumeProvider = "azure"
	// BackupStorageProvider is a config value for ARK
	BackupStorageProvider = "azure"
)

Variables

This section is empty.

Functions

func GetAzureClusterResourceGroupName

func GetAzureClusterResourceGroupName(distribution string, clusterResourceGroup string, clusterName string, location string) string

func GetSecretForBucket

func GetSecretForBucket(secret *secret.SecretItemResponse, storageAccount string,
	bucketResourceGroup string, clusterResourceGroup string,
) (string, error)

GetSecretForBucket gets formatted secret for ARK backup bucket

func GetSecretForCluster

func GetSecretForCluster(secret *secret.SecretItemResponse, resourceGroup string) (string, error)

GetSecretForCluster gets formatted secret for cluster

func NewObjectStore

func NewObjectStore(ctx providers.ObjectStoreContext) (velero.ObjectStore, error)

NewObjectStore creates a new objectStore

Types

type Secret

type Secret struct {
	// For general access
	ClientID       string `json:"AZURE_CLIENT_ID,omitempty"`
	ClientSecret   string `json:"AZURE_CLIENT_SECRET,omitempty"`
	SubscriptionID string `json:"AZURE_SUBSCRIPTION_ID,omitempty"`
	TenantID       string `json:"AZURE_TENANT_ID,omitempty"`

	// For bucket access
	ResourceGroup  string `json:"AZURE_RESOURCE_GROUP,omitempty"`
	StorageAccount string `json:"AZURE_STORAGE_ACCOUNT_ID,omitempty"`
	StorageKey     string `json:"AZURE_STORAGE_KEY,omitempty"`
}

Secret describes values for Azure access

Jump to

Keyboard shortcuts

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