Skip to content

Commit

Permalink
fix: Fix listing wf archive without list options. Fixes argoproj#13804
Browse files Browse the repository at this point in the history
Signed-off-by: Darko Janjic <[email protected]>
  • Loading branch information
djanjic committed Oct 24, 2024
1 parent 261503c commit 97d4379
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion server/workflowarchive/archived_workflow_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,12 @@ func NewWorkflowArchiveServer(wfArchive sqldb.WorkflowArchive, offloadNodeStatus
}

func (w *archivedWorkflowServer) ListArchivedWorkflows(ctx context.Context, req *workflowarchivepkg.ListArchivedWorkflowsRequest) (*wfv1.WorkflowList, error) {
listOption := metav1.ListOptions{}
if req.ListOptions != nil {
listOption = *req.ListOptions
}

options, err := sutils.BuildListOptions(*req.ListOptions, req.Namespace, req.NamePrefix, "")
options, err := sutils.BuildListOptions(listOption, req.Namespace, req.NamePrefix, "")
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 97d4379

Please sign in to comment.