Documentation ¶
Index ¶
- Constants
- func GetRegistryEnvsForLocation(location string, namespace string) ([]string, error)
- func GetUdistributionKey(location, namespace string) string
- func GetUdistributionTransportForLocation(uid k8stypes.UID, location, namespace string, log logrus.FieldLogger) (*udistribution.UdistributionTransport, error)
- type BackupPlugin
- type RestorePlugin
Constants ¶
View Source
const ( // AWS registry env vars RegistryStorageEnvVarKey = "REGISTRY_STORAGE" RegistryStorageS3AccesskeyEnvVarKey = "REGISTRY_STORAGE_S3_ACCESSKEY" RegistryStorageS3BucketEnvVarKey = "REGISTRY_STORAGE_S3_BUCKET" RegistryStorageS3RegionEnvVarKey = "REGISTRY_STORAGE_S3_REGION" RegistryStorageS3SecretkeyEnvVarKey = "REGISTRY_STORAGE_S3_SECRETKEY" RegistryStorageS3RegionendpointEnvVarKey = "REGISTRY_STORAGE_S3_REGIONENDPOINT" RegistryStorageS3RootdirectoryEnvVarKey = "REGISTRY_STORAGE_S3_ROOTDIRECTORY" RegistryStorageS3SkipverifyEnvVarKey = "REGISTRY_STORAGE_S3_SKIPVERIFY" // Azure registry env vars RegistryStorageAzureContainerEnvVarKey = "REGISTRY_STORAGE_AZURE_CONTAINER" RegistryStorageAzureAccountnameEnvVarKey = "REGISTRY_STORAGE_AZURE_ACCOUNTNAME" RegistryStorageAzureAccountkeyEnvVarKey = "REGISTRY_STORAGE_AZURE_ACCOUNTKEY" RegistryStorageAzureSPNClientIDEnvVarKey = "REGISTRY_STORAGE_AZURE_SPN_CLIENT_ID" RegistryStorageAzureSPNClientSecretEnvVarKey = "REGISTRY_STORAGE_AZURE_SPN_CLIENT_SECRET" RegistryStorageAzureSPNTenantIDEnvVarKey = "REGISTRY_STORAGE_AZURE_SPN_TENANT_ID" RegistryStorageAzureAADEndpointEnvVarKey = "REGISTRY_STORAGE_AZURE_AAD_ENDPOINT" // GCP registry env vars RegistryStorageGCSBucket = "REGISTRY_STORAGE_GCS_BUCKET" RegistryStorageGCSKeyfile = "REGISTRY_STORAGE_GCS_KEYFILE" RegistryStorageGCSRootdirectory = "REGISTRY_STORAGE_GCS_ROOTDIRECTORY" )
Registry Env var keys
View Source
const ( S3 = "s3" Azure = "azure" GCS = "gcs" AWSProvider = "aws" AzureProvider = "azure" GCPProvider = "gcp" Region = "region" Profile = "profile" S3URL = "s3Url" S3ForcePathStyle = "s3ForcePathStyle" InsecureSkipTLSVerify = "insecureSkipTLSVerify" StorageAccount = "storageAccount" ResourceGroup = "resourceGroup" )
provider specific object storage
Variables ¶
This section is empty.
Functions ¶
func GetRegistryEnvsForLocation ¶ added in v1.1.0
Get Registry environment variables to create registry client This should be called once per backup.
func GetUdistributionKey ¶ added in v1.1.0
func GetUdistributionTransportForLocation ¶ added in v1.1.0
func GetUdistributionTransportForLocation(uid k8stypes.UID, location, namespace string, log logrus.FieldLogger) (*udistribution.UdistributionTransport, error)
Types ¶
type BackupPlugin ¶
type BackupPlugin struct {
Log logrus.FieldLogger
}
BackupPlugin is a backup item action plugin for Heptio Ark.
func (*BackupPlugin) AppliesTo ¶
func (p *BackupPlugin) AppliesTo() (velero.ResourceSelector, error)
AppliesTo returns a velero.ResourceSelector that applies to imagestreams.
func (*BackupPlugin) Execute ¶
func (p *BackupPlugin) Execute(item runtime.Unstructured, backup *v1.Backup) (runtime.Unstructured, []velero.ResourceIdentifier, error)
Execute copies local registry images into migration registry
type RestorePlugin ¶
type RestorePlugin struct {
Log logrus.FieldLogger
}
MyRestorePlugin is a restore item action plugin for Velero
func (*RestorePlugin) AppliesTo ¶
func (p *RestorePlugin) AppliesTo() (velero.ResourceSelector, error)
AppliesTo returns a velero.ResourceSelector that applies to imagestreams
func (*RestorePlugin) Execute ¶
func (p *RestorePlugin) Execute(input *velero.RestoreItemActionExecuteInput) (*velero.RestoreItemActionExecuteOutput, error)
Execute copies local registry images from migration registry into target cluster local registry
Click to show internal directories.
Click to hide internal directories.