From b7680270429703ac10672462fc69262089cbb26e Mon Sep 17 00:00:00 2001 From: Vladislav Sukhin Date: Thu, 24 Oct 2024 16:54:40 +0300 Subject: [PATCH] fix: rename parameters Signed-off-by: Vladislav Sukhin --- cmd/kubectl-testkube/commands/testworkflows/executions.go | 4 ++-- pkg/api/v1/client/testworkflow.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/kubectl-testkube/commands/testworkflows/executions.go b/cmd/kubectl-testkube/commands/testworkflows/executions.go index 750b6b173d..66e297df84 100644 --- a/cmd/kubectl-testkube/commands/testworkflows/executions.go +++ b/cmd/kubectl-testkube/commands/testworkflows/executions.go @@ -97,8 +97,8 @@ func NewGetTestWorkflowExecutionsCmd() *cobra.Command { cmd.Flags().StringSliceVarP(&selectors, "label", "l", nil, "label key value pair: --label key1=value1") cmd.Flags().BoolVar(&logsOnly, "logs-only", false, "show only execution logs") cmd.Flags().StringSliceVarP(&tags, "tag", "", nil, "tag key value pair: --tag key1=value1") - cmd.Flags().StringVarP(&actorName, "actorName", "", "", "test workflow running context actor name") - cmd.Flags().StringVarP(&actorType, "actorType", "", "", "test workflow running context actor type one of cron|testtrigger|user|testworkfow|testworkflowexecution|program") + cmd.Flags().StringVarP(&actorName, "actor-name", "", "", "test workflow running context actor name") + cmd.Flags().StringVarP(&actorType, "actor-type", "", "", "test workflow running context actor type one of cron|testtrigger|user|testworkfow|testworkflowexecution|program") return cmd } diff --git a/pkg/api/v1/client/testworkflow.go b/pkg/api/v1/client/testworkflow.go index 9969bcc175..3c929be660 100644 --- a/pkg/api/v1/client/testworkflow.go +++ b/pkg/api/v1/client/testworkflow.go @@ -145,8 +145,8 @@ func (c TestWorkflowClient) ListTestWorkflowExecutions(id string, limit int, opt "selector": options.Selector, "pageSize": fmt.Sprintf("%d", limit), "tagSelector": options.TagSelector, - "actionName": options.ActorName, - "actionType": string(options.ActorType), + "actorName": options.ActorName, + "actorType": string(options.ActorType), } return c.testWorkflowExecutionsResultTransport.Execute(http.MethodGet, uri, nil, params) }