diff --git a/bootstrap/api/v1beta1/kthreesconfig_types.go b/bootstrap/api/v1beta1/kthreesconfig_types.go index 022d9016..77b4458f 100644 --- a/bootstrap/api/v1beta1/kthreesconfig_types.go +++ b/bootstrap/api/v1beta1/kthreesconfig_types.go @@ -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 } diff --git a/pkg/secret/certificates.go b/pkg/secret/certificates.go index 7deebf39..2bc073b0 100644 --- a/pkg/secret/certificates.go +++ b/pkg/secret/certificates.go @@ -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"),