Rename the artifact_registry settings key to artifact_central
What does this MR do and why?
Renames the Artifact Central settings key and its Prometheus counter, as part of the Artifact Registry to Artifact Central rename.
- Settings key:
gitlab.ymlreadsartifact_central:instead ofartifact_registry:. This coversconfig/gitlab.yml.example,config/initializers/1_settings.rb,ArtifactRegistry::Configuration, and every spec that stubs the key. - Prometheus counter:
gitlab_ci_artifact_registry_pull_credentials_totalbecomesgitlab_ci_artifact_central_pull_credentials_total. The metrics doc row is updated to match. - No fallback: The old key is not read. Artifact Central is in beta, so we break once instead of carrying two names.
Unchanged: Ruby module and file names (ArtifactRegistry::), the ci_artifact_registry_pull_credentials feature flag, and the secret file path /etc/gitlab/artifact-registry/.gitlab_artifact_registry_secret.
Deploy coordination
This MR breaks Artifact Central on any install whose gitlab.yml still says artifact_registry:. Without api_url, ArtifactRegistry::Configuration.configured? returns false, and every Artifact Central feature turns off.
| Install | What writes the key today | What must change |
|---|---|---|
| GitLab.com | k8s-workloads/gitlab-com sets global.appConfig.artifactRegistry in releases/gitlab/values/gprd.yaml.gotmpl and gstg.yaml.gotmpl. The vendored chart (vendor/charts/gitlab/{gprd,gstg,pre}/charts/gitlab/templates/_gitlab.yaml.tpl) renders it as artifact_registry:. |
.com must render artifact_central: before this MR deploys. Rails auto-deploys faster than chart versions get vendored, so the chart change (or a .com override) has to be live first. |
| Charts | charts/gitlab/templates/_gitlab.yaml.tpl renders artifact_registry: from global.appConfig.artifactRegistry. |
Render artifact_central:. Ship in 19.7. |
| Omnibus | files/gitlab-cookbooks/gitlab/templates/default/gitlab.yml.erb renders artifact_registry: from gitlab_rails['artifact_registry']. |
Render artifact_central:. Ship in 19.7. |
Order:
- Chart (gitlab-org/charts/gitlab!5626 (merged)) and Omnibus (omnibus-gitlab!10130 (merged)) both render
artifact_registry:andartifact_central:. Both merge before this MR, so old and new Rails work on every install method, and 19.7 never ships this MR without Omnibus. - GitLab.com vendors that chart version (k8s-workloads), so .com renders
artifact_central:. - Caproni (gitlab-org/ops/artifact-registry e2e): bump
GL_CHART_DEVEL_VERSIONto a chart build that includes the chart MR, and makescripts/e2e/caproni-up.shcheck forartifact_central:. Caproni runs CNG master images, so without this its Rails losesapi_urlwhen this MR merges. - This MR merges.
- After 19.7, the chart and Omnibus stop rendering
artifact_registry:.
Nothing in gitlab-com/runbooks references the old counter name, so no dashboard or alert needs an update.
References
Related to #630237
Related to gitlab-org/ops/artifact-registry#2072 (closed)
Screenshots or screen recordings
Not applicable. No UI change.
How to set up and validate locally
- In your GDK
config/gitlab.yml, rename theartifact_registry:block toartifact_central:. If you have no block, the development defaulthttp://localhost:8080applies. - Restart Rails:
gdk restart rails-web. - In a Rails console, check the key resolves:
Gitlab.config.artifact_central['api_url'] ArtifactRegistry::Configuration.configured? - Visit an organization's Artifact Central page and confirm it loads.
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.