devzone 0.45.0 → 0.45.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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# Single source for the repowarden version used by post-create.sh and workspace-init.sh.
|
|
2
|
-
REPOWARDEN_VERSION=4.17.
|
|
2
|
+
REPOWARDEN_VERSION=4.17.6
|
|
3
3
|
|
|
4
4
|
# BuildKit client version installed in the workspace image (#514). Must match
|
|
5
5
|
# buildkit.image in charts/devzone-workspace/values.yaml.
|
|
@@ -30,6 +30,16 @@ services_known() {
|
|
|
30
30
|
return 1
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
+
# A successful enable/disable is kept in .devzone.modules of the workstation so
|
|
34
|
+
# that a new devcontainer does not reinstall what was removed (#605). state_note
|
|
35
|
+
# (argocd-workspace.sh) updates the line and keeps the other ones intact.
|
|
36
|
+
services_state_note() {
|
|
37
|
+
case "$1" in
|
|
38
|
+
enable) state_note "$2" on ;;
|
|
39
|
+
disable) state_note "$2" off ;;
|
|
40
|
+
esac
|
|
41
|
+
}
|
|
42
|
+
|
|
33
43
|
# Namespace of a service in the cluster (gitlab: default instance)
|
|
34
44
|
services_namespace() {
|
|
35
45
|
case "$1" in
|
|
@@ -98,14 +108,20 @@ services_run() {
|
|
|
98
108
|
# charts: done by the workstation, no installer in the pod (#516, #538)
|
|
99
109
|
if [ "$service" = argocd ]; then
|
|
100
110
|
argocd_toggle "$action" "$@"
|
|
101
|
-
|
|
111
|
+
code=$?
|
|
112
|
+
[ "$code" -eq 0 ] || return "$code"
|
|
113
|
+
services_state_note "$action" "$service"
|
|
114
|
+
return 0
|
|
102
115
|
fi
|
|
103
116
|
# bench is a measure, not a change of state: never taken by Argo CD
|
|
104
117
|
case "$service" in
|
|
105
118
|
postgres | mysql | llm)
|
|
106
119
|
if [ "$action" != bench ] && argocd_holds_charts; then
|
|
107
120
|
services_argocd_toggle "$service" "$action" "$@"
|
|
108
|
-
|
|
121
|
+
code=$?
|
|
122
|
+
[ "$code" -eq 0 ] || return "$code"
|
|
123
|
+
services_state_note "$action" "$service"
|
|
124
|
+
return 0
|
|
109
125
|
fi
|
|
110
126
|
;;
|
|
111
127
|
esac
|
|
@@ -138,6 +154,7 @@ services_run() {
|
|
|
138
154
|
echo "✖ $action $service failed (code $code); in the pod: devzone status" >&2
|
|
139
155
|
return "$code"
|
|
140
156
|
fi
|
|
157
|
+
services_state_note "$action" "$service"
|
|
141
158
|
echo "✔ $action $service done; in the pod: devzone status; local access: devzone workspace ports"
|
|
142
159
|
}
|
|
143
160
|
|