Skip to content

Commit

Permalink
rpk/transform/delete: encode url unsafe names
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Rockwood <rockwood@redpanda.com>
(cherry picked from commit 6d83902)
  • Loading branch information
rockwotj authored and vbotbuildovich committed Mar 4, 2024
1 parent 6d0d5ff commit 2f9ccbe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/go/rpk/pkg/adminapi/api_transform.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import (
"encoding/json"
"io"
"net/http"
"net/url"
)

const (
Expand All @@ -35,7 +36,7 @@ func (a *AdminAPI) DeployWasmTransform(ctx context.Context, t TransformMetadata,

// DeleteWasmTransform deletes a wasm transform in a cluster.
func (a *AdminAPI) DeleteWasmTransform(ctx context.Context, name string) error {
return a.sendToLeader(ctx, http.MethodDelete, baseTransformEndpoint+name, nil, nil)
return a.sendToLeader(ctx, http.MethodDelete, baseTransformEndpoint+url.PathEscape(name), nil, nil)
}

// PartitionTransformStatus is the status of a single transform that is running on an input partition.
Expand Down

0 comments on commit 2f9ccbe

Please sign in to comment.