Skip to content

Commit

Permalink
feat: add chunk size argument to delete cli command (#10813)
Browse files Browse the repository at this point in the history
Signed-off-by: Oliver Skånberg-Tippen <[email protected]>
  • Loading branch information
oskanberg authored Apr 6, 2023
1 parent bc96684 commit 3ed6887
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmd/argo/commands/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ func NewDeleteCommand() *cobra.Command {
command.Flags().StringVar(&flags.finishedAfter, "older", "", "Delete completed workflows finished before the specified duration (e.g. 10m, 3h, 1d)")
command.Flags().StringVarP(&flags.labels, "selector", "l", "", "Selector (label query) to filter on, not including uninitialized ones, supports '=', '==', and '!='.(e.g. -l key1=value1,key2=value2)")
command.Flags().StringVar(&flags.fields, "field-selector", "", "Selector (field query) to filter on, supports '=', '==', and '!='.(e.g. --field-selector key1=value1,key2=value2). The server only supports a limited number of field queries per type.")
command.Flags().Int64VarP(&flags.chunkSize, "query-chunk-size", "", 0, "Run the list query in chunks (deletes will still be executed individually)")
command.Flags().BoolVar(&dryRun, "dry-run", false, "Do not delete the workflow, only print what would happen")
command.Flags().BoolVar(&force, "force", false, "Force delete workflows by removing finalizers")
return command
Expand Down
1 change: 1 addition & 0 deletions docs/cli/argo_delete.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ argo delete [--dry-run] [WORKFLOW...|[--all] [--older] [--completed] [--resubmit
-h, --help help for delete
--older string Delete completed workflows finished before the specified duration (e.g. 10m, 3h, 1d)
--prefix string Delete workflows by prefix
--query-chunk-size int Run the list query in chunks (deletes will still be executed individually)
--resubmitted Delete resubmitted workflows
-l, --selector string Selector (label query) to filter on, not including uninitialized ones, supports '=', '==', and '!='.(e.g. -l key1=value1,key2=value2)
```
Expand Down

0 comments on commit 3ed6887

Please sign in to comment.