Skip to content

Commit

Permalink
Revert "add yurt-app-manager yurtappdaemon/yurtingress deploy and rev…
Browse files Browse the repository at this point in the history
…ert"

This reverts commit ba28364.
  • Loading branch information
JameKeal committed Apr 15, 2022
1 parent ba28364 commit 3ce2582
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 564 deletions.
18 changes: 0 additions & 18 deletions pkg/yurtctl/cmd/revert/revert.go
Original file line number Diff line number Diff line change
Expand Up @@ -452,24 +452,6 @@ func removeYurtAppManager(client *kubernetes.Clientset, yurtAppManagerClientSet
}
klog.Info("UnitedDeploymentcrd for yurt app manager is removed")
klog.V(4).Infof("UnitedDeploymentCRD/%s is deleted", "UnitedDeployment")

// 12. remove YurtAppDaemon
if err := kubeutil.DeleteCRDResource(client, yurtAppManagerClientSet,
"YurtAppDaemon", "yurtappdaemons.apps.openyurt.io", []byte(constants.YurtAppManagerYurtAppDaemon)); err != nil {
return fmt.Errorf("fail to delete the YurtAppDaemonCRD/%s: %s",
"YurtAppDaemon", err)
}
klog.Info("YurtAppDaemonCRD for yurt app manager is removed")
klog.V(4).Infof("YurtAppDaemonCRD/%s is deleted", "YurtAppDaemon")

// 13. remove YurtIngress
if err := kubeutil.DeleteCRDResource(client, yurtAppManagerClientSet,
"YurtIngress", "yurtingresses.apps.openyurt.io", []byte(constants.YurtAppManagerYurtIngress)); err != nil {
return fmt.Errorf("fail to delete the YurtIngressCRD/%s: %s",
"YurtIngress", err)
}
klog.Info("YurtIngressCRD for yurt app manager is removed")
klog.V(4).Infof("YurtIngressCRD/%s is deleted", "YurtIngress")
return nil
}

Expand Down
Loading

0 comments on commit 3ce2582

Please sign in to comment.