Switch out the Go YAML package (#1089)

This replaces direct usage of "gopkg.in/yaml.v3" with "go.yaml.in/yaml/v4".

The original package is now a dependency of the testify packages.
This commit is contained in:
Kevin McDermott
2026-07-28 11:58:46 +01:00
committed by GitHub
parent 11bf7a2dc4
commit f77083b563
8 changed files with 11 additions and 7 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"fmt"
"os"
"gopkg.in/yaml.v3"
"go.yaml.in/yaml/v4"
"k8s.io/apimachinery/pkg/types"
"k8s.io/kubernetes/pkg/apis/core"
"k8s.io/kubernetes/pkg/registry/core/service/portallocator"
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"errors"
"fmt"
"gopkg.in/yaml.v3"
"go.yaml.in/yaml/v4"
"k8s.io/apimachinery/pkg/util/intstr"
appsv1 "k8s.io/api/apps/v1"
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"testing"
"github.com/stretchr/testify/assert"
"gopkg.in/yaml.v3"
"go.yaml.in/yaml/v4"
"k8s.io/apimachinery/pkg/api/resource"
"k8s.io/utils/ptr"
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"fmt"
"strings"
"gopkg.in/yaml.v3"
"go.yaml.in/yaml/v4"
"k8s.io/utils/ptr"
appsv1 "k8s.io/api/apps/v1"
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"testing"
"github.com/stretchr/testify/assert"
"gopkg.in/yaml.v3"
"go.yaml.in/yaml/v4"
"k8s.io/apimachinery/pkg/api/resource"
"k8s.io/utils/ptr"
+1 -1
View File
@@ -3,7 +3,7 @@ package server
import (
"fmt"
"gopkg.in/yaml.v3"
"go.yaml.in/yaml/v4"
"k8s.io/apimachinery/pkg/util/sets"
corev1 "k8s.io/api/core/v1"