Repository navigation
Conversation
Add _gateway.tpl with helpers for HTTPRoute apiVersion, path match mapping, route naming, and the service backendRef. Bump rstudio-library to 0.1.38 and update the rstudio-library-test lock file. The product charts will use these helpers in a follow-up change (#981).
The Chart.lock change for rstudio-library 0.1.38 counts as a chart change, so chart-testing requires a version bump and a NEWS entry.
bschwedler
left a comment
There was a problem hiding this comment.
Thanks for adding this!
Could you please add some unit tests to cover these cases in other-charts/rstudio-library-test?
I know our coverage currently isn't that much, but we are trying to add in coverage for anything new so that we can catch regressions in the future.
Add a testGateway harness template and a gateway_test.yaml suite to rstudio-library-test. The tests cover: - the Gateway API version - pathType mapping, including pass-through and the PathPrefix fallback - path match rendering from string and object paths - HTTPRoute naming, including multi-digit indexes and 63-character truncation - service backendRef rendering
|
@bschwedler I added unit tests for the new helpers in The tests follow the pattern of the existing suites in that chart: a
All 10 suites in the chart pass locally (88 tests). I also changed the One limit: the The change also adds a |
…es unique, bump rstudio-library to 0.1.39
serviceBackendRef converted the port with `int`, so a named Service port such as "http" or an empty value rendered port 0 and produced an invalid HTTPRoute. Fail the render with a clear message instead. Add unit tests for a named port and an empty port.
Splits the
rstudio-librarychange out of #981 so the library can be released first.Why
The product charts in #981 depend on
rstudio-library0.1.39. That version is not on helm.rstudio.com yet, so thelint,test, andcheck-versions-connectchecks on #981 fail withno matching version. After this PR merges and the release workflow publishes 0.1.39, those checks can run again on #981.What changes
templates/_gateway.tplwith Gateway API helpers:apiVersion, path match mapping, HTTPRoute naming, and the servicebackendRef. Nothing calls them yet, so no chart renders differently.rstudio-libraryto 0.1.39 and add theNEWS.mdentry.other-charts/rstudio-library-testto 0.1.3 and update itsChart.lockfor 0.1.39.ImplementationSpecificpath type and for unknown path types, and keep HTTPRoute names unique when they exceed 63 characters (review feedback from Ben).The helpers come from #865 by Adam Zahorscak.
Testing
helm unittestonother-charts/rstudio-library-test: 10 suites and 95 tests pass, using the local library.helm-docsproduces no diff.