mirror of
https://github.com/kubernetes-sigs/kind.git
synced 2025-11-30 23:16:04 +07:00
migrate off of gopkg.in/yaml.v3
This commit is contained in:
@@ -27,7 +27,7 @@ Custom YAML (de)serialization for these types
|
||||
*/
|
||||
|
||||
// UnmarshalYAML implements custom decoding YAML
|
||||
// https://godoc.org/gopkg.in/yaml.v3
|
||||
// https://godoc.org/sigs.k8s.io/yaml/goyaml.v3
|
||||
func (m *Mount) UnmarshalYAML(unmarshal func(interface{}) error) error {
|
||||
// first unmarshal in the alias type (to avoid a recursion loop on unmarshal)
|
||||
type MountAlias Mount
|
||||
@@ -50,7 +50,7 @@ func (m *Mount) UnmarshalYAML(unmarshal func(interface{}) error) error {
|
||||
}
|
||||
|
||||
// UnmarshalYAML implements custom decoding YAML
|
||||
// https://godoc.org/gopkg.in/yaml.v3
|
||||
// https://godoc.org/sigs.k8s.io/yaml/goyaml.v3
|
||||
func (p *PortMapping) UnmarshalYAML(unmarshal func(interface{}) error) error {
|
||||
// first unmarshal in the alias type (to avoid a recursion loop on unmarshal)
|
||||
type PortMappingAlias PortMapping
|
||||
|
||||
@@ -19,8 +19,8 @@ package kubeconfig
|
||||
import (
|
||||
"bytes"
|
||||
|
||||
yaml "gopkg.in/yaml.v3"
|
||||
kubeyaml "sigs.k8s.io/yaml"
|
||||
yaml "sigs.k8s.io/yaml/goyaml.v3"
|
||||
|
||||
"sigs.k8s.io/kind/pkg/errors"
|
||||
)
|
||||
|
||||
@@ -20,7 +20,7 @@ import (
|
||||
"io"
|
||||
"os"
|
||||
|
||||
yaml "gopkg.in/yaml.v3"
|
||||
yaml "sigs.k8s.io/yaml/goyaml.v3"
|
||||
|
||||
"sigs.k8s.io/kind/pkg/errors"
|
||||
)
|
||||
|
||||
@@ -20,7 +20,7 @@ import (
|
||||
"bytes"
|
||||
"os"
|
||||
|
||||
yaml "gopkg.in/yaml.v3"
|
||||
yaml "sigs.k8s.io/yaml/goyaml.v3"
|
||||
|
||||
"sigs.k8s.io/kind/pkg/apis/config/v1alpha4"
|
||||
"sigs.k8s.io/kind/pkg/errors"
|
||||
|
||||
@@ -23,7 +23,8 @@ import (
|
||||
burntoml "github.com/BurntSushi/toml"
|
||||
jsonpatch "github.com/evanphx/json-patch/v5"
|
||||
toml "github.com/pelletier/go-toml"
|
||||
yaml "gopkg.in/yaml.v3"
|
||||
|
||||
yaml "sigs.k8s.io/yaml/goyaml.v3"
|
||||
|
||||
"sigs.k8s.io/kind/pkg/errors"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user