smpio / kubernator

Alternative Kubernetes UI
https://hub.docker.com/r/smpio/kubernator/
MIT License
478 stars 37 forks source link

Test new object cleanup method #32

Closed nailgun closed 4 years ago

nailgun commented 6 years ago

kubectl get has --export option:

If true, use 'export' for the resources. Exported resources are stripped of cluster-specific information.

Investigate what requests it generates and try to use it for resource cleaning.

nailgun commented 5 years ago

Also see calls from kubectl api-resources

nailgun commented 4 years ago

Flag export have been deprecated in 1.14 https://github.com/kubernetes/kubernetes/pull/73787

nailgun commented 4 years ago

See also https://gist.github.com/zoidbergwill/6af8c80cc5b706e2adcf25df3dc2f7e1#file-export_resources-py

nailgun commented 4 years ago

--export flag in kubectl get is deprecated https://github.com/kubernetes/kubernetes/pull/73787

Also there are notes that this functionality is broken on server side. I tested it (GET /apis/apps/v1/namespaces/default/deployments/toolbox?export=1). It works but doesn't clean objects enough.