Skip to content

Commit

Permalink
add instance type 1002 support
Browse files Browse the repository at this point in the history
  • Loading branch information
qiangzii committed Mar 19, 2024
1 parent 016ba28 commit ed830ac
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
.PHONY: all disk

DISK_IMAGE_NAME=csiplugin/csi-qingcloud
DISK_VERSION=v1.4.0
DISK_VERSION=v1.4.1-alpha
ROOT_PATH=$(pwd)
PACKAGE_LIST=./cmd/... ./pkg/...

Expand Down
8 changes: 8 additions & 0 deletions pkg/disk/driver/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ const (
TPSC3InstanceType InstanceType = 403
TPSC4InstanceType InstanceType = 404
TPSC5InstanceType InstanceType = 405
AMDFireProS7150InstanceType InstanceType = 1002
)

var InstanceTypeName = map[InstanceType]string{
Expand All @@ -208,6 +209,7 @@ var InstanceTypeName = map[InstanceType]string{
403: "TPSC3",
404: "TPSC4",
405: "TPSC5",
1002: "AMDFireProS7150",
}

var InstanceTypeValue = map[string]InstanceType{
Expand All @@ -228,6 +230,7 @@ var InstanceTypeValue = map[string]InstanceType{
"TPSC3": 403,
"TPSC4": 404,
"TPSC5": 405,
"AMDFireProS7150": 1002,
}

var InstanceTypeAttachPreferred = map[InstanceType]VolumeType{
Expand All @@ -248,6 +251,7 @@ var InstanceTypeAttachPreferred = map[InstanceType]VolumeType{
TPSC3InstanceType: ThirdPartyStorageType,
TPSC4InstanceType: ThirdPartyStorageType,
TPSC5InstanceType: ThirdPartyStorageType,
AMDFireProS7150InstanceType: NeonSANHDDVolumeType,
}

var VolumeTypeAttachConstraint = map[VolumeType][]InstanceType{
Expand All @@ -263,6 +267,7 @@ var VolumeTypeAttachConstraint = map[VolumeType][]InstanceType{
Enterprise2InstanceType,
PremiumInstanceType,
NvidiaAmpereG3InstanceType,
AMDFireProS7150InstanceType,
},
SuperHighPerformanceVolumeType: {
SuperHighPerformanceInstanceType,
Expand All @@ -282,6 +287,7 @@ var VolumeTypeAttachConstraint = map[VolumeType][]InstanceType{
EnterpriseCompute3InstanceType,
PremiumInstanceType,
NvidiaAmpereG3InstanceType,
AMDFireProS7150InstanceType,
},
NeonSANHDDVolumeType: {
HighPerformanceInstanceType,
Expand All @@ -295,6 +301,7 @@ var VolumeTypeAttachConstraint = map[VolumeType][]InstanceType{
EnterpriseCompute3InstanceType,
PremiumInstanceType,
NvidiaAmpereG3InstanceType,
AMDFireProS7150InstanceType,
},
NeonSANRDMAVolumeType: {
HighPerformanceInstanceType,
Expand All @@ -308,6 +315,7 @@ var VolumeTypeAttachConstraint = map[VolumeType][]InstanceType{
EnterpriseCompute3InstanceType,
PremiumInstanceType,
NvidiaAmpereG3InstanceType,
AMDFireProS7150InstanceType,
},
ThirdPartyStorageType: {
StandardInstanceType,
Expand Down

0 comments on commit ed830ac

Please sign in to comment.