migrate off of gopkg.in/yaml.v3

This commit is contained in:
Benjamin Elder
2025-04-03 22:42:37 +01:00
parent bbb7bb01cd
commit b229bcf3d1
6 changed files with 9 additions and 7 deletions

View File

@@ -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

View File

@@ -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"
)

View File

@@ -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"
)

View File

@@ -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"

View File

@@ -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"
)