-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bump client-go
to remove dependence on go-autorest dependency
#9488
Conversation
@Volatus: This issue is currently awaiting triage. If Ingress contributors determines this is a relevant issue, they will accept it by applying the The Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/priority important-longterm |
/assign @strongjz |
@Volatus you probably need to bump all k8s libs to 0.26 (I've seen a bunch still on v0.25 here) After that, I guess all will pass (I'm worried with some deprecations tho) |
Yes, all k8s libs should be upgraded |
@tao12345666333 should be ok now |
/retest |
Please check the CI errors. |
Due to changes in the Kubernetes API, we needed to switch to using v1.IngressLoadBalancerIngress instead of apiv1.LoadBalancerIngress. The struct is otherwise identical despite the name change.
uh did something changed on Kubernetes API??
|
@rikatz yes! now there have 4 types.
|
you can just apply my patch to fix the status errors. From c0d55637d7322a40a1f959289adf0e24cc861572 Mon Sep 17 00:00:00 2001
From: Jintao Zhang <[email protected]>
Date: Mon, 16 Jan 2023 21:02:00 +0800
Subject: [PATCH] fix ingress status test cases
Signed-off-by: Jintao Zhang <[email protected]>
---
internal/ingress/status/status_test.go | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/internal/ingress/status/status_test.go b/internal/ingress/status/status_test.go
index 9c6b3f6de..7f8ac68b8 100644
--- a/internal/ingress/status/status_test.go
+++ b/internal/ingress/status/status_test.go
@@ -385,7 +385,7 @@ func TestKeyfunc(t *testing.T) {
func TestRunningAddressesWithPublishService(t *testing.T) {
testCases := map[string]struct {
fakeClient *testclient.Clientset
- expected []apiv1.LoadBalancerIngress
+ expected []networking.IngressLoadBalancerIngress
errExpected bool
}{
"service type ClusterIP": {
@@ -419,7 +419,7 @@ func TestRunningAddressesWithPublishService(t *testing.T) {
},
},
),
- []apiv1.LoadBalancerIngress{
+ []networking.IngressLoadBalancerIngress{
{IP: "1.1.1.1"},
},
false,
@@ -440,7 +440,7 @@ func TestRunningAddressesWithPublishService(t *testing.T) {
},
},
),
- []apiv1.LoadBalancerIngress{
+ []networking.IngressLoadBalancerIngress{
{IP: "1.1.1.1"},
},
false,
@@ -461,7 +461,7 @@ func TestRunningAddressesWithPublishService(t *testing.T) {
},
},
),
- []apiv1.LoadBalancerIngress{
+ []networking.IngressLoadBalancerIngress{
{Hostname: "foo.bar"},
},
false,
@@ -478,8 +478,8 @@ func TestRunningAddressesWithPublishService(t *testing.T) {
Type: apiv1.ServiceTypeLoadBalancer,
},
Status: apiv1.ServiceStatus{
- LoadBalancer: apiv1.LoadBalancerStatus{
- Ingress: []apiv1.LoadBalancerIngress{
+ LoadBalancer: networking.IngressLoadBalancerStatus{
+ Ingress: []networking.IngressLoadBalancerIngress{
{
IP: "10.0.0.1",
},
@@ -498,7 +498,7 @@ func TestRunningAddressesWithPublishService(t *testing.T) {
},
},
),
- []apiv1.LoadBalancerIngress{
+ []networking.LoadBalancerIngress{
{IP: "10.0.0.1"},
{Hostname: "foo"},
{
@@ -521,8 +521,8 @@ func TestRunningAddressesWithPublishService(t *testing.T) {
ExternalIPs: []string{"10.0.0.1"},
},
Status: apiv1.ServiceStatus{
- LoadBalancer: apiv1.LoadBalancerStatus{
- Ingress: []apiv1.LoadBalancerIngress{
+ LoadBalancer: networking.IngressLoadBalancerStatus{
+ Ingress: []networking.IngressLoadBalancerIngress{
{
IP: "10.0.0.1",
},
@@ -533,7 +533,7 @@ func TestRunningAddressesWithPublishService(t *testing.T) {
},
},
),
- []apiv1.LoadBalancerIngress{
+ []networking.LoadBalancerIngress{
{IP: "10.0.0.1"},
},
false,
--
2.39.0
|
/retest |
Yes @rikatz and looks like there are technically "breaking changes" introduced by kubernetes/kubernetes#106242. |
Signed-off-by: Jintao Zhang <[email protected]> Signed-off-by: Ismayil Mirzali <[email protected]>
awesome work, thank you /lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: strongjz, Volatus The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
…rnetes#9488) * deps: bump k8s dependencies to remove go-autorest * fix: update use of apiv1.LoadBalancerIngress Due to changes in the Kubernetes API, we needed to switch to using v1.IngressLoadBalancerIngress instead of apiv1.LoadBalancerIngress. The struct is otherwise identical despite the name change. * fix ingress status test cases Signed-off-by: Jintao Zhang <[email protected]> Signed-off-by: Ismayil Mirzali <[email protected]> Signed-off-by: Jintao Zhang <[email protected]> Signed-off-by: Ismayil Mirzali <[email protected]> Co-authored-by: Jintao Zhang <[email protected]>
What this PR does / why we need it:
Azure/go-autorest
has been deprecated and will no longer be supported. We indirectly had itas a dependency because of
client-go
.>= [email protected]
have removed this dependency, so we can get rid of it as well.Types of changes
Which issue/s this PR fixes
fixes #8702
How Has This Been Tested?
Checklist:
Does my pull request need a release note?
Any user-visible or operator-visible change qualifies for a release note. This could be a:
No release notes are required for changes to the following:
For more tips on writing good release notes, check out the Release Notes Handbook