nais debug is a command that takes an argument, and nais debug tidy is a subcommand that also takes an argument.
Commands should not both have a RunFunc and a set of subcommands.
Instead of the nais debug tidy command we can utilize https://github.com/nais/euthanaisa to clean up debug pods. Ephemeral debug containers will be removed automatically once the debugged application restarts.
nais/euthanaisa does not currently clean up pods, but we should start adding the necessary label and annotation to debug pods so that they will be removed once nais/euthanaisa has been updated.
nais debugis a command that takes an argument, andnais debug tidyis a subcommand that also takes an argument.Commands should not both have a
RunFuncand a set of subcommands.Instead of the
nais debug tidycommand we can utilize https://github.com/nais/euthanaisa to clean up debug pods. Ephemeral debug containers will be removed automatically once the debugged application restarts.nais/euthanaisadoes not currently clean up pods, but we should start adding the necessary label and annotation to debug pods so that they will be removed oncenais/euthanaisahas been updated.