Skip to content

Error while uninstalling operator #24

@varshaprasad96

Description

@varshaprasad96

Tried installing cockroachdb operator using the commands as given in demo.sh with the binary built from master.

Steps followed:

  1. Install operator - kubectl-operator install cockroachdb --create-operator-group -v 2.1.1
    Output - Operator is installed successfully.

  2. Uninstall operator - kubectl-operator uninstall cockroachdb --delete-crds --delete-operator-groups
    Output:

subscription "cockroachdb" deleted
uninstall operator: delete clusterserviceversion "": resource name may not be empty

When I check for the csv available in cluster after running the uninstall command, I get this:

➜  kubectl-operator git:(main) k get csv --all-namespaces | grep -i cockroachdb
default           cockroachdb.v2.1.1   CockroachDB      2.1.1     cockroachdb.v2.0.9   Succeeded
kube-node-lease   cockroachdb.v2.1.1   CockroachDB      2.1.1     cockroachdb.v2.0.9   Succeeded
kube-public       cockroachdb.v2.1.1   CockroachDB      2.1.1     cockroachdb.v2.0.9   Succeeded
kube-system       cockroachdb.v2.1.1   CockroachDB      2.1.1     cockroachdb.v2.0.9   Succeeded
olm               cockroachdb.v2.1.1   CockroachDB      2.1.1     cockroachdb.v2.0.9   Succeeded
operators         cockroachdb.v2.1.1   CockroachDB      2.1.1     cockroachdb.v2.0.9   Succeeded

The crds are not deleted either:

➜  kubectl-operator git:(main) k get crds --all-namespaces | grep -i cockroachdb
cockroachdbs.charts.helm.k8s.io               2020-11-03T03:01:41Z

Expected output: The operator is uninstalled successfully and all the resources are deleted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions