Repository navigation
Default the access proxy image to the chart's release - #1176
Conversation
The infrastructure chart defaulted publishing.accessProxyImage to railgrid-access-proxy:latest, so a deployment either floated on :latest or pinned a tag by hand that nothing moved afterwards: a chart following a version range upgraded the provider and left the gate on the tag of its first install. A released chart (appVersion vX.Y.Z) now resolves an empty accessProxyImage to <accessProxyImageRepository>:vX.Y.Z, the gate the same release publishes, in both the serve Deployment and the operator-managed InfrastructureProvider. An explicit value still wins. The in-repo chart and main builds (appVersion sha-<commit>) publish no gate image and keep the binary's :latest default.
There was a problem hiding this comment.
🟡 Changes recommended
The access-proxy template change is inconsistent with the generator, causing the existing byte-comparison test to fail and regeneration to revert the new helper call.
1 open issue
What changed in this PR
This PR makes the infrastructure provider’s access-proxy image follow the chart’s release version by default, keeping the access gate aligned with provider upgrades while preserving explicit image overrides.
Changes:
- Adds release-aware image resolution for both deployment modes, with configurable repositories for mirrors.
- Updates self-hosting defaults and documents release versus unreleased behavior.
- Adds Helm rendering tests and clarifies release-workflow comments.
| File | Description |
|---|---|
providers/infrastructure/deploy/chart/values.yaml |
Defaults image overrides to empty and adds repository settings. |
providers/infrastructure/deploy/chart/templates/operator-config.yaml |
Uses the helper and always renders publishing configuration. |
providers/infrastructure/deploy/chart/templates/deployment.yaml |
Resolves the access-proxy environment variable through the helper. |
providers/infrastructure/deploy/chart/templates/catalogentry.yaml |
Applies release-aware self-hosting defaults with a :latest fallback. |
providers/infrastructure/deploy/chart/templates/_helpers.tpl |
Adds shared release-aware image resolution. |
providers/infrastructure/deploy/chart/README.md |
Documents image defaults and repository overrides. |
providers/infrastructure/chart_access_proxy_image_test.go |
Tests release, unreleased, explicit-image, and mirror behavior. |
.github/workflows/provider-release.yaml |
Clarifies image-version expectations in comments only. |
Review effort: Balanced
| it ends up in a redirect the user's browser follows. | ||
| - name: operator.publishing.accessProxyImage | ||
| value: {{ .Values.publishing.accessProxyImage | quote }} | ||
| value: {{ include "infrastructure.accessProxyImage" (dict "ctx" . "publishing" .Values.publishing) | default (printf "%s:latest" (default "ghcr.io/railgrid/railgrid-access-proxy" (default (dict) .Values.publishing).accessProxyImageRepository)) | quote }} |
|
/test pull-railgrid-test-providers |
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cwilhit The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/test all |

Why
The infrastructure chart defaulted
publishing.accessProxyImagetorailgrid-access-proxy:latest. A deployment therefore either floated on:latestor pinned a tag by hand, and nothing moved that pin afterwards. Production follows a chart version range, so the provider kept upgrading while the access gate stayed onv0.2.1, the tag pinned at first install.The gate image is already built and pushed on every
providers/infrastructure/vX.Y.Ztag; only the chart default was missing.What changes
A new
infrastructure.accessProxyImagehelper, modelled on the existinginfrastructure.devAgentImage:accessProxyImageunsetvX.Y.Z)<accessProxyImageRepository>:vX.Y.Zsha-<commit>):latestdefault, since no gate image is published for theseaccessProxyImagesetpublishing.*) and the operator-managedInfrastructureProvider(operator.publishing.*) go through the helper.accessProxyImageRepositoryin both blocks, for mirrors.accessProxyImagenow defaults to""invalues.yaml.publishing:block is rendered unconditionally. Its old condition was always true because of the:latestdefault.requiredValuesentry in the chart's CatalogEntry uses the helper, falling back to:latest.Upgrade note
A deployment that relied on the
:latestdefault moves to the release tag on its next chart upgrade. A deployment that setsaccessProxyImageis unaffected; removing that override lets the gate follow the chart.Testing
helm templateagainst the in-repo chart, a0.0.0-mainpackage and a0.3.0package: default, explicit override and repository override render as in the table, in both modes.node hack/verify-provider-contract.mjs: 0 violations.TestChartAccessProxyImageFollowsReleaseandmake lint(the provider module could not be compiled on a full disk). CI is the first run of the test.requiredValuesentry.