Skip to content

Commit

Permalink
refactor: make default tls mode to prefer
Browse files Browse the repository at this point in the history
  • Loading branch information
zyy17 committed Jul 24, 2024
1 parent c5c1dad commit 0e79523
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions controllers/constant/constant.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,5 @@ const (
ConfigVolumeName = "config"
InitConfigVolumeName = "init-config"
TLSVolumeName = "tls"
DefaultTLSMode = "prefer"
)
2 changes: 1 addition & 1 deletion controllers/greptimedbcluster/deployers/frontend.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ func (b *frontendBuilder) generateMainContainerArgs() []string {

if b.Cluster.Spec.Frontend != nil && b.Cluster.Spec.Frontend.TLS != nil {
args = append(args, []string{
"--tls-mode", "require",
"--tls-mode", constant.DefaultTLSMode,
"--tls-cert-path", path.Join(constant.GreptimeDBTLSDir, TLSCrtSecretKey),
"--tls-key-path", path.Join(constant.GreptimeDBTLSDir, TLSKeySecretKey),
}...)
Expand Down

0 comments on commit 0e79523

Please sign in to comment.