Skip to content

Remove kubectl drain --delete-local-data #197

@gdlx

Description

@gdlx

Hi !
A recent kubectl update removed the drain --delete-local-data flag, now replaced by --delete-emptydir-data.

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

Here's a forum post about this on the upstream Lens forum: https://forums.k8slens.dev/t/lens-2024-11-drain-action-still-using-kubectl-delete-local-data-instead-of-delete-emptydir-data/3903

I think we easily could just update it here:

const command = `${kubectlPath} drain ${nodeName} --delete-local-data --ignore-daemonsets --force`;

I'll try to send a PR ASAP, hoping this repo is still maintained and still able to release 🤞

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions