flamingo icon indicating copy to clipboard operation
flamingo copied to clipboard

Trying to delete a flamingo app using the cli but it doesn't find it

Open tommyreilly opened this issue 2 years ago • 2 comments

Unsure if this is a bug or something I'm doing wrong. Any pointers appreciated.

I've installed Flamingo with the standard install command

flamingo install

I created an app using the Flamingo cli as follows:

flamingo generate-app --app-name=flux-helloworld-kustomize-ks ks/flux-helloworld-kustomize -N argocd -n flux-demo

I see the flamingo app (and associated flux kustomization) in the Flamingo UI. The Flamingo UI app delete button seems to work fine, however my use case is that I want to delete an app via the Flamingo cli.

However, when trying to delete it via the Flamingo cli, I get an app not found error.

% flamingo get -N argocd -n flux-demo   
NAMESPACE  APP-NS  APP                           FLUX-TYPE      SOURCE-TYPE    STATUS   MESSAGE
flux-demo  argocd  flux-helloworld-kustomize-ks  Kustomization  OCIRepository  Healthy  Applied revision: latest@sha256:a6e862eb ...

% flamingo delete flux-helloworld-kustomize-ks -N argocd -n flux-demo 
✗ applications.argoproj.io "flux-helloworld-kustomize-ks" not found

As I mention, deleting it from the UI works as expected, just the command line cli seemingly not working for the delete:

Screenshot 2023-12-08 at 1 08 41 PM

Is there something obvious I'm doing wrong here?

tommyreilly avatar Dec 08 '23 18:12 tommyreilly

Will double check this and get back to you shortly.

chanwit avatar Dec 20 '23 03:12 chanwit

Thank you @chanwit

tommyreilly avatar Dec 20 '23 04:12 tommyreilly