Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Scenario 1:
Do okteto up using VS code plugin (use VS code command palette to run plugin related commands)
It will run deploy and dev sections and will bring env up successfully
Now run okteto destroy using VS Code plugin only
Expectation:
VS Code should ask to choose okteto manifest for destroy just like it asks for up and down commands
And then destroy should take care of deleting all the resources -- created under deploy section as well as deployment created as part of creating okteto env
Actual:
VS code doesn't ask to choose the manifest (see First Image )and destroys an env by the name of okteto everytime (see Second image) and now i have to run okteto destroy -f $MANIFEST_FILE using okteto binary (see Third image).
First Image:
Second image:
Third image:
See how, only after running destroy command using okteto's binary, a service named test-wq-spark-rac-1 gets deleted.
It will run deploy section and will bring env up successfully
Now run okteto destroy -f OKTETO_FILE_LOCATION on command line using okteto's binary since running destroy via VS Code plugin doesn't work as mentioned in Scenario 1.
Expectation:
Everything should go away — resources mentioned in deploy section as well as any deployment/rs/pod.
Actual:
Only resources created under deploy section go away. Still had to run okteto down using VS code plugin to tear down deployment.
Describe the bug A clear and concise description of what the bug is.
To Reproduce
Scenario 1:
okteto up
using VS code plugin (use VS code command palette to run plugin related commands)deploy
anddev
sections and will bring env up successfullyokteto destroy
using VS Code plugin onlyExpectation:
destroy
just like it asks forup
anddown
commandsdeploy
section as well as deployment created as part of creating okteto envActual:
okteto
everytime (see Second image) and now i have to runokteto destroy -f $MANIFEST_FILE
using okteto binary (see Third image).First Image:
Second image:
Third image:
See how, only after running destroy command using okteto's binary, a service named
test-wq-spark-rac-1
gets deleted.okteto.yaml used:
Scenario 2:
okteto destroy -f OKTETO_FILE_LOCATION
on command line using okteto's binary since runningdestroy
via VS Code plugin doesn't work as mentioned in Scenario 1.Expectation: Everything should go away — resources mentioned in deploy section as well as any deployment/rs/pod.
Actual: Only resources created under deploy section go away. Still had to run
okteto down
using VS code plugin to tear down deployment.okteto.yaml used:
service.yaml:
So in essence 2 problems:
okteto destroy
command is supposed to clean everything but it cleans only the resources created underdeploy
section.Desktop (please complete the following information):