azureconstants

package
v1.27.1 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

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"
	MaxSharesField                = "maxshares"
	MinimumDiskSizeGiB            = 1
	NetworkAccessPolicyField      = "networkaccesspolicy"
	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"
	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"
	DeviceSettingsKeyPrefix       = "device-setting/"
	BlockDeviceRootPathLinux      = "/sys/block"
	DummyBlockDevicePathLinux     = "/sys/block/sda"
	// 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.

Jump to

Keyboard shortcuts

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