Skip to content

Commit 91e7e85

Browse files
committed
📚 Sync docs from alaudadevops/gitlab-ce-operator on 52e1f364cd0bffcd5086004cb5560c21014022f1
Source: docs: update upgrade instructions for GitLab 14 to include dynamic image retrieval for task-runner configuration Author: mingfu Ref: refs/heads/main Commit: 52e1f364cd0bffcd5086004cb5560c21014022f1 This commit automatically syncs documentation changes from the source-docs repository. 🔗 View source commit: AlaudaDevops/gitlab-ce-operator@52e1f36 🤖 Synced on 2025-12-16 05:49:50 UTC
1 parent 8fc63d3 commit 91e7e85

File tree

2 files changed

+28
-6
lines changed

2 files changed

+28
-6
lines changed

‎.github/SYNC_INFO.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# Documentation Sync Information
22

3-
- **Last synced**: 2025-12-15 06:07:14 UTC
3+
- **Last synced**: 2025-12-16 05:49:50 UTC
44
- **Source repository**: alaudadevops/gitlab-ce-operator
5-
- **Source commit**: [878e8727e88b68fdec5d821ff01ec502fe6aa378](https://github.com/alaudadevops/gitlab-ce-operator/commit/878e8727e88b68fdec5d821ff01ec502fe6aa378)
5+
- **Source commit**: [52e1f364cd0bffcd5086004cb5560c21014022f1](https://github.com/alaudadevops/gitlab-ce-operator/commit/52e1f364cd0bffcd5086004cb5560c21014022f1)
66
- **Triggered by**: nanjingfm
7-
- **Workflow run**: [#64](https://github.com/alaudadevops/gitlab-ce-operator/actions/runs/20222253994)
7+
- **Workflow run**: [#66](https://github.com/alaudadevops/gitlab-ce-operator/actions/runs/20257976523)
88

99
## Files synced:
1010
- docs/

‎docs/en/upgrade/02_14_upgrade_to_17.mdx‎

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -370,19 +370,41 @@ Test setup:
370370
1. Enable the task-runner component on GitLab 14 to execute backup commands
371371
372372
```bash
373-
kubectl patch gitlabofficials.operator.devops.alauda.io ${GITLAB_NAME} -n $GITLAB_NAMESPACE --type='merge' -p='
373+
# generate the image repository and tag for the task-runner based on the gitaly image
374+
image=$(kubectl get pod ${GITLAB_NAME}-gitaly-0 -n $GITLAB_NAMESPACE -o jsonpath='{.spec.containers[0].image}')
375+
tag=${image##*:}
376+
registry=${image%%/*}
377+
378+
echo "registry: ${registry}"
379+
echo "tag: ${tag}"
380+
381+
kubectl patch gitlabofficials.operator.devops.alauda.io "${GITLAB_NAME}" \
382+
-n "$GITLAB_NAMESPACE" \
383+
--type=merge \
384+
-p "$(cat <<EOF
374385
{
375386
"spec": {
376387
"helmValues": {
377388
"gitlab": {
378389
"task-runner": {
379390
"enabled": "true",
380-
"resources": { "limits": { "cpu": "2", "memory": "4G" } }
391+
"image": {
392+
"repository": "${registry}/devops/gitlab-org/build/cng/gitlab-task-runner-ce",
393+
"tag": "${tag}"
394+
},
395+
"resources": {
396+
"limits": {
397+
"cpu": "2",
398+
"memory": "4G"
399+
}
400+
}
381401
}
382402
}
383403
}
384404
}
385-
}'
405+
}
406+
EOF
407+
)"
386408
# Output:
387409
# gitlabofficial.operator.devops.alauda.io/xxx patched
388410

0 commit comments

Comments
 (0)