kubeedge / website

KubeEdge website and documentation repo:
https://kubeedge.io
Apache License 2.0
54 stars 154 forks source link

keadm reset does not have `--kube-config` flag anymore. #643

Closed fujitatomoya closed 1 month ago

fujitatomoya commented 1 month ago

Which issue(s) this PR fixes:

N.A

root@tomoyafujita:~# keadm reset --kube-config=$HOME/.kube/config
Error: unknown flag: --kube-config
Usage:
  keadm reset [flags]

Examples:

For cloud node:
keadm reset

For edge node:
keadm reset

Flags:
      --cloudcore-ipport string          Use this key to set kube-config path, eg: $HOME/.kube/config (default "/root/.kube/config")
      --force                            Reset the node without prompting for confirmation
  -h, --help                             help for reset
      --remote-runtime-endpoint string   Use this key to set container runtime endpoint

execute keadm command failed:  unknown flag: --kube-config

No

N.A

kubeedge-bot commented 1 month ago

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: To complete the pull request process, please assign fisherxu after the PR has been reviewed. You can assign the PR to them by writing /assign @fisherxu in a comment when ready.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files: - **[OWNERS](https://github.com/kubeedge/website/blob/master/OWNERS)** Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment
fujitatomoya commented 1 month ago
root@tomoyafujita:~# keadm version
version: version.Info{Major:"1", Minor:"16", GitVersion:"v1.16.3", GitCommit:"4f1da43e6807c127e549e5d4859ed1b66c6f5806", GitTreeState:"clean", BuildDate:"2024-07-12T03:02:51Z", GoVersion:"go1.20.10", Compiler:"gc", Platform:"linux/amd64"}
root@tomoyafujita:~# keadm reset --kube-config=$HOME/.kube/config
Error: unknown flag: --kube-config
Usage:
  keadm reset [flags]

Examples:

For cloud node:
keadm reset

For edge node:
keadm reset

Flags:
      --cloudcore-ipport string          Use this key to set kube-config path, eg: $HOME/.kube/config (default "/root/.kube/config")
      --force                            Reset the node without prompting for confirmation
  -h, --help                             help for reset
      --remote-runtime-endpoint string   Use this key to set container runtime endpoint

execute keadm command failed:  unknown flag: --kube-config
wbc6080 commented 1 month ago

@fujitatomoya Yes, I have reproduced this result in my environment. This should be a bug in version 1.16. I will try to locate and fix it later.

fujitatomoya commented 1 month ago

@wbc6080 thanks for checking. if that is the backport miss or bug in specific version, please feel free to close this PR.

fujitatomoya commented 1 month ago

https://github.com/kubeedge/kubeedge/pull/5906 is the right way to take and replaces this one, i will go ahead to close this.

CCL @wbc6080