Skip to content

Commit

Permalink
chore: do not remove kubeblocks repo when uninstall kb (#566)
Browse files Browse the repository at this point in the history
  • Loading branch information
ldming authored Feb 18, 2025
1 parent 5daf25b commit 81b7b15
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions pkg/cmd/kubeblocks/uninstall.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ import (
"github.com/pkg/errors"
"github.com/spf13/cobra"
"golang.org/x/exp/maps"
"helm.sh/helm/v3/pkg/repo"
apierrors "k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
Expand Down Expand Up @@ -229,10 +228,6 @@ func (o *UninstallOptions) Uninstall() error {
// remove KB release
printSpinner(newSpinner("Uninstall helm release "+types.KubeBlocksReleaseName+" "+v.KubeBlocks),
chart.Uninstall(o.HelmCfg))

// remove repo
printSpinner(newSpinner("Remove helm repo "+types.KubeBlocksChartName),
helm.RemoveRepo(&repo.Entry{Name: types.KubeBlocksChartName}))
}

// delete namespace if it is default namespace
Expand Down

0 comments on commit 81b7b15

Please sign in to comment.