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

add remove old kubeedge task #1983

Merged
merged 1 commit into from
May 12, 2022
Merged

add remove old kubeedge task #1983

merged 1 commit into from
May 12, 2022

Conversation

pixiake
Copy link
Collaborator

@pixiake pixiake commented May 9, 2022

What this PR does / why we need it:

The old version kubeedge, if it exists, should be deleted, otherwise there will be a conflict between the old and new versions.

Signed-off-by: pixiake guofeng@yunify.com

@ks-ci-bot ks-ci-bot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels May 9, 2022
@pixiake
Copy link
Collaborator Author

pixiake commented May 10, 2022

/cc @benjaminhuo @wenchajun

@benjaminhuo
Copy link
Member

@wenchajun Please double check that helm del kubeedge -n kubeedge remove both the old kubeedge and the edgewatcher we created.

Maybe use kubesphere v3.2.1 to test

@@ -1,3 +1,8 @@
- name: KubeEdge | Remove old kubeedge
shell: >
{{ bin_dir }}/helm del kubeedge -n kubeedge
Copy link
Member

Choose a reason for hiding this comment

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

This I tested in my local environment, I used the command helm del kubeedge -n kubeedge and it showed that iptable was not uninstalled, when I used another command helm uninstall kubeedge -n kubeedge, it showed success, is it possible to use the command uninstall?

Copy link
Member

@benjaminhuo benjaminhuo May 11, 2022

Choose a reason for hiding this comment

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

Both the EdgeWatcher deployment and the EdgeWatcherAgent daemonset can be deleted after helm uninstall kubeedge -n kubeedge ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I have updated the tasks of removing old kubeedge.

Signed-off-by: pixiake <guofeng@yunify.com>
@ks-ci-bot ks-ci-bot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels May 12, 2022
@ks-ci-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: pixiake, wenchajun

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@wenchajun
Copy link
Member

/lgtm

@ks-ci-bot ks-ci-bot added the lgtm Indicates that a PR is ready to be merged. label May 12, 2022
@ks-ci-bot
Copy link
Collaborator

LGTM label has been added.

Git tree hash: 29941563856dbec5218a99dad013453e1d7391f7

shell: |
{{ bin_dir }}/helm uninstall kubeedge -n kubeedge
{{ bin_dir }}/kubectl patch iptables -n kubeedge iptables -p '{"metadata":{"finalizers":null}}' --type merge
{{ bin_dir }}/kubectl delete ds -n kubeedge iptables
Copy link
Member

Choose a reason for hiding this comment

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

Maybe we need to remove CR of iptablesrules as well?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I not found CR of iptablesrules in cluster. When will the CR of iptablesrules be created?

Copy link
Member

Choose a reason for hiding this comment

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

When edge node is added

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I just tested it, and CR of iptablesrules will be automatically deleted, which will not affect the uninstallation of kubeedge.

Copy link
Member

Choose a reason for hiding this comment

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

perfect!

@ks-ci-bot ks-ci-bot merged commit 15a80f0 into kubesphere:master May 12, 2022
@pixiake
Copy link
Collaborator Author

pixiake commented May 12, 2022

/cherrypick release-3.3

@ks-ci-bot
Copy link
Collaborator

@pixiake: new pull request created: #1988

In response to this:

/cherrypick release-3.3

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants