Skip to content

Commit

Permalink
fix: rename command
Browse files Browse the repository at this point in the history
Signed-off-by: Vladislav Sukhin <vladislav@kubeshop.io>
  • Loading branch information
vsukhin committed Feb 5, 2025
1 parent 6655876 commit 5afd165
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmd/api-server/services/controlplane.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func CreateControlPlane(ctx context.Context, cfg *config.Config, features featur

// Set up "Webhook commands
webhoookCommands := controlplane.CommandHandlers{
cloudwebhook.CmdWebhookExecutionCollectResult: controlplane.Handler(func(ctx context.Context, data cloudwebhook.WebhookExecutionCollectTelemetryRequest) (r cloudwebhook.WebhookExecutionCollectTelemetryResponse, err error) {
cloudwebhook.CmdWebhookExecutionCollectResult: controlplane.Handler(func(ctx context.Context, data cloudwebhook.WebhookExecutionCollectResultRequest) (r cloudwebhook.WebhookExecutionCollectResultResponse, err error) {
return
}),
}
Expand Down
4 changes: 2 additions & 2 deletions pkg/cloud/data/webhook/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package webhook

import "github.com/kubeshop/testkube/pkg/api/v1/testkube"

type WebhookExecutionCollectTelemetryRequest struct {
type WebhookExecutionCollectResultRequest struct {
ExecutionID string `json:"executionId"`
WorkflowName string `json:"workflowName"`
WebhookName string `json:"webhookName"`
Expand All @@ -11,4 +11,4 @@ type WebhookExecutionCollectTelemetryRequest struct {
StatusCode int `json:"statusCode"`
}

type WebhookExecutionCollectTelemetryResponse struct{}
type WebhookExecutionCollectResultResponse struct{}
2 changes: 1 addition & 1 deletion pkg/cloud/data/webhook/webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func (c *CloudRepository) CollectExecutionTelemetry(ctx context.Context, event t
eventType = *event.Type_
}

req := WebhookExecutionCollectTelemetryRequest{
req := WebhookExecutionCollectResultRequest{
ExecutionID: executionID,
WorkflowName: workflowName,
WebhookName: webhookName,
Expand Down

0 comments on commit 5afd165

Please sign in to comment.