Skip to content

Conversation

@Revolyssup
Copy link
Contributor

@Revolyssup Revolyssup commented Aug 20, 2025

Fixes #2496

  • Bugfix
  • New feature provided
  • Improve performance
  • Backport patches
  • Documentation
  • Refactor
  • Chore
  • CI/CD or Tests

What this PR does / why we need it:

Pre-submission checklist:

  • Did you explain what problem does this PR solve? Or what new features have been added?
  • Have you added corresponding test cases?
  • Have you modified the corresponding document?
  • Is this PR backward compatible? If it is not backward compatible, please discuss on the mailing list first

}
} else {
tc.Upstreams[serviceNN] = &au
if err = r.processExternalNodes(ctx, tc, au); err != nil {
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed

Copy link
Contributor

@AlinsRan AlinsRan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other LGTM.

Copy link
Contributor

@AlinsRan AlinsRan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other LGTM.

@Revolyssup Revolyssup changed the title fix: support tlsSecret and externalNodes from http.backends in ApisixRoute fix: support tlsSecret from http.backends in ApisixRoute Aug 21, 2025
time.Sleep(6 * time.Second)
services, err := s.DefaultDataplaneResource().Service().List(context.Background())
Expect(err).ShouldNot(HaveOccurred(), "list services")
service := services[0]
Copy link
Contributor

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.

Copy link
Contributor

@ronething ronething left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

others lgtm

@Revolyssup Revolyssup merged commit 6bc3731 into apache:master Aug 21, 2025
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: ApisixRoute spec.http.backends associated with ApisixUpstream needs to be handled correctly

3 participants