Skip to content

feat(tke): [119900163]tke scale worker taints parameters #2859

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

Merged
merged 17 commits into from
Sep 30, 2024

Conversation

andrew-tx
Copy link
Collaborator

No description provided.

@@ -496,6 +496,30 @@ func tkeGetInstanceAdvancedPara(dMap map[string]interface{}, meta interface{}) (
setting.PreStartUserScript = helper.String(v.(string))
}

if v, ok := dMap["taints"]; ok {
Copy link
Contributor

Choose a reason for hiding this comment

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

taints加到tkeGetInstanceAdvancedPara()里有问题吧。这个方法是多个资源共用的。node_pool也会用这个方法。

@@ -609,3 +625,55 @@ func resourceTencentCloudKubernetesScaleWorkerDeleteOnExit(ctx context.Context)
}
return nil
}

func resourceTencentCloudKubernetesScaleWorkerReadPostFillRequest1(ctx context.Context, req *cvm.DescribeInstancesRequest) error {
Copy link
Contributor

Choose a reason for hiding this comment

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

这个方法的改动跟taints有什么关系?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

把之前你改的那段放到 Hook 里面了(需要改动 DSL),重新生成代码

@andrew-tx andrew-tx changed the title feat(tke): tke scale worker taints parameters feat(tke): [119900163]tke scale worker taints parameters Sep 30, 2024
@andrew-tx andrew-tx force-pushed the dev/tke-node-pool-taints branch from 91c8499 to fbe2f7b Compare September 30, 2024 05:10
@andrew-tx andrew-tx force-pushed the dev/tke-node-pool-taints branch from 372a9b1 to 994b235 Compare September 30, 2024 05:15
@andrew-tx
Copy link
Collaborator Author

image image

@hellertang hellertang merged commit 8ef0f3e into master Sep 30, 2024
8 checks passed
@hellertang hellertang deleted the dev/tke-node-pool-taints branch September 30, 2024 10:14
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