devzone 0.34.4 → 0.34.5
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/manage/workspace.sh +16 -2
- package/package.json +1 -1
package/manage/workspace.sh
CHANGED
|
@@ -48,7 +48,7 @@ image_par_defaut() {
|
|
|
48
48
|
|
|
49
49
|
# Attend le pod du workspace ; image introuvable ou pod lent sont dits clairement.
|
|
50
50
|
attendre_pod() {
|
|
51
|
-
local image="$1" attente pas debut etat
|
|
51
|
+
local image="$1" attente pas debut etat evenements arch
|
|
52
52
|
attente="${DEVZONE_WORKSPACE_ATTENTE:-120}"
|
|
53
53
|
pas="${DEVZONE_WORKSPACE_PAS:-2}"
|
|
54
54
|
debut="$SECONDS"
|
|
@@ -58,7 +58,21 @@ attendre_pod() {
|
|
|
58
58
|
-o jsonpath='{.status.phase} {.status.initContainerStatuses[*].state.waiting.reason} {.status.containerStatuses[*].state.waiting.reason}' 2>/dev/null)" || true
|
|
59
59
|
case "$etat" in
|
|
60
60
|
*ErrImagePull* | *ImagePullBackOff*)
|
|
61
|
-
|
|
61
|
+
# shellcheck disable=SC2046
|
|
62
|
+
evenements="$(kubectl $(drapeau_kubectl) get events --namespace devzone-workspace \
|
|
63
|
+
--field-selector involvedObject.name=devzone-workspace-0 \
|
|
64
|
+
-o jsonpath='{.items[*].message}' 2>/dev/null)" || true
|
|
65
|
+
case "$evenements" in
|
|
66
|
+
*"no match for platform"*)
|
|
67
|
+
# shellcheck disable=SC2046
|
|
68
|
+
arch="$(kubectl $(drapeau_kubectl) get nodes \
|
|
69
|
+
-o jsonpath='{.items[0].status.nodeInfo.architecture}' 2>/dev/null)" || true
|
|
70
|
+
echo "✖ image $image sans version pour $arch : les livraisons de devzone la publient pour amd64 et arm64." >&2
|
|
71
|
+
;;
|
|
72
|
+
*)
|
|
73
|
+
echo "✖ image $image introuvable : elle est publiée à chaque livraison de devzone." >&2
|
|
74
|
+
;;
|
|
75
|
+
esac
|
|
62
76
|
echo " Pour une image construite à la main : devzone workspace demarrer --image <repository:tag>" >&2
|
|
63
77
|
# shellcheck disable=SC2046
|
|
64
78
|
helm $(drapeau_helm) uninstall devzone-workspace --namespace devzone-workspace >/dev/null 2>&1 || true
|