refactor: make pkg/config not rely on machined/../internal/runtime

This makes `pkg/config` directly importable from other projects.

There should be no functional changes.

Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
This commit is contained in:
Andrey Smirnov
2020-07-28 21:48:26 +03:00
committed by talos-bot
parent 1b491d0a66
commit 47608fb874
83 changed files with 807 additions and 711 deletions

View File

@@ -12,8 +12,8 @@ import (
"testing"
"time"
"github.com/talos-systems/talos/internal/app/machined/pkg/runtime"
"github.com/talos-systems/talos/internal/integration/base"
"github.com/talos-systems/talos/pkg/config/types/v1alpha1/machine"
)
type ResetSuite struct {
@@ -57,7 +57,7 @@ func (suite *ResetSuite) TestResetNodeByNode() {
initNodeAddress := ""
for _, node := range suite.Cluster.Info().Nodes {
if node.Type == runtime.MachineTypeInit {
if node.Type == machine.TypeInit {
initNodeAddress = node.PrivateIP.String()
break
}