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)
@@ -17,6 +17,7 @@ nodes:
17
17
  - containerPort: 80
18
18
  hostPort: 8929
19
19
  protocol: TCP
20
- - containerPort: 22
20
+ # Clone SSH : nodePort kind fixe 32022 → hostPort 2224 (port annoncé par GitLab)
21
+ - containerPort: 32022
21
22
  hostPort: 2224
22
23
  protocol: TCP
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devzone",
3
- "version": "0.14.0",
3
+ "version": "0.14.1",
4
4
  "description": "Zone de dev conteneurisée : Java, Node, Python, Docker, Kubernetes et outils repowarden, dans un devcontainer",
5
5
  "license": "GPL-3.0-only",
6
6
  "repository": {