mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-14 13:45:06 +00:00
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!
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user