-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
kustomize deletion not working as expected #2120
Comments
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
after applying a kustomize directory containing kustomization.yaml,
the k9s Delete command is using
-f
instead of-k
resulting in a kubectl error message, because kubectl tries to delete a kind:kustomization.To Reproduce
Steps to reproduce the behavior:
dir
commandexit status 1 │
│ message:
..redacted..
error: resource mapping not found for name: "" namespace: "" from "/my-folder/kustomize/kustomization.yaml": no matches for kind "Kustomization" in version "kustomize.config.k8s.io/v1beta1" ensure CRDs are installed first
Expected behavior
k9s Delete command on a kustomization directory will delete the kustomization with
kubectl delete -k <folder>
Versions (please complete the following information):
Additional context
it seems to me that there is a missing conditional here
k9s/internal/view/dir.go
Line 238 in c4ef600
the apply command has it set correct here:
k9s/internal/view/dir.go
Line 201 in c4ef600
The text was updated successfully, but these errors were encountered: