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" DiskEncryptionTypeField = "diskencryptiontype" DiskAccessIDField = "diskaccessid" 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" PublicNetworkAccessField = "publicnetworkaccess" NotFound = "NotFound" PerfProfileBasic = "basic" PerfProfileAdvanced = "advanced" 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" DataAccessAuthModeField = "dataaccessauthmode" ResourceNotFound = "ResourceNotFound" SkuNameField = "skuname" SourceDiskSearchMaxDepth = 10 SourceSnapshot = "snapshot" SourceVolume = "volume" StandardSsdAccountPrefix = "standardssd" StorageAccountTypeField = "storageaccounttype" TagsField = "tags" GetDiskThrottlingKey = "getdiskthrottlingKey" CheckDiskLunThrottlingKey = "checkdisklunthrottlingKey" 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" PerformancePlusField = "enableperformanceplus" PerformancePlusMinimumDiskSizeGiB = 513 AttachDiskInitialDelayField = "attachdiskinitialdelay" TooManyRequests = "TooManyRequests" ClientThrottled = "client throttled" VolumeID = "volumeid" Node = "node" SourceResourceID = "source_resource_id" SnapshotName = "snapshot_name" SnapshotID = "snapshot_id" DeviceSettingsKeyPrefix = "device-setting/" BlockDeviceRootPathLinux = "/sys/block" DummyBlockDevicePathLinux = "/sys/block/sda" // define different sleep time when hit throttling SnapshotOpThrottlingSleepSec = 50 MaxThrottlingSleepSec = 1200 )
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.