Skip to content

Commit

Permalink
rename func IsEtcdEmbedded
Browse files Browse the repository at this point in the history
  • Loading branch information
Mog Liang committed Dec 11, 2023
1 parent 920908f commit c0e06b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bootstrap/api/v1beta1/kthreesconfig_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ type KThreesConfigSpec struct {

// TODO
// Will need extend this func when implementing other k3s database options.
func (c *KThreesConfigSpec) IsEtcdManaged() bool {
func (c *KThreesConfigSpec) IsEtcdEmbedded() bool {
return true
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/secret/certificates.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func NewCertificatesForInitialControlPlane(config *bootstrapv1.KThreesConfigSpec
},
}

if config.IsEtcdManaged() {
if config.IsEtcdEmbedded() {
etcdCert := &Certificate{
Purpose: EtcdCA,
CertFile: filepath.Join(certificatesDir, "etcd", "server-ca.crt"),
Expand Down

0 comments on commit c0e06b3

Please sign in to comment.