fix: enforce D601 native k3s guards

This commit is contained in:
root
2026-05-23 12:56:17 +00:00
parent 6a83de219f
commit f2984016f3
13 changed files with 195 additions and 33 deletions
+3 -2
View File
@@ -331,11 +331,12 @@ function collectLocalRuntimeObservations(d601Observability) {
}
if (commandExists("kubectl")) {
const kubectl = commandResult("kubectl", ["get", "deploy,po,svc", "-n", namespace, "-o", "wide"]);
const args = ["get", "deploy,po,svc", "-n", namespace, "-o", "wide"];
const kubectl = commandResult("env", [`KUBECONFIG=${runnerK3sKubeconfigPath}`, "kubectl", ...args]);
observations.push({
id: "kubectl-hwlab-dev",
status: kubectl.exitCode === 0 ? "observed" : "blocked",
command: kubectl.command,
command: runnerKubeconfigCommandText(args),
summary: oneLine(kubectl.exitCode === 0 ? kubectl.stdout : kubectl.stderr || kubectl.stdout)
});
} else {