From 4af0e640bb67887f68a0b66d79f08e4556fccd3d Mon Sep 17 00:00:00 2001 From: Alex Robinson Date: Wed, 26 Apr 2017 15:09:15 -0400 Subject: [PATCH] Fix cockroachdb statefulset test read/write commands Explicitly specifying `--insecure` is required on insecure clusters, which started being enforced in a very recent release. In 2 weeks we'll have a stable image version that we can reliably pin the relevant statefulset yaml file to in order to avoid stupid failures like this. I'm really sorry for the flakes! --- test/e2e/statefulset.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/statefulset.go b/test/e2e/statefulset.go index 9f91bd77020..5c5df82726e 100644 --- a/test/e2e/statefulset.go +++ b/test/e2e/statefulset.go @@ -720,7 +720,7 @@ func (c *cockroachDBTester) name() string { } func (c *cockroachDBTester) cockroachDBExec(cmd, ns, podName string) string { - cmd = fmt.Sprintf("/cockroach/cockroach sql --host %s.cockroachdb -e \"%v\"", podName, cmd) + cmd = fmt.Sprintf("/cockroach/cockroach sql --insecure --host %s.cockroachdb -e \"%v\"", podName, cmd) return framework.RunKubectlOrDie(fmt.Sprintf("--namespace=%v", ns), "exec", podName, "--", "/bin/sh", "-c", cmd) }