mirror of
https://github.com/cozystack/cozystack.git
synced 2026-12-01 20:56:02 +09:00
Moving the platform's tenant ingress to Gateway API needs a route
object for the S3 endpoint and the filer. Upstream added them after
4.48 and has not released them yet, so they arrive here as a patch
that `make update` applies until a release carries them. Both stay
off by default, so the rendered release is unchanged; nothing is
switched to Gateway API by this change.
Adapted from upstream commit 68af030e381f ("helm: add Gateway API
HTTPRoute for master, volume, filer, s3 and admin"):
- The s3 route's default backend is `<name>-s3` instead of
componentName, the name s3-service-name.patch gives the Service.
Upstream's form diverges from the real Service whenever the
fullname differs from seaweedfs.name, the chart name unless
nameOverride is set.
- Only the s3 and filer routes and their values blocks are taken; the
master, volume and admin routes, the README section and the CI
workflow change are left out.
With security enabled and no httpsPort, the standalone s3 gateway
serves TLS on its main port (s3-tls-main-port.patch), so a Gateway
sending plaintext to the default backend needs a BackendTLSPolicy
alongside the route.
Assisted-by: LLM
Signed-off-by: Aleksei Sviridkin <f@lex.la>