Skip to content

Commit

Permalink
feat: replace yaml packages with gopkg.in/yaml.v3
Browse files Browse the repository at this point in the history
Signed-off-by: PoAn Yang <[email protected]>
  • Loading branch information
FrankYang0529 committed Oct 31, 2023
1 parent 7ba4741 commit a491c43
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pkg/config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"testing"

"github.com/stretchr/testify/assert"
"gopkg.in/yaml.v2"
"gopkg.in/yaml.v3"
)

type SettingManifestMock struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/config/cos.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/config/schemas.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
2 changes: 1 addition & 1 deletion pkg/config/write.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/console/dashboard_panels.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
2 changes: 1 addition & 1 deletion pkg/console/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/console/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit a491c43

Please sign in to comment.