cnrancher / kube-explorer

A portable explorer for Kubernetes, without any dependency.
Apache License 2.0
215 stars 26 forks source link

关闭 kubectl shell 后相关对象未被清理 #20

Closed mikeyzm closed 1 year ago

mikeyzm commented 1 year ago

版本:autok3s v0.5.2-rc2 随附的 kube-explorer v0.2.9

每次打开 kubectl shell 都会创建 ClusterRoleBinding ClusterRole ConfigMap 等对象,但关闭后并未对这些对象进行清理。

复现步骤

  1. 进入 kube-explorer
  2. 点击右上角 kubectl shell
  3. 关闭 shell 窗口
  4. 重复以上操作,观察到上述类型的孤立对象不断增加

image

预期行为

关闭 shell 后清理相关对象

niusmallnan commented 1 year ago

Thanks for your detailed issue. Right! These orphan resources should be cleaned up.

niusmallnan commented 1 year ago

It should be fixed by v0.2.10-rc4.