-
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
Fix events-based e2e tests #519
Conversation
controller.go changes transformed ingress spec errors from Kubernetes Events to simple logs: https://github.com/kubernetes/ingress-gce/blob/master/pkg/controller/controller.go#L455 is returning. So we never hit https://github.com/kubernetes/ingress-gce/blob/master/pkg/controller/controller.go#L461 . As a consequence, some e2e tests, waiting for those events, bails out (ie. https://github.com/kubernetes/ingress-gce/blob/master/cmd/e2e-test/backend_config_test.go#L114 ). Notifying those errors as events -as they did previously- seems the proper course of action, and generaly useful beyond testing. Unrelated: end users may authenticate to GCP using OpenID Connect (at least I do); linking in client-go's plugin/pkg/client/auth/oidc allow them to run tests on their machines.
/lgtm |
/ok-to-test |
/lgtm |
To match previous commits' Gopkg.lock changes.
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
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bowei, bpineau, MrHohn, rramkumar1 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 |
controller.go changes transformed ingress spec errors from Kubernetes Events to simple logs:
https://github.com/kubernetes/ingress-gce/blob/master/pkg/controller/controller.go#L455 is returning.
So we never hit https://github.com/kubernetes/ingress-gce/blob/master/pkg/controller/controller.go#L461 .
As a consequence, some e2e tests, waiting for those events, bails out
(ie. https://github.com/kubernetes/ingress-gce/blob/master/cmd/e2e-test/backend_config_test.go#L114 ).
Notifying those errors as events -as they did previously- seems the proper course of action,
and generaly useful beyond testing.
Unrelated: end users may authenticate to GCP using OpenID Connect (at least I do);
linking in client-go's plugin/pkg/client/auth/oidc allow them to run tests on their
machines.