From 8711a1c80113c17ed82c6c4103ec9c2eb042712d Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Tue, 6 Feb 2024 14:39:48 -0500 Subject: [PATCH] fix: force set the kubectl path when running kubectl commands --- plugins/scheduler-k3s/k8s.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/scheduler-k3s/k8s.go b/plugins/scheduler-k3s/k8s.go index 8c056581d..99483f883 100644 --- a/plugins/scheduler-k3s/k8s.go +++ b/plugins/scheduler-k3s/k8s.go @@ -117,6 +117,9 @@ func (k KubernetesClient) ApplyKubernetesManifest(ctx context.Context, input App "-f", input.Manifest, }, + Env: map[string]string{ + "KUBECONFIG": KubeConfigPath, + }, StreamStdio: true, }) if err != nil {