Skip to content

Commit

Permalink
roachprod: add env var for secure default
Browse files Browse the repository at this point in the history
Release note: none.
Epic: none.
  • Loading branch information
dt committed May 10, 2024
1 parent d9689c8 commit 11edce0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions pkg/cmd/roachprod/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ go_library(
"//pkg/roachprod/ui",
"//pkg/roachprod/vm",
"//pkg/roachprod/vm/gce",
"//pkg/util/envutil",
"//pkg/util/flagutil",
"//pkg/util/timeutil",
"@com_github_cockroachdb_errors//:errors",
Expand Down
3 changes: 2 additions & 1 deletion pkg/cmd/roachprod/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import (
"github.com/cockroachdb/cockroach/pkg/roachprod/ssh"
"github.com/cockroachdb/cockroach/pkg/roachprod/vm"
"github.com/cockroachdb/cockroach/pkg/roachprod/vm/gce"
"github.com/cockroachdb/cockroach/pkg/util/envutil"
"github.com/cockroachdb/cockroach/pkg/util/flagutil"
"github.com/spf13/cobra"
"golang.org/x/exp/maps"
Expand Down Expand Up @@ -50,7 +51,7 @@ var (
listPattern string
isSecure bool // Set based on the values passed to --secure and --insecure
secure = true // DEPRECATED
insecure = false
insecure = envutil.EnvOrDefaultBool("COCKROACH_ROACHPROD_INSECURE", false)
virtualClusterName string
sqlInstance int
extraSSHOptions = ""
Expand Down

0 comments on commit 11edce0

Please sign in to comment.