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 <vitor.savian@suse.com>
  • Loading branch information
vitorsavian committed Feb 28, 2024
1 parent 3773672 commit bf870c8
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 bf870c8

Please sign in to comment.