diff --git a/staging/src/k8s.io/component-base/version/base.go b/staging/src/k8s.io/component-base/version/base.go index b5e889019e8..94da79c0818 100644 --- a/staging/src/k8s.io/component-base/version/base.go +++ b/staging/src/k8s.io/component-base/version/base.go @@ -60,5 +60,5 @@ const ( // DefaultKubeBinaryVersion is the hard coded k8 binary version based on the latest K8s release. // It is supposed to be consistent with gitMajor and gitMinor, except for local tests, where gitMajor and gitMinor are "". // Should update for each minor release! - DefaultKubeBinaryVersion = "1.34" + DefaultKubeBinaryVersion = "1.35" ) diff --git a/test/integration/metrics/metrics_test.go b/test/integration/metrics/metrics_test.go index b7888e15931..c7f9d20e9b9 100644 --- a/test/integration/metrics/metrics_test.go +++ b/test/integration/metrics/metrics_test.go @@ -31,8 +31,8 @@ import ( dto "github.com/prometheus/client_model/go" "github.com/prometheus/common/expfmt" "github.com/prometheus/common/model" - admissionregistrationv1beta1 "k8s.io/api/admissionregistration/v1beta1" v1 "k8s.io/api/core/v1" + networkingv1beta1 "k8s.io/api/networking/v1beta1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apiserver/pkg/endpoints/metrics" "k8s.io/apiserver/pkg/features" @@ -119,7 +119,7 @@ func TestAPIServerMetrics(t *testing.T) { t.Setenv("KUBE_APISERVER_SERVE_REMOVED_APIS_FOR_ONE_RELEASE", "true") flags := framework.DefaultTestServerFlags() - flags = append(flags, fmt.Sprintf("--runtime-config=%s=true", admissionregistrationv1beta1.SchemeGroupVersion)) + flags = append(flags, fmt.Sprintf("--runtime-config=%s=true", networkingv1beta1.SchemeGroupVersion)) s := kubeapiservertesting.StartTestServerOrDie(t, nil, flags, framework.SharedEtcd()) defer s.TearDownFn() @@ -131,7 +131,7 @@ func TestAPIServerMetrics(t *testing.T) { } // Make a request to a deprecated API to ensure there's at least one data point - if _, err := client.AdmissionregistrationV1beta1().ValidatingAdmissionPolicies().List(context.TODO(), metav1.ListOptions{}); err != nil { + if _, err := client.NetworkingV1beta1().ServiceCIDRs().List(context.TODO(), metav1.ListOptions{}); err != nil { t.Fatalf("unexpected error: %v", err) }