-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix bug in node pool creation #2170
fix bug in node pool creation #2170
Conversation
@@ -718,7 +718,7 @@ func composedKubernetesAsScalingConfigParaSerial(dMap map[string]interface{}, me | |||
|
|||
if v, ok := dMap["data_disk"]; ok { | |||
dataDisks := v.([]interface{}) | |||
request.DataDisks = make([]*as.DataDisk, 0, len(dataDisks)) | |||
//request.DataDisks = make([]*as.DataDisk, 0, len(dataDisks)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里看直接把 data_disk 参数去掉了,但是输入还有这个参数呢
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
如果不设置data_disk 参数,就不初始化,如果设置data_disk 参数,会使用request.DataDisks = append(request.DataDisks, &dataDisk)初始化参数
@@ -718,7 +718,7 @@ func composedKubernetesAsScalingConfigParaSerial(dMap map[string]interface{}, me | |||
|
|||
if v, ok := dMap["data_disk"]; ok { | |||
dataDisks := v.([]interface{}) | |||
request.DataDisks = make([]*as.DataDisk, 0, len(dataDisks)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个场景要不要加个e2e测试用例?
说下这次改动的根因和背景? |
.changelog/2170.txt
Outdated
@@ -0,0 +1,3 @@ | |||
```release-note:bugfix |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
release-note:bug
release-note改下. @xiaokouliu |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Co-authored-by: alantlliu <[email protected]>
1、fix bug in node pool creation