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

kubectl minio plugin doesn't properly cleanup after operator 3.0.29 #473

Closed
jhoblitt opened this issue Feb 18, 2021 · 3 comments · Fixed by #486
Closed

kubectl minio plugin doesn't properly cleanup after operator 3.0.29 #473

jhoblitt opened this issue Feb 18, 2021 · 3 comments · Fixed by #486

Comments

@jhoblitt
Copy link
Contributor

-bash-4.2$ kubectl krew list
PLUGIN  VERSION
krew    v0.4.0
minio   v3.0.29
-bash-4.2$ kubectl minio delete
Are you sure you want to delete ALL the MinIO Tenants and MinIO Operator? [Y/N]: y
Error: serviceaccounts "minio-operator" not found
-bash-4.2$ 
-bash-4.2$ kubectl minio init --image=minio/k8s-operator:v4.0.0
CustomResourceDefinition tenants.minio.min.io: created
ClusterRole minio-operator-role: created
ServiceAccount minio-operator: created
Error: ClusterRoleBinding minio-operator-binding: already present, skipped

Your Environment

  • Version used (minio-operator): 3.0.29
  • Environment name and version (e.g. kubernetes v1.17.2): rke 1.19.7
  • Server type and version: dell r740s
  • Operating System and version (uname -a): Linux chonchon01.cp.lsst.org 3.10.0-1160.15.2.el7.x86_64 #1 SMP Wed Feb 3 15:06:38 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
@jhoblitt
Copy link
Contributor Author

The help for delete claims that the default namespace is default but it still only does a partial cleanup with the -n flag. E.g. the operator pod is still running.

-bash-4.2$ kubectl minio delete -h

'delete' command delete MinIO Operator deployment along with all the tenants.

Usage:
  minio delete [flags]

Examples:
  kubectl minio delete

Flags:
  -h, --help               help for delete
  -n, --namespace string   namespace scope for this request (default "default")
-bash-4.2$ kubectl minio delete -n minio-operator
Are you sure you want to delete ALL the MinIO Tenants and MinIO Operator? [Y/N]: y
Error: customresourcedefinitions.apiextensions.k8s.io "tenants.minio.min.io" not found

@cesnietor
Copy link
Contributor

@jhoblitt thanks for reporting the issue, I've sent one pr to fix some issues. ^

@jhoblitt
Copy link
Contributor Author

I haven't checked all the resources yet but I can confirm that at least the clusterrolebinding for the console is now being cleaned up. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants