export KUBE_EDITOR='code --wait'
Running k edit ...
will open up the yaml using Visual Studio Code.
On my mac Ventura in my ~/.bash_profile I have :
export KUBE_EDITOR='open -a "Visual Studio Code" --wait'
and it is opening the new VSCode window with command on terminal:
kubectl edit pod fooapp
The problem is once I am done editing the yml and save it and close the associated VSCode window the control is not returning to terminal.
For that I have to Quit VSCode completely.
This is very inconvenient as this is resulting in closing all my other open / work in progress files with VSCode .
Please suggest.
$env:KUBE_EDITOR="code --wait"
Thanx you
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.