mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-30 04:06:34 +09:00
## What this PR does Closes #4878 `s3-service-name.patch` renames the S3 Service to `<name>-s3`. The Lance catalog came with chart 4.45, and its two consumers still build the name with `seaweedfs.componentName`, which gives `<fullname>-s3`: - the Lance ingress backend (`templates/s3/s3-lance-ingress.yaml`) - the Lance namespace URL the worker gets (`seaweedfs.worker.lanceNamespaceUrl` in `templates/shared/_helpers.tpl`) Changes: - Both places now use the `<name>-s3` form that the S3, Iceberg and COSI consumers already use. The ingress uses `{{ template "seaweedfs.name" . }}-s3` like the Iceberg ingress, and the URL uses `printf "%s-s3" (include "seaweedfs.name" .)`. - The two hunks are appended to `patches/s3-service-name-consumers.patch`, so `make update` keeps them. - Two cases are added to `tests/s3_service_name_consumers_test.yaml`. They set a non-zero `lancePort` and `fullnameOverride: seaweedfs-system`, like the existing cases do. Nothing changes with the shipped values. `lancePort: 0` keeps both consumers from rendering, and `fullnameOverride: seaweedfs` makes both names equal anyway. ### How I checked it - `helm unittest .` in `packages/system/seaweedfs`: 23 suites and 135 tests pass. With the template changes reverted, the two new cases fail and the rest still pass. - `make test-guard-fail-closed` passes. - I reversed the full patch chain from the `update` target on a copy of `charts/`, newest first, then applied it forward again. Every patch applied cleanly, and the result matched the committed `charts/` exactly. - I couldn't run `make test-image-version` locally because `yq` isn't installed here. This PR doesn't touch the Dockerfile or the chart version. ### Screenshots Not a UI change. ### Downstream repositories - [x] No downstream repository is affected by this change - [ ] [cozystack/website](https://github.com/cozystack/website) - follow-up: - [ ] [cozystack/terraform-provider-cozystack](https://github.com/cozystack/terraform-provider-cozystack) - follow-up: - [ ] [cozystack/ansible-cozystack](https://github.com/cozystack/ansible-cozystack) - follow-up: - [ ] [cozystack/ccp](https://github.com/cozystack/ccp) - follow-up: - [ ] [cozystack/talm](https://github.com/cozystack/talm) - follow-up: - [ ] [cozystack/cozyhr](https://github.com/cozystack/cozyhr) - follow-up: - [ ] [cozystack/cozy-proxy](https://github.com/cozystack/cozy-proxy) - follow-up: - [ ] [cozystack/cozystack-telemetry-server](https://github.com/cozystack/cozystack-telemetry-server) - follow-up: - [ ] [cozystack/external-apps-example](https://github.com/cozystack/external-apps-example) - follow-up: - [ ] [cozystack/examples](https://github.com/cozystack/examples) - follow-up: - [ ] [cozystack/community](https://github.com/cozystack/community) - follow-up: This touches only a vendored chart patch and its tests under `packages/system/seaweedfs`. Nothing in the trigger map of `docs/agents/contributing.md` applies. ### Release note ```release-note fix(seaweedfs): the Lance catalog ingress and the worker's Lance namespace URL now point at the renamed `<name>-s3` Service. ``` <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **Bug Fixes** * Corrected S3 service names used by ingress routes, worker namespace URLs, and COSI endpoint URLs to consistently use the release name. * COSI endpoint URLs now use the configured S3 port, including when using the fallback S3 configuration. <!-- end of auto-generated comment: release notes by coderabbit.ai -->