mirror of
https://github.com/lingble/talos.git
synced 2025-11-02 05:28:09 +00:00
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:
committed by
talos-bot
parent
1b491d0a66
commit
47608fb874
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user