Skip to content

[Proxy examples] Is there someway to extract the standard arguments so each sample block only actually shows the important bit. #512

@k-wall

Description

@k-wall

In the Proxy examples, these quite a lot of eye bleed in the 'on-cluster' scripting. It is hard to see the wheat from the chaff.

          Is there someway to extract the standard arguments so each sample block only actually shows the important bit.
export OC_ARGS="-n kafka-proxy proxy-consumer -qi --image=registry.redhat.io/amq-streams/kafka-37-rhel9:2.7.0 --rm=true --restart=Never"
export CONSUMER_ARGS=" --bootstrap-server proxy-service:9092  --from-beginning --timeout-ms 10000"
oc run ${OC_ARGS} -- ./bin/kafka-console-consumer.sh --topic people ${CONSUMER_ARGS}

Originally posted by @SamBarker in #504 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions