kubectl-edit-status icon indicating copy to clipboard operation
kubectl-edit-status copied to clipboard

Add a command-line option to edit status of resource with specified yaml file

Open sergenyalcin opened this issue 3 years ago • 1 comments

Usage: kubectl edit-status <resource> <resource-name> --namespace <namespace> --in <filepath>

sergenyalcin avatar Feb 25 '21 21:02 sergenyalcin

Hi @ulucinar,

If you are interested in this feature, the PR can be tested with the following steps:

  • kubectl -n <namespace> get <resource> <resource_name> -o yaml > <filepath>

  • Edit status subresource of resource from yaml output it is located in ) by using an editor (vi, vscode, notepad++, etc.)

  • kubectl edit-status <resource> <resource-name> --namespace <namespace> --in <filepath>

sergenyalcin avatar Feb 26 '21 22:02 sergenyalcin