argoproj / argo-workflows

Workflow Engine for Kubernetes
https://argo-workflows.readthedocs.io/
Apache License 2.0
15.03k stars 3.2k forks source link

`kubectl get wf` returns workflows not returned by API #13346

Open madhur-lyric opened 3 months ago

madhur-lyric commented 3 months ago

Pre-requisites

What happened? What did you expect to happen?

kubectl get wf -n {namespace} returns some workflows not found in the workflows or archived workflows API (fetched without any parameters), but they are returned when fetched or deleted individually using the API: api/v1/workflows/{namespace}/{workflow-name}.

Version(s)

v3.5.8

Paste a minimal workflow that reproduces the issue. We must be able to run the workflow; don't enter a workflows that uses private images.

N.A.

Logs from the workflow controller

kubectl logs -n argo deploy/workflow-controller | grep ${workflow}

Logs from in your workflow's wait container

kubectl logs -n argo -c wait -l workflows.argoproj.io/workflow=${workflow},workflow.argoproj.io/phase!=Succeeded
madhur-lyric commented 2 months ago

@agilgur5 Please share some insights on this issue.

Joibel commented 2 months ago

Can you show how we could reproduce this issue?