You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a kaos build deploy command fails, it results in a .kaos/<CLOUD>/None file, which then would make kaos think that a backend was already build for that cloud. When the user tries to truly build the backend for that same cloud, the following gets reported back:
What is the current behaviour?
When a
kaos build deploy
command fails, it results in a.kaos/<CLOUD>/None
file, which then would make kaos think that a backend was already build for that cloud. When the user tries to truly build the backend for that same cloud, the following gets reported back:Even though the
.kaos
directory doesn't contain a valid backend and the list of backends reports only one:Trying to destroy the GCP backend would result in the following error (valid scenario):
What is the expected behaviour?
When kaos fails to build a backend, the
None
file should be removed, the.kaos/<CLOUD>
should be correctly removed.How to reproduce? (e.g. logs, minimal example, etc...)
GOOGLE_APPLICATION_CREDENTIALS
environment variablekaos build deploy -c GCP -vy
.kaos/GCP/None
filekaos build deploy -c GCP -vy
Aborting - kaos backend is already built.
error backContext (Environment)
Additional Details
kaos build deploy
command could search for theterraform.tfstate
inside the cloud directory rather than asserting that the directory existsThe text was updated successfully, but these errors were encountered: