devzone 0.14.0 → 0.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -195,9 +195,22 @@ gitlab_installer() {
|
|
|
195
195
|
|
|
196
196
|
# S'assurer que le cluster kind gitlab existe
|
|
197
197
|
echo "▶ Vérification/création du cluster kind gitlab…"
|
|
198
|
+
local cree=false
|
|
198
199
|
if ! kind get clusters 2>/dev/null | grep -qx 'gitlab'; then
|
|
199
200
|
echo "▶ Création du cluster kind gitlab…"
|
|
200
201
|
kind create cluster --name gitlab --config "$ICI/kind.yaml" --wait 120s
|
|
202
|
+
cree=true
|
|
203
|
+
fi
|
|
204
|
+
|
|
205
|
+
# SSH : un cluster gitlab préexistant (créé avant ce réglage) n'a pas le
|
|
206
|
+
# mapping nodePort 32022 → hostPort 2224 : le clone SSH (port 2224) est
|
|
207
|
+
# alors impossible. Avertissement seulement, l'installation continue.
|
|
208
|
+
if [ "$cree" = false ]; then
|
|
209
|
+
local sortie_ssh
|
|
210
|
+
sortie_ssh="$(docker port gitlab-control-plane 32022/tcp 2>/dev/null || true)"
|
|
211
|
+
if [ -z "$sortie_ssh" ]; then
|
|
212
|
+
echo "devzone : gitlab : clone SSH (port 2224) indisponible sur ce cluster, créé avant ce réglage ; pour l'activer : devzone desactiver gitlab puis devzone activer gitlab (données GitLab recréées)" >&2
|
|
213
|
+
fi
|
|
201
214
|
fi
|
|
202
215
|
|
|
203
216
|
# Ajouter le dépôt GitLab Helm (idempotent)
|
|
@@ -22,6 +22,8 @@ global:
|
|
|
22
22
|
install: false # prometheus non installé (top-level aussi)
|
|
23
23
|
registry:
|
|
24
24
|
enabled: false # registry non activé
|
|
25
|
+
shell:
|
|
26
|
+
port: 2224 # port SSH annoncé par GitLab pour le clone (ssh://git@gitlab.localhost:2224/...)
|
|
25
27
|
|
|
26
28
|
# cert-manager : désactivé
|
|
27
29
|
installCertmanager: false
|
|
@@ -47,6 +49,8 @@ nginx-ingress:
|
|
|
47
49
|
minAvailable: 0
|
|
48
50
|
service:
|
|
49
51
|
type: NodePort
|
|
52
|
+
nodePorts:
|
|
53
|
+
gitlab-shell: 32022 # nodePort fixe (plage 30000-32767) pour le clone SSH, port annoncé : 2224
|
|
50
54
|
|
|
51
55
|
# Réplicas à 1 et ressources réduites
|
|
52
56
|
gitlab:
|
package/package.json
CHANGED