-
Notifications
You must be signed in to change notification settings - Fork 405
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
delete yurtctl-lock and yurt-tunnel-nodes when revert the whole cluster #540
Conversation
@Congrool: GitHub didn't allow me to assign the following users: your_reviewer. Note that only openyurtio members, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
First we check the configmap to ensure yurtctl-lock and yurt-tunnel-nodes exsit. ys3@ys-desktop:~/Github/openyurt$ kubectl get cm -A
NAMESPACE NAME DATA AGE
default kube-root-ca.crt 1 26m
kube-node-lease kube-root-ca.crt 1 26m
kube-public cluster-info 2 26m
kube-public kube-root-ca.crt 1 26m
kube-system coredns 1 26m
kube-system extension-apiserver-authentication 6 27m
kube-system kube-proxy 2 26m
kube-system kube-root-ca.crt 1 26m
kube-system kubeadm-config 2 26m
kube-system kubelet-config-1.20 1 26m
kube-system yurt-hub-cfg 1 3m
kube-system yurt-tunnel-nodes 1 2m39s
kube-system yurt-tunnel-server-cfg 4 3m
kube-system yurtctl-lock 0 3m51s
local-path-storage kube-root-ca.crt 1 26m
local-path-storage local-path-config 1 26m
ys3@ys-desktop:~/Github/openyurt$ ./_output/local/bin/linux/amd64/yurtctl revert --yurtctl-servant-image=openyurt/yurtctl-servant:v0.5.0-amd64-555716d
I1030 15:05:47.613824 1264334 revert.go:165] yurt controller manager is removed
I1030 15:05:47.640730 1264334 revert.go:175] serviceaccount for yurt controller manager is removed
I1030 15:05:47.655199 1264334 revert.go:185] clusterrole for yurt controller manager is removed
I1030 15:05:47.715017 1264334 revert.go:195] clusterrolebinding for yurt controller manager is removed
I1030 15:06:39.439657 1264334 util.go:494] servant job(yurtctl-enable-node-controller-openyurt-e2e-test-control-plane) has succeeded
I1030 15:06:39.439821 1264334 revert.go:220] complete enabling node-controller
I1030 15:06:59.497155 1264334 util.go:494] servant job(yurtctl-servant-revert-openyurt-e2e-test-worker) has succeeded
I1030 15:06:59.497283 1264334 revert.go:233] complete removing yurt-hub and resetting kubelet service on edge nodes
I1030 15:07:19.545228 1264334 util.go:494] servant job(yurtctl-servant-revert-openyurt-e2e-test-control-plane) has succeeded
I1030 15:07:19.545369 1264334 revert.go:241] complete removing yurt-hub and resetting kubelet service on cloud nodes
I1030 15:07:19.713284 1264334 revert.go:249] delete yurthub clusterrole and clusterrolebinding
ys3@ys-desktop:~/Github/openyurt$ kubectl get cm -A
NAMESPACE NAME DATA AGE
default kube-root-ca.crt 1 30m
kube-node-lease kube-root-ca.crt 1 30m
kube-public cluster-info 2 30m
kube-public kube-root-ca.crt 1 30m
kube-system coredns 1 30m
kube-system extension-apiserver-authentication 6 30m
kube-system kube-proxy 2 30m
kube-system kube-root-ca.crt 1 30m
kube-system kubeadm-config 2 30m
kube-system kubelet-config-1.20 1 30m
local-path-storage kube-root-ca.crt 1 30m
local-path-storage local-path-config 1 30m We can find that both yurtctl-lock and yurt-tunnel-nodes have been deleted. |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Congrool, rambohe-ch The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind bug
What this PR does / why we need it:
Delete the yurt-tunnel-nodes configmap and yurtctl-lock when revert the whole openyurt cluster back to k8s cluster.
Which issue(s) this PR fixes:
Fixes #531
Special notes for your reviewer:
I'll add the test log in the following comment.