Documentation ¶
Index ¶
Constants ¶
View Source
const ( AzureDiskCSIDriverName = "azuredisk_csi_driver" CachingModeField = "cachingmode" DefaultAzureCredentialFileEnv = "AZURE_CREDENTIAL_FILE" DefaultCredFilePathLinux = "/etc/kubernetes/azure.json" DefaultCredFilePathWindows = "C:\\k\\azure.json" DefaultDriverName = "disk.csi.azure.com" DesIDField = "diskencryptionsetid" DiskAccessIDField = "diskaccessid" DiskEncryptionSetID = "diskencryptionsetid" DiskIOPSReadWriteField = "diskiopsreadwrite" DiskMBPSReadWriteField = "diskmbpsreadwrite" DiskNameField = "diskname" EnableBurstingField = "enablebursting" ErrDiskNotFound = "not found" FsTypeField = "fstype" IncrementalField = "incremental" KindField = "kind" LocationField = "location" LogicalSectorSizeField = "logicalsectorsize" LUN = "LUN" MinimumDiskSizeGiB = 1 NetworkAccessPolicyField = "networkaccesspolicy" NotFound = "NotFound" PerfProfileBasic = "basic" PerfProfileField = "perfprofile" PerfProfileNone = "none" PremiumAccountPrefix = "premium" PvcNameKey = "csi.storage.k8s.io/pvc/name" PvcNamespaceKey = "csi.storage.k8s.io/pvc/namespace" PvcNamespaceTag = "kubernetes.io-created-for-pvc-namespace" PvcNameTag = "kubernetes.io-created-for-pvc-name" PvNameKey = "csi.storage.k8s.io/pv/name" PvNameTag = "kubernetes.io-created-for-pv-name" RateLimited = "rate limited" RequestedSizeGib = "requestedsizegib" ResizeRequired = "resizeRequired" SubscriptionIDField = "subscriptionid" ResourceGroupField = "resourcegroup" ResourceNotFound = "ResourceNotFound" SkuNameField = "skuname" SourceDiskSearchMaxDepth = 10 SourceSnapshot = "snapshot" SourceVolume = "volume" StandardSsdAccountPrefix = "standardssd" StorageAccountTypeField = "storageaccounttype" TagsField = "tags" ThrottlingKey = "throttlingKey" TrueValue = "true" FalseValue = "false" UserAgentField = "useragent" VolumeAttributePartition = "partition" WellKnownTopologyKey = "topology.kubernetes.io/zone" InstanceTypeKey = "node.kubernetes.io/instance-type" WriteAcceleratorEnabled = "writeacceleratorenabled" ZonedField = "zoned" EnableAsyncAttachField = "enableasyncattach" TooManyRequests = "TooManyRequests" ClientThrottled = "client throttled" VolumeID = "volumeid" Node = "node" SourceResourceID = "source_resource_id" SnapshotName = "snapshot_name" SnapshotID = "snapshot_id" // define different sleep time when hit throttling SnapshotOpThrottlingSleepSec = 50 )
Variables ¶
View Source
var ( // ManagedDiskPath is described here: https://docs.microsoft.com/en-us/rest/api/compute/disks/createorupdate#create-a-managed-disk-from-an-existing-managed-disk-in-the-same-or-different-subscription. ManagedDiskPath = "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Compute/disks/%s" ManagedDiskPathRE = regexp.MustCompile(`(?i).*/subscriptions/(?:.*)/resourceGroups/(?:.*)/providers/Microsoft.Compute/disks/(.+)`) )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.