TKE-34: add delete supernode cookbook#59
Open
wenjiehs wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Doc Change Report
来源 issue: TKE-34
修改范围:
cookbook/supernode/delete_supernode.py,提供删除超级节点 cookbook,默认 dry-run,真实删除需要--confirm-delete。src/content/docs/basics/supernode/03-delete-supernode.md的 Cookbook 示例,链接到真实源码并补充可复制命令。cookbook/supernode/README.md和cookbook/README.md的索引。canonical_doc_path:
src/content/docs/basics/supernode/03-delete-supernode.mdoperation_id:
tke.supernode.delete事实来源:
ClusterId、NodeNames、Force参数语义,以及运行中 Pod 错误码。cookbook/cluster/delete_cluster.py、cookbook/common/auth.py、cookbook/supernode/README.md。采用理由: 对齐 cookbook 的 dry-run/confirm、认证客户端和目录索引风格。Static Compile:
python3 -m py_compile cookbook/supernode/delete_supernode.pypassedpython3 -m py_compile cookbook/supernode/*.pypassedgit diff --checkpassedmkdocs build --strictskipped: 仓库不存在mkdocs.yml或mkdocs.yamlDry Run Compile:
python3 cookbook/supernode/delete_supernode.py --helppassedpython3 cookbook/supernode/delete_supernode.py --cluster-id cls-xxxxxxxx --node-name eklet-subnet-xxxxxxxx-0 --skip-pod-checkpassed; 未提交云 API 请求npm run buildpassedLive Verify:
--confirm-delete路径会真实调用 Tencent CloudDeleteClusterVirtualNode删除超级节点,本次仅做 dry-run 和静态验证,未真实创建或删除云资源。剩余人工确认项: