sighupio / furyctl

furyctl is the KFD (Kubernetes Fury Distribution) lifecycle manager

Home Page:https://sighup.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Missing check if k8s resource exists before deleting

g-iannelli opened this issue · comments

furyctl-ng delete cluster -c barebone.eu-west-1-alphav2.yml --distro-location 'git::git@github.com:sighupio/fury-distribution.git?depth=1&ref=feature/furyctl-next' --vpn-skip
WARN Missing --kubeconfig flag, falling back to KUBECONFIG from environment: ~/fury-getting-started/barebone/kubeconfig
INFO Downloading distribution...
INFO Validating dependencies...
WARNING: You are about to delete a cluster. This action is irreversible.
Are you sure you want to continue? Only 'yes' will be accepted to confirm.
yes
INFO Deleting Kubernetes Fury Distribution...
INFO Checking cluster connectivity...
INFO Deleting ingresses...
INFO Deleting blocking resources...[PersistentVolumeClaims, StatefulSets, Logging, Prometheus]
ERRO error while deleting cluster: error while deleting distribution phase: error deleting prometheus resources: error deleting all resources: ~/.furyctl/bin/kubectl/1.24.9/kubectl ~/.furyctl/bin/kubectl/1.24.9/kubectl delete prometheus --all -n monitoring --kubeconfig ~/fury-getting-started/barebone/kubeconfig: command failed - exit status 1
out:
err: error: the server doesn't have a resource type "prometheus"