Lens 2024.11 - Drain action still using kubectl --delete-local-data instead of --delete-emptydir-data

Hi,
Since a while, the kubectl parameter “–delete-local-data” was deprecated nowadys it’s removed from the cli.
Each time you try to drain a node the following error appears.

$ kubectl drain <node_name> --delete-local-data --ignore-daemonsets --force
error: unknown flag: --delete-local-data
See 'kubectl drain --help' for usage.

Lens app should check the kubectl cli version in order to use the correct drain parameter.
Or giving the option to configure commands within the preferences panel at least.

Regards,

Hello @vherrlein , Thank you for reaching out! i will contact our development team regarding your issue .

1 Like

Thanks for reaching out @vherrlein, this request is definitely very valuable to us. We have prioritized the ask, and we’ll work on it next week. We should have a fix in the next release.

1 Like