feat: deactivate git-server where not needed - #3718
Merged
Merged
Conversation
merll
requested review from
Ani1357,
CasLubbers,
ferruhcihan and
j-zimnowoda
as code owners
September 30, 2026 13:16
Contributor
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
The bootstrap change breaks existing test expectations, and the new migration behavior lacks coverage.
Review effort: Balanced
Findings: 2
Open (2)
What changed in this PR
Centralizes Git repository source detection and disables the built-in Git server when external Git is configured.
Changes:
- Adds derived Git source classification for templates.
- Defaults Git server off and adds bootstrap/migration handling.
- Advances the values specification to version 75.
Template comparison could not run because the required tsx dependency was unavailable.
| File | Description |
|---|---|
values/team-ns/team-ns.gotmpl |
Uses derived Git source classification. |
values/argocd/argocd-raw.gotmpl |
Selects Argo CD credentials by Git source. |
values-changes.yaml |
Registers migration version 75. |
tests/fixtures/env/settings/versions.yaml |
Updates fixture specification version. |
src/cmd/migrate.ts |
Disables Git server for external repositories. |
src/cmd/bootstrap.ts |
Enables Git server for internal bootstrap configurations. |
helmfile.d/snippets/derived.gotmpl |
Derives Git source and effective enablement. |
helmfile.d/snippets/defaults.yaml |
Defaults Git server to disabled. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
merll
marked this pull request as draft
September 30, 2026 13:56
merll
marked this pull request as ready for review
September 30, 2026 13:56
Contributor
|
Comparison of Helm chart templating output: # New file added: apl-network-policies/templates/networkpolicies/git-server.yaml
# Old file deleted: git-server-git-server
# Old file deleted: git-server-git-server-artifacts
# otomi-api/templates/configmap.yaml
@@ data.VERSIONS @@
! ± value change in multiline text (one insert, one deletion)
{
"api": "main",
"aplCharts": "main",
"console": "main",
"consoleLogin": "main",
"core": "main",
- "specVersion": 74,
+ "specVersion": 75,
"tasks": "main",
"tools": "main",
"tty": "1.2.8"
}
# otomi-api/templates/deployment.yaml
# rabbitmq-cluster-operator/templates/messaging-topology-operator/validating-webhook-configuration.yaml
# values-repo.yaml
@@ versions.specVersion @@
! ± value change
- 74
+ 75
|
CasLubbers
approved these changes
Oct 1, 2026
CasLubbers
left a comment
Contributor
There was a problem hiding this comment.
git-server was not enabled when installing through BYO-Git
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



📌 Summary
This PR sets a default value for
apps.git-server.enabledin the bootstrap process, depending whether the internal Git server is needed (either URL unset, or explicitly set to the internal Git URL) or an external Git source is used. Explicit input values remain unchanged.A one-off migration is added for existing clusters which are running on an external Git server, but still have the platform built-in Git server enabled. It deactivates the app.
When migrating an internal to an external Git source, git-server is switched off by a values change in the API. This is provided by the following feature branch: linode/apl-api#1098
🔍 Reviewer Notes
🧹 Checklist