Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Destroying resources with force should always succeed #295

Open
nicholasjackson opened this issue May 23, 2024 · 0 comments
Open

Destroying resources with force should always succeed #295

nicholasjackson opened this issue May 23, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@nicholasjackson
Copy link
Contributor

Given a running environment that has partially failed and no Kubernetes cluster exists running down raises an error as the Kubernetes config can not be destroyed.

When down is called with --force it should never fail when destroying Kubernetes or Nomad config as ultimately the underlying clusters will be destroyed.

➜ jumppad down --force
Destroying resources  -- press ctrl c to cancel

INFO Destroying resources force=true
ERRO Unable to destroy stack
  error=
  │ error trying to call Destroy on provider: Error:
  │   unable to find dependent resource in module: '', error: 'Resource not found:
  │   resource.k8s_cluster.k3s'
  │ 
  │   /Users/nic/code/github.com/nicholasjackson/workshop-spring-vault/jumppad/k8s.hcl:33,1
  │ \x1b[2m     31 | \x1b[0m
  │ \x1b[2m     32 | # Configure the Vault Kubernetes service account\x1b[0m\x1b[2m     33 | resource "k8s_config" "vault_auth" {\x1b[0m
  │ \x1b[1m     34 |   disabled = !variable.install_vault\x1b[0m
  │ \x1b[2m     35 | \x1b[0m
@nicholasjackson nicholasjackson added the bug Something isn't working label May 23, 2024
@nicholasjackson nicholasjackson self-assigned this May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant