fix: enforce D601 native k3s guards
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user