Merge pull request #101256 from Jiawei0227/length2

Relax csiNodeIDMaxLength length limit to 256
This commit is contained in:
Kubernetes Prow Robot
2021-06-23 02:10:10 -07:00
committed by GitHub
3 changed files with 7 additions and 7 deletions

View File

@@ -43,8 +43,8 @@ const (
maxAttachedVolumeMetadataSize = 256 * (1 << 10) // 256 kB
maxVolumeErrorMessageSize = 1024
csiNodeIDMaxLength = 128
csiNodeIDLongerMaxLength = 192
csiNodeIDMaxLength = 192
csiNodeIDLongerMaxLength = 256
)
// CSINodeValidationOptions contains the validation options for validating CSINode

View File

@@ -1034,7 +1034,7 @@ func TestCSINodeValidation(t *testing.T) {
driverName2 := "1io.kubernetes-storage-2-csi-driver3"
longName := "my-a-b-c-d-c-f-g-h-i-j-k-l-m-n-o-p-q-r-s-t-u-v-w-x-y-z-ABCDEFGHIJKLMNOPQRSTUVWXYZ-driver" // 88 chars
nodeID := "nodeA"
longID := longName + longName // 176 chars
longID := longName + longName + "abcdefghijklmnopqrstuvwxyz" // 202 chars
successCases := []storage.CSINode{
{
// driver name: dot only