flux-subsystem-argo / flamingo

Flux Subsystem for Argo
https://flux-subsystem-argo.github.io/website/
Apache License 2.0
638 stars 41 forks source link

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

Open tommyreilly opened 10 months ago

tommyreilly commented 10 months ago

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?

chanwit commented 9 months ago

Will double check this and get back to you shortly.

tommyreilly commented 9 months ago

Thank you @chanwit