Skip to content

Commit

Permalink
dt/rpk: Add offset parameter to deploy_wasm
Browse files Browse the repository at this point in the history
Signed-off-by: Oren Leiman <oren.leiman@redpanda.com>
  • Loading branch information
oleiman committed Jul 2, 2024
1 parent d393c25 commit f10d17a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/rptest/clients/rpk.py
Original file line number Diff line number Diff line change
Expand Up @@ -1709,13 +1709,16 @@ def deploy_wasm(self,
output_topics,
file="tinygo/identity.wasm",
compression_type: TopicSpec.CompressionTypes
| None = None):
| None = None,
from_offset: str | None = None):
cmd = [
"deploy", "--name", name, "--input-topic", input_topic, "--file",
f"/opt/transforms/{file}"
]
if compression_type is not None:
cmd += ["--compression", compression_type]
if from_offset is not None:
cmd += ["--from-offset", from_offset]
assert len(output_topics) > 0, "missing output topics"
for topic in output_topics:
cmd += ["--output-topic", topic]
Expand Down

0 comments on commit f10d17a

Please sign in to comment.