export KUBE_EDITOR='code --wait'
Running k edit ...
will open up the yaml using Visual Studio Code.
@mousavian kubeclt
?
thanks 🙏
Thanks
Thanks
Legend!
For PowerShell use
$env:KUBE_EDITOR="code --wait"
To make this permanent, edit ~/.bash-profile
with code ~/.bash-profile
and enter this into it:
export KUBE_EDITOR='code --wait'
indeed opens up vscode just fine, but I can't make a change and save it. it says Edit cancelled, no changes made.
tried it with --wait flag
Awesome!
Thank
On macOS, has anyone encountered the problem that closing the editing page will not save the changes, and need to exit the vscode process to save the changes.
^ inline temporary editor change for mac users