Skip to content

Commit 110faae

Browse files
authored
Merge pull request kubernetes#3382 from bskiba/fix-e2e-v1-beta2
VPA v1beta2 tests use v1beta2 client
2 parents bfd3bc1 + 92bddcd commit 110faae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vertical-pod-autoscaler/e2e/v1beta2/common.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ func InstallVPA(f *framework.Framework, vpa *vpa_types.VerticalPodAutoscaler) {
366366
// InstallRawVPA installs a VPA object passed in as raw json in the test cluster.
367367
func InstallRawVPA(f *framework.Framework, obj interface{}) error {
368368
vpaClientSet := getVpaClientSet(f)
369-
err := vpaClientSet.AutoscalingV1().RESTClient().Post().
369+
err := vpaClientSet.AutoscalingV1beta2().RESTClient().Post().
370370
Namespace(f.Namespace.Name).
371371
Resource("verticalpodautoscalers").
372372
Body(obj).
@@ -385,7 +385,7 @@ func PatchVpaRecommendation(f *framework.Framework, vpa *vpa_types.VerticalPodAu
385385
Value: *newStatus,
386386
}})
387387
gomega.Expect(err).NotTo(gomega.HaveOccurred())
388-
_, err = getVpaClientSet(f).AutoscalingV1().VerticalPodAutoscalers(f.Namespace.Name).Patch(context.TODO(), vpa.Name, types.JSONPatchType, bytes, metav1.PatchOptions{})
388+
_, err = getVpaClientSet(f).AutoscalingV1beta2().VerticalPodAutoscalers(f.Namespace.Name).Patch(context.TODO(), vpa.Name, types.JSONPatchType, bytes, metav1.PatchOptions{})
389389
gomega.Expect(err).NotTo(gomega.HaveOccurred(), "Failed to patch VPA.")
390390
}
391391

0 commit comments

Comments
 (0)