Steevo Wiki

You are here: Home » argo » workflow

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
argo:workflow [2022/05/29 10:56]
admin
argo:workflow [2024/01/26 17:33] (current)
Line 1: Line 1:
-====== Argo workflow ======+=== List workflows ===
  
-Authentication +List all workflows related to a CRD 
-Use token for authentication+<code> 
 +argo list -l workflow.artifakt.io/kind=[kind] -n [ns] 
 +</code>
  
 +List all failed workflows
 <code> <code>
-export ARGOCD_AUTH_TOKEN=<JWT token generated from project>+argo list -l workflows.argoproj.io/phase=Failed -n [ns]
 </code> </code>
 +=== Delete Failed workflows ===
  
-Login +<code> 
-argocd login argocd.sandbox.platform.artifakt.io --grpc-web --name [argocd-server-name] --username admin --password xxxxxxxxxx +argo delete -l workflows.argoproj.io/phase=Failed -n [ns] 
- +argo delete -l workflows.argoproj.io/phase=Failed,workflow.artifakt.io/kind=[kind] -n [ns] 
-Update admin password +</code>
-argocd account update-password --account admin --current-password xxxxx --new-password xxxxxx +
- +
- +
-List workflows +
- +
-argo list -l workflow.artifakt.io/kind=registry +
-argo list -l workflows.argoproj.io/phase=Failed -n artifakt-workflow +
- +
-Delete Failed workflows +
- +
-argo delete -l workflows.argoproj.io/phase=Failed -n artifakt-workflow +
-argo delete -l workflows.argoproj.io/phase=Failed,workflow.artifakt.io/kind=loadbalancer -n artifakt-workflow +
- +
-argo delete -l workflow.artifakt.io/source.name=test-registry-steven-outofsync +
- +
- +
-argo delete -l workflow.artifakt.io/kind=build +
  
-argo delete -l workflows.argoproj.io/phase=Failed,workflow.artifakt.io/kind=elasticsearch -n artifakt-workflow