devzone 7.6.1 → 7.7.0

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.
package/bin/SHA256SUMS CHANGED
@@ -1,6 +1,6 @@
1
- ea2f9af12971226b9b91ee5f598d1804f7f433d1423a2074080b0903ee6aaeb8 devzone-linux-amd64
2
- 018d546966acdff26d2024c4120b80e12616b77b08e5fefe75658f3e9d9c9346 devzone-linux-arm64
3
- 425a9a0d32138b7e94d3ce70a6576f5e0451fee8d9a6af546d9bb80add7e8701 devzone-darwin-amd64
4
- 2d40e751b5f47c4d7986832df2032c30617c7c4ab2d0d902193cdb3462046065 devzone-darwin-arm64
5
- 50ec64b365fa0ba236c4438cd3567179df50fc4fcac102b67a1b6d4370ba4ca5 devzone-windows-amd64.exe
6
- 8116c89d1dd1998ecf7e26ff39506b5229f0e648c0b2e694da43555ba66e73d3 devzone-windows-arm64.exe
1
+ 988ed068d4e7f3845784fddb955b479f1e566f8e1872100c4ef3138324636d17 devzone-linux-amd64
2
+ 525f1bb516a25c847c7e77de13655e464d9b35a9cf431ee1f5d2f43df3335a7e devzone-linux-arm64
3
+ bb638ad8640ab1131d9402306d3232b8595368a649acc7a743fb7b22353acb53 devzone-darwin-amd64
4
+ 820102028a8d62790240acf1f12f404976bfd389f6f196e62b738581f7c93314 devzone-darwin-arm64
5
+ 6ac508ddf3f847ca6449198dcd39e0b2c053b5a9bb8f37e86c9ba100bcd2b506 devzone-windows-amd64.exe
6
+ 719332e9472633e2f70b1c66970247f73080888bced4f892048efa208eca76a2 devzone-windows-arm64.exe
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -184,6 +184,35 @@ spec:
184
184
  value: tcp://127.0.0.1:1234
185
185
  resources:
186
186
  {{- toYaml .Values.resources | nindent 12 }}
187
+ {{- /*
188
+ Liveness probe (#982): exit 1 when pids.current is above thresholdPercent
189
+ of pids.max, so that the kubelet restarts the container. The script is
190
+ bash, passed as an argument; the threshold is its $1. Missing files or
191
+ pids.max "max" give exit 0. CGROUP_DIR overrides the cgroup directory
192
+ (the bats test uses fake files). Settings and reason: values.yaml.
193
+ Helm comment: not in the rendering.
194
+ */}}
195
+ {{- if .Values.livenessProbe.enabled }}
196
+ livenessProbe:
197
+ exec:
198
+ command:
199
+ - bash
200
+ - -c
201
+ - |
202
+ dir="${CGROUP_DIR:-/sys/fs/cgroup}"
203
+ cur="$(cat "$dir/pids.current" 2>/dev/null)" || exit 0
204
+ max="$(cat "$dir/pids.max" 2>/dev/null)" || exit 0
205
+ [[ "$cur" =~ ^[0-9]+$ && "$max" =~ ^[0-9]+$ ]] || exit 0
206
+ (( max > 0 )) || exit 0
207
+ (( cur * 100 > max * $1 )) && exit 1
208
+ exit 0
209
+ - liveness
210
+ - {{ .Values.livenessProbe.thresholdPercent | quote }}
211
+ initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }}
212
+ periodSeconds: {{ .Values.livenessProbe.periodSeconds }}
213
+ timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds }}
214
+ failureThreshold: {{ .Values.livenessProbe.failureThreshold }}
215
+ {{- end }}
187
216
  volumeMounts:
188
217
  - name: workspace
189
218
  mountPath: /workspaces/projets
@@ -77,6 +77,23 @@ resources:
77
77
  cpu: "500m"
78
78
  memory: "4Gi"
79
79
 
80
+ # Liveness probe of the workspace container (#982). It fails when pids.current
81
+ # goes past thresholdPercent of pids.max (the process limit), and the kubelet
82
+ # then restarts the container: the volumes are kept, only the processes go.
83
+ # PID 1 reaps the zombies (#967), but nothing stops another runaway (a fork loop,
84
+ # processes that never exit): the probe catches that case. The values are
85
+ # deliberately cautious, a short spike must never restart the workspace: the
86
+ # probe waits 120 s after the start, runs every 60 s and needs 5 failures in a
87
+ # row (5 minutes above the threshold at least). Unreadable or unlimited cgroup
88
+ # files count as a success. enabled: false removes the probe.
89
+ livenessProbe:
90
+ enabled: true
91
+ thresholdPercent: 85
92
+ periodSeconds: 60
93
+ failureThreshold: 5
94
+ initialDelaySeconds: 120
95
+ timeoutSeconds: 10
96
+
80
97
  persistence:
81
98
  # Identities, logins and caches, kept from one restart to the next. Each path
82
99
  # (relative to the home of vscode) is mounted from this volume at its usual
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devzone",
3
- "version": "7.6.1",
3
+ "version": "7.7.0",
4
4
  "description": "Ton poste de développement Linux, prêt en une commande, identique sur Mac, Windows et Linux.",
5
5
  "license": "GPL-3.0-only",
6
6
  "repository": {