-
Notifications
You must be signed in to change notification settings - Fork 303
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
Make frontend resource deletion test verify that ingress VIP is unchanged #995
Conversation
Hi @skmatti. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
/assign @freehan |
t.Fatalf("Update(%s) = %v, want nil; ingress: %v", ingKey, err, ing) | ||
} | ||
t.Logf("Ingress updated (%s)", ingKey) | ||
if ing, err = e2e.WaitForIngress(s, ing, &e2e.WaitForIngressOptions{ExpectUnreachable: true}); err != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am wondering if this would be waiting for LB config to be reconfigured. I think it would not. It will pass immediately after ingress is updated. Can you confirm?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It may just work fine in this case. WaitForIngress validates both http and https paths.
ingress-gce/pkg/fuzz/validator.go
Lines 120 to 126 in 7ac5f47
// baseAttributes apply settings for the vanilla Ingress spec. | |
func (a *IngressValidatorAttributes) baseAttributes(ing *v1beta1.Ingress) { | |
a.CheckHTTP = true | |
if len(ing.Spec.TLS) != 0 { | |
a.CheckHTTPS = true | |
} | |
} |
Here, I am enabling both http and https back again. So, it should wait for both checks to be validated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
got it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/approve
t.Fatalf("Update(%s) = %v, want nil; ingress: %v", ingKey, err, ing) | ||
} | ||
t.Logf("Ingress updated (%s)", ingKey) | ||
if ing, err = e2e.WaitForIngress(s, ing, &e2e.WaitForIngressOptions{ExpectUnreachable: true}); err != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
got it.
/ok-to-test |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: freehan, skmatti 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 |
Extends existing e2e test to cover bug: #993