Open vovtz opened 1 year ago
Related to: https://github.com/redpanda-data/redpanda/issues/7946, once that's fixed rpk will return the correct message.
CC. @graphcareful since you are assigned to #7946
cc: @vshtokman
This issue hasn't seen activity in 3 months. If you want to keep it open, post a comment or remove the stale
label – otherwise this will be closed in two weeks.
Version & Environment
Redpanda version: (use
rpk version
): 22.2.6 OS: the one used in container imagedocker.io/vectorized/redpanda
K8s: 1.19.2 Client libraries: N/AWhat went wrong?
I want to perform a ‘pre-flight’ step in a shell script (actually within the post-install job of the Helm chart), to make sure creating a topic will work. I would expect
rpk topic create <topic-name> --dry …
to fail if a topic is pre-exisiting, but it doesn’t.What should have happened instead?
It should have failed the dry run, reflected in both the exit code and the textual response.
How to reproduce the issue?
rpk topic create example-topic --replicas 1 --partitions 1 --brokers redpanda-0.redpanda.greenpanda:9093 --tls-enabled --tls-truststore /etc/tls/certs/default/ca.crt --tls-key /etc/tls/certs/default/tls.key --tls-cert /etc/tls/certs/default/tls.crt
rpk topic create example-topic --dry --brokers redpanda-0.redpanda.greenpanda:9093 --tls-enabled --tls-truststore /etc/tls/certs/default/ca.crt --tls-key /etc/tls/certs/default/tls.key --tls-cert /etc/tls/certs/default/tls.crt
A more comprehensive explanation of my situation:
JIRA Link: CORE-1274