devzone 0.34.2 → 0.34.3
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/.devcontainer/agent.sh +3 -2
- package/package.json +1 -1
package/.devcontainer/agent.sh
CHANGED
|
@@ -111,8 +111,9 @@ agent_lancer() {
|
|
|
111
111
|
offset="$(wc -c <"$journal")"
|
|
112
112
|
local agent_kube="$etat/kubeconfig"
|
|
113
113
|
if [ -f "$HOME/.kube/config" ]; then
|
|
114
|
-
|
|
115
|
-
|
|
114
|
+
(umask 077; KUBECONFIG="$HOME/.kube/config" kubectl config view --minify --flatten --context devzone >"$agent_kube") 2>/dev/null || : >"$agent_kube"
|
|
115
|
+
chmod 600 "$agent_kube"
|
|
116
|
+
[ -s "$agent_kube" ] || echo "=== kubernetes : aucun contexte devzone, session sans accès" >>"$journal"
|
|
116
117
|
else
|
|
117
118
|
: >"$agent_kube"
|
|
118
119
|
fi
|