-
Notifications
You must be signed in to change notification settings - Fork 368
fix: support tlsSecret from http.backends in ApisixRoute #2518
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: support tlsSecret from http.backends in ApisixRoute #2518
Conversation
| } | ||
| } else { | ||
| tc.Upstreams[serviceNN] = &au | ||
| if err = r.processExternalNodes(ctx, tc, au); 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.
The backend uses Kubernetes services for service discovery, which should not allow custom endpoints. I don't think this needs to be handled.
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.
removed
AlinsRan
left a comment
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.
Other LGTM.
AlinsRan
left a comment
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.
Other LGTM.
| time.Sleep(6 * time.Second) | ||
| services, err := s.DefaultDataplaneResource().Service().List(context.Background()) | ||
| Expect(err).ShouldNot(HaveOccurred(), "list services") | ||
| service := services[0] |
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.
Directly accessing services[0] may result in unexpected errors leading to panic. Perhaps we can consider adding a HaveLen check before this.
ronething
left a comment
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.
others lgtm
Fixes #2496
What this PR does / why we need it:
Pre-submission checklist: