diff --git a/inttest/Makefile b/inttest/Makefile index 150ad81655af..448d81300a3d 100644 --- a/inttest/Makefile +++ b/inttest/Makefile @@ -40,6 +40,7 @@ check-ctr: TIMEOUT=10m check-byocri: TIMEOUT=5m # readiness check for metric tests takes between around 5 and 6 minutes. check-metrics: TIMEOUT=6m +check-calico: TIMEOUT=6m # Establishing konnectivity tunnels with the LB in place takes a while, thus a bit longer timeout for the smoke check-customports: TIMEOUT=6m diff --git a/inttest/customports/customports_test.go b/inttest/customports/customports_test.go index 5b22b9b49f13..dd1a975b0e38 100644 --- a/inttest/customports/customports_test.go +++ b/inttest/customports/customports_test.go @@ -104,7 +104,7 @@ func (ds *Suite) TestControllerJoinsWithCustomPort() { workerToken, err := ds.GetJoinToken("worker", "", "--config=/tmp/k0s.yaml") ds.Require().NoError(err) - ds.Require().NoError(ds.RunWorkersWithToken("/var/lib/k0s", workerToken, `--config="/tmp/k0s.yaml"`)) + ds.Require().NoError(ds.RunWorkersWithToken("/var/lib/k0s", workerToken)) kc, err := ds.KubeClient("controller0", "") ds.Require().NoError(err) diff --git a/pkg/apis/k0s.k0sproject.io/v1beta1/clusterconfig_types.go b/pkg/apis/k0s.k0sproject.io/v1beta1/clusterconfig_types.go index 0f1096e8e71a..63e34c8641fa 100644 --- a/pkg/apis/k0s.k0sproject.io/v1beta1/clusterconfig_types.go +++ b/pkg/apis/k0s.k0sproject.io/v1beta1/clusterconfig_types.go @@ -279,19 +279,13 @@ func (c *ClusterConfig) Validate() []error { } // GetBootstrappingConfig returns a ClusterConfig object stripped of Cluster-Wide Settings -func (c *ClusterConfig) GetBootstrappingConfig() *ClusterConfig { +func (c *ClusterConfig) GetBootstrappingConfig(storageSpec *StorageSpec) *ClusterConfig { return &ClusterConfig{ ObjectMeta: c.ObjectMeta, TypeMeta: c.TypeMeta, Spec: &ClusterSpec{ - API: c.Spec.API, - Storage: &StorageSpec{ - Type: c.Spec.Storage.Type, - Etcd: &EtcdConfig{ - PeerAddress: c.Spec.Storage.Etcd.PeerAddress, - }, - Kine: c.Spec.Storage.Kine, - }, + API: c.Spec.API, + Storage: storageSpec, Network: &Network{ ServiceCIDR: c.Spec.Network.ServiceCIDR, DualStack: c.Spec.Network.DualStack, diff --git a/pkg/config/config.go b/pkg/config/config.go index b9d6315f38be..2147146cbbc0 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -178,7 +178,7 @@ func GetNodeConfig(cfgPath string, k0sVars constant.CfgVars) (*v1beta1.ClusterCo if err != nil { return nil, err } - nodeConfig := cfg.GetBootstrappingConfig() + nodeConfig := cfg.GetBootstrappingConfig(cfg.Spec.Storage) var etcdConfig *v1beta1.EtcdConfig if cfg.Spec.Storage.Type == v1beta1.EtcdStorageType { etcdConfig = &v1beta1.EtcdConfig{