diff --git a/pkg/config/config_test.go b/pkg/config/config_test.go index 97b727b2a..9cf4677d2 100644 --- a/pkg/config/config_test.go +++ b/pkg/config/config_test.go @@ -4,7 +4,7 @@ import ( "testing" "github.com/stretchr/testify/assert" - "gopkg.in/yaml.v2" + "gopkg.in/yaml.v3" ) type SettingManifestMock struct { diff --git a/pkg/config/cos.go b/pkg/config/cos.go index a684a4b97..f0da78d62 100644 --- a/pkg/config/cos.go +++ b/pkg/config/cos.go @@ -12,7 +12,7 @@ import ( yipSchema "github.com/mudler/yip/pkg/schema" "github.com/sirupsen/logrus" - "gopkg.in/yaml.v2" + "gopkg.in/yaml.v3" "github.com/harvester/harvester-installer/pkg/util" ) diff --git a/pkg/config/schemas.go b/pkg/config/schemas.go index 4b0f56f29..462a8a5f8 100644 --- a/pkg/config/schemas.go +++ b/pkg/config/schemas.go @@ -3,9 +3,9 @@ package config import ( "fmt" - "github.com/ghodss/yaml" "github.com/rancher/mapper" "github.com/rancher/mapper/convert" + "gopkg.in/yaml.v3" ) var ( diff --git a/pkg/config/write.go b/pkg/config/write.go index 9a61d672d..9c028e5b5 100644 --- a/pkg/config/write.go +++ b/pkg/config/write.go @@ -2,7 +2,7 @@ package config import ( "github.com/rancher/mapper/convert" - "gopkg.in/yaml.v2" + "gopkg.in/yaml.v3" ) func PrintInstall(cfg HarvesterConfig) ([]byte, error) { diff --git a/pkg/console/dashboard_panels.go b/pkg/console/dashboard_panels.go index 7e9a0101f..3acf15234 100644 --- a/pkg/console/dashboard_panels.go +++ b/pkg/console/dashboard_panels.go @@ -18,7 +18,7 @@ import ( "github.com/harvester/harvester-installer/pkg/util" "github.com/harvester/harvester-installer/pkg/version" "github.com/harvester/harvester-installer/pkg/widgets" - "gopkg.in/yaml.v2" + "gopkg.in/yaml.v3" ) const ( diff --git a/pkg/console/network.go b/pkg/console/network.go index 84a5e6ab9..b6e3be4ad 100644 --- a/pkg/console/network.go +++ b/pkg/console/network.go @@ -11,7 +11,7 @@ import ( "github.com/sirupsen/logrus" "github.com/vishvananda/netlink" "golang.org/x/sys/unix" - "gopkg.in/yaml.v2" + "gopkg.in/yaml.v3" "github.com/harvester/harvester-installer/pkg/config" ) diff --git a/pkg/console/util.go b/pkg/console/util.go index 7d84c8b31..96f1abbf4 100644 --- a/pkg/console/util.go +++ b/pkg/console/util.go @@ -27,7 +27,7 @@ import ( "golang.org/x/crypto/ssh" "golang.org/x/net/http/httpproxy" "gopkg.in/ini.v1" - "gopkg.in/yaml.v2" + "gopkg.in/yaml.v3" "k8s.io/apimachinery/pkg/util/rand" "github.com/harvester/harvester-installer/pkg/config"