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

Write an article on cleaning up operator and operands #470

Open
alberttwong opened this issue Mar 14, 2024 · 0 comments
Open

Write an article on cleaning up operator and operands #470

alberttwong opened this issue Mar 14, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@alberttwong
Copy link
Contributor

alberttwong commented Mar 14, 2024

Similar to https://kubebyexample.com/learning-paths/operator-framework/operator-lifecycle-manager/cleaning-operators-and-operands

atwong@Albert-CelerData sroperatortest % kubectl get subscription -n starrocks
error: the server doesn't have a resource type "subscription"
atwong@Albert-CelerData sroperatortest % kubectl get clusterserviceversion -n starrocks
error: the server doesn't have a resource type "clusterserviceversion"
atwong@Albert-CelerData sroperatortest % kubectl delete starrocks starrocks
error: the server doesn't have a resource type "starrocks"
atwong@Albert-CelerData sroperatortest % kubectl delete -f starrocks-fe-and-be.yaml
starrockscluster.starrocks.com "starrockscluster-sample" deleted
atwong@Albert-CelerData sroperatortest % kubectl -n starrocks get pods
NAME                                      READY   STATUS    RESTARTS   AGE
kube-starrocks-operator-9bb77f7b9-bcqcm   1/1     Running   1          18h
atwong@Albert-CelerData sroperatortest % kubectl delete -f https://raw.githubusercontent.com/StarRocks/starrocks-kubernetes-operator/main/deploy/operator.yaml
namespace "starrocks" deleted
serviceaccount "starrocks" deleted
clusterrole.rbac.authorization.k8s.io "kube-starrocks-operator" deleted
clusterrolebinding.rbac.authorization.k8s.io "kube-starrocks-operator" deleted
role.rbac.authorization.k8s.io "cn-leader-election-role" deleted
rolebinding.rbac.authorization.k8s.io "cn-leader-election-rolebinding" deleted
deployment.apps "kube-starrocks-operator" deleted
atwong@Albert-CelerData sroperatortest % kubectl get all -n starrocks
No resources found in starrocks namespace.
@alberttwong alberttwong added the enhancement New feature or request label Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant