Skip to content

Commit

Permalink
Add a return when kine is set to use tls
Browse files Browse the repository at this point in the history
Signed-off-by: Vitor Savian <[email protected]>
  • Loading branch information
vitorsavian committed Feb 29, 2024
1 parent f6fc659 commit abe1265
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/endpoint/endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,9 @@ func Listen(ctx context.Context, config Config) (ETCDConfig, error) {
return ETCDConfig{
LeaderElect: leaderelect,
Endpoints: []string{endpoint},
TLSConfig: tls.Config{},
TLSConfig: tls.Config{
CAFile: config.ServerTLSConfig.CAFile,
},
}, nil
}

Expand Down

0 comments on commit abe1265

Please sign in to comment.