Skip to content

Make integration fixtures respect per-namespace hostname ownership - #389

Merged
shukitchan merged 1 commit into
apache:masterfrom
shukitchan:fix-shared-host-fixtures
Oct 26, 2026
Merged

shukitchan merged 1 commit into
apache:masterfrom
shukitchan:fix-shared-host-fixtures

Conversation

@shukitchan

Copy link
Copy Markdown
Contributor

Since #382 a hostname is owned by the first namespace whose Ingress claims it, and routes for that hostname from other namespaces are skipped. The integration fixtures shared test.edge.com between trafficserver-test-2 and trafficserver-test-3, and test.media.com between trafficserver-test-2 and cache-test-ns, so the controller dropped test.edge.com/app1 and test.media.com/cache-test and ATS answered ERR_INVALID_URL/404. test_basic_routing_edge_app1, test_cache_app1 and test_cache_app1_beyond_ttl failed as a result.

  • Give test.edge.com entirely to trafficserver-test-3: add the /app1 route to its Ingress (and to the snippet variant) and remove the test.edge.com rules from every trafficserver-test-2 Ingress.
  • Give the caching app its own hostname, test.cache.com. The caching policy matches on URL path only, so it still applies.
  • Dump the controller container logs during setup so rejected host claims are visible in CI output.
  • Document the hostname ownership rule in the tutorial.

Since apache#382 a hostname is owned by the first namespace whose Ingress
claims it, and routes for that hostname from other namespaces are
skipped. The integration fixtures shared test.edge.com between
trafficserver-test-2 and trafficserver-test-3, and test.media.com
between trafficserver-test-2 and cache-test-ns, so the controller
dropped test.edge.com/app1 and test.media.com/cache-test and ATS
answered ERR_INVALID_URL/404. test_basic_routing_edge_app1,
test_cache_app1 and test_cache_app1_beyond_ttl failed as a result.

- Give test.edge.com entirely to trafficserver-test-3: add the /app1
  route to its Ingress (and to the snippet variant) and remove the
  test.edge.com rules from every trafficserver-test-2 Ingress.
- Give the caching app its own hostname, test.cache.com. The caching
  policy matches on URL path only, so it still applies.
- Dump the controller container logs during setup so rejected host
  claims are visible in CI output.
- Document the hostname ownership rule in the tutorial.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@shukitchan
shukitchan merged commit f361640 into apache:master Oct 26, 2026
7 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.

1 participant