Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Yurtctl revert adds the function of deleting yurt app manager #555

Merged
merged 4 commits into from
Nov 5, 2021
Merged

Yurtctl revert adds the function of deleting yurt app manager #555

merged 4 commits into from
Nov 5, 2021

Conversation

yanyhui
Copy link
Member

@yanyhui yanyhui commented Nov 4, 2021

What type of PR is this?

Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespace from that line:
/kind bug
/kind documentation
/kind enhancement
/kind good-first-issue
/kind feature
/kind question
/kind design
/sig ai
/sig iot
/sig network
/sig storage
/sig storage

/kind feature

What this PR does / why we need it:

Automatically delete the yurtappmanager function.

Which issue(s) this PR fixes:

Fixes #392

Special notes for your reviewer:

Does this PR introduce a user-facing change?


other Note

@openyurt-bot
Copy link
Collaborator

@yanyhui: 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.
For more information please see the contributor guide

In response to this:

What type of PR is this?

Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespace from that line:
/kind bug
/kind documentation
/kind enhancement
/kind good-first-issue
/kind feature
/kind question
/kind design
/sig ai
/sig iot
/sig network
/sig storage
/sig storage

/kind feature

What this PR does / why we need it:

Automatically delete the yurtappmanager function.

Which issue(s) this PR fixes:

Fixes #392

Special notes for your reviewer:

Does this PR introduce a user-facing change?


other Note

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.

@openyurt-bot openyurt-bot added the size/L size/L: 100-499 label Nov 4, 2021
@openyurt-bot openyurt-bot requested review from kadisi and qclc November 4, 2021 07:04
@@ -20,6 +20,8 @@ import (
"context"
"fmt"

"k8s.io/client-go/dynamic"
Copy link
Member

Choose a reason for hiding this comment

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

Please adjust the correct order

func removeYurtAppManager(client *kubernetes.Clientset, yurtAppManagerClientSet dynamic.Interface) error {
// 1. remove the Deployment
if err := client.AppsV1().
Deployments(constants.YurttunnelNamespace).
Copy link
Member

Choose a reason for hiding this comment

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

How about rename constants.YurttunnelNamespace bacause constants.YurttunnelNamespace is used in func removeYurtAppManager and func removeYurtTunnelServer.

@Peeknut
Copy link
Member

Peeknut commented Nov 5, 2021

/lgtm

@rambohe-ch
Copy link
Member

/approve

@rambohe-ch
Copy link
Member

/lgtm
/approve

@openyurt-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: rambohe-ch, yanyhui

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

@openyurt-bot openyurt-bot added the approved approved label Nov 5, 2021
@rambohe-ch rambohe-ch merged commit 2d5c717 into openyurtio:master Nov 5, 2021
MrGirl pushed a commit to MrGirl/openyurt that referenced this pull request Mar 29, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
approved approved lgtm lgtm size/L size/L: 100-499
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Yurtctl revert adds the function of deleting yurt app manager.
4 participants