diff --git a/go.mod b/go.mod index fa0818bc..47bbbd05 100644 --- a/go.mod +++ b/go.mod @@ -19,6 +19,7 @@ require ( github.com/pkg/errors v0.9.1 github.com/spf13/cobra v1.8.0 github.com/spf13/pflag v1.0.5 + go.yaml.in/yaml/v3 v3.0.4 sigs.k8s.io/yaml v1.4.0 ) diff --git a/go.sum b/go.sum index 0ce8f1d6..0afa29cd 100644 --- a/go.sum +++ b/go.sum @@ -31,6 +31,8 @@ github.com/spf13/cobra v1.8.0 h1:7aJaZx1B85qltLMc546zn58BxxfZdR/W22ej9CFoEf0= github.com/spf13/cobra v1.8.0/go.mod h1:WXLWApfZ71AjXPya3WOlMsY9yMs7YeiHhFVlvLyhcho= github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= +go.yaml.in/yaml/v3 v3.0.4 h1:tfq32ie2Jv2UxXFdLJdh3jXuOzWiL1fo0bu/FbuKpbc= +go.yaml.in/yaml/v3 v3.0.4/go.mod h1:DhzuOOF2ATzADvBadXxruRBLzYTpT36CKvDb3+aBEFg= golang.org/x/sys v0.6.0 h1:MVltZSvRTcU2ljQOhs94SXPftV6DCNnZViHeQps87pQ= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= diff --git a/pkg/cluster/internal/kubeconfig/internal/kubeconfig/encode.go b/pkg/cluster/internal/kubeconfig/internal/kubeconfig/encode.go index c15de723..339c09a4 100644 --- a/pkg/cluster/internal/kubeconfig/internal/kubeconfig/encode.go +++ b/pkg/cluster/internal/kubeconfig/internal/kubeconfig/encode.go @@ -19,8 +19,8 @@ package kubeconfig import ( "bytes" + yaml "go.yaml.in/yaml/v3" kubeyaml "sigs.k8s.io/yaml" - yaml "sigs.k8s.io/yaml/goyaml.v3" "sigs.k8s.io/kind/pkg/errors" ) diff --git a/pkg/cluster/internal/kubeconfig/internal/kubeconfig/read.go b/pkg/cluster/internal/kubeconfig/internal/kubeconfig/read.go index c8568f5b..240de041 100644 --- a/pkg/cluster/internal/kubeconfig/internal/kubeconfig/read.go +++ b/pkg/cluster/internal/kubeconfig/internal/kubeconfig/read.go @@ -20,7 +20,7 @@ import ( "io" "os" - yaml "sigs.k8s.io/yaml/goyaml.v3" + yaml "go.yaml.in/yaml/v3" "sigs.k8s.io/kind/pkg/errors" ) diff --git a/pkg/internal/apis/config/encoding/load.go b/pkg/internal/apis/config/encoding/load.go index c54d16e9..796b5730 100644 --- a/pkg/internal/apis/config/encoding/load.go +++ b/pkg/internal/apis/config/encoding/load.go @@ -20,7 +20,7 @@ import ( "bytes" "os" - yaml "sigs.k8s.io/yaml/goyaml.v3" + yaml "go.yaml.in/yaml/v3" "sigs.k8s.io/kind/pkg/apis/config/v1alpha4" "sigs.k8s.io/kind/pkg/errors" diff --git a/pkg/internal/patch/toml.go b/pkg/internal/patch/toml.go index f7e30e9e..09b587ed 100644 --- a/pkg/internal/patch/toml.go +++ b/pkg/internal/patch/toml.go @@ -24,7 +24,7 @@ import ( jsonpatch "github.com/evanphx/json-patch/v5" toml "github.com/pelletier/go-toml" - yaml "sigs.k8s.io/yaml/goyaml.v3" + yaml "go.yaml.in/yaml/v3" "sigs.k8s.io/kind/pkg/errors" )