devzone 0.13.0 → 0.13.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.
|
@@ -28,7 +28,11 @@ if [ "${1:-}" = retirer ]; then
|
|
|
28
28
|
fi
|
|
29
29
|
code=0
|
|
30
30
|
for contexte in "$@"; do
|
|
31
|
-
|
|
31
|
+
# Marqueur lu sur le deployment par son nom : kubectl refuse un nom
|
|
32
|
+
# avec un sélecteur (-l), le test serait toujours faux (#255)
|
|
33
|
+
marque="$(kubectl --context "$contexte" -n kube-system get deployment metrics-server \
|
|
34
|
+
-o jsonpath='{.metadata.labels.devzone}' 2>/dev/null || true)"
|
|
35
|
+
if [ "$marque" = installe ]; then
|
|
32
36
|
if kubectl --context "$contexte" delete -f "$MANIFESTE" --ignore-not-found >/dev/null 2>&1; then
|
|
33
37
|
echo "metrics-server retiré ($VERSION) : $contexte"
|
|
34
38
|
else
|
package/package.json
CHANGED