Skip to content
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

Merged
merged 1 commit into from
Oct 8, 2023
Merged

fix bug in node pool creation #2170

merged 1 commit into from
Oct 8, 2023

Conversation

xiaokouliu
Copy link
Contributor

1、fix bug in node pool creation

@@ -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))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里看直接把 data_disk 参数去掉了,但是输入还有这个参数呢

Copy link
Contributor Author

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))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个场景要不要加个e2e测试用例?

@lyu571
Copy link
Collaborator

lyu571 commented Oct 7, 2023

说下这次改动的根因和背景?

@@ -0,0 +1,3 @@
```release-note:bugfix
Copy link
Collaborator

@lyu571 lyu571 Oct 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

release-note:bug

@lyu571
Copy link
Collaborator

lyu571 commented Oct 8, 2023

release-note改下. @xiaokouliu
其余LGTM. @andrew-tx

Copy link
Collaborator

@andrew-tx andrew-tx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@andrew-tx andrew-tx merged commit 5182b44 into tencentcloudstack:master Oct 8, 2023
6 checks passed
hellertang pushed a commit that referenced this pull request Oct 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants