mirror of
https://github.com/kairos-io/kairos-agent.git
synced 2025-09-20 01:42:20 +00:00
art: Refactor out config sections
Now there is a `install` section in the config that has the fields that previously where in `c3os` but were actually only used during install phase. Also the k3s and c3os config were moved to the provider instead that in the global config.
This commit is contained in:
committed by
Itxaka
parent
fc21b17f0c
commit
adce182ea2
@@ -6,8 +6,8 @@ import (
|
||||
"os"
|
||||
|
||||
. "github.com/c3os-io/c3os/internal/provider"
|
||||
providerConfig "github.com/c3os-io/c3os/internal/provider/config"
|
||||
"github.com/c3os-io/c3os/pkg/bus"
|
||||
"github.com/c3os-io/c3os/pkg/config"
|
||||
"github.com/mudler/go-pluggable"
|
||||
. "github.com/onsi/ginkgo/v2"
|
||||
. "github.com/onsi/gomega"
|
||||
@@ -27,8 +27,8 @@ var _ = Describe("Bootstrap provider", func() {
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
defer os.RemoveAll(f.Name())
|
||||
|
||||
cfg := &config.Config{
|
||||
C3OS: &config.C3OS{
|
||||
cfg := &providerConfig.Config{
|
||||
C3OS: &providerConfig.C3OS{
|
||||
NetworkToken: "foo",
|
||||
},
|
||||
}
|
||||
|
Reference in New Issue
Block a user