From 4372ca320ad120a127d377fb9b16e539081c3cfe Mon Sep 17 00:00:00 2001 From: Amir Malka Date: Sun, 10 Sep 2023 16:16:01 +0300 Subject: [PATCH] fix setting context name in httphandler Signed-off-by: Amir Malka --- httphandler/handlerequests/v1/requestshandlerutils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httphandler/handlerequests/v1/requestshandlerutils.go b/httphandler/handlerequests/v1/requestshandlerutils.go index 0ac57b71..e11ab06f 100644 --- a/httphandler/handlerequests/v1/requestshandlerutils.go +++ b/httphandler/handlerequests/v1/requestshandlerutils.go @@ -151,7 +151,7 @@ func getScanCommand(scanRequest *utilsmetav1.PostScanRequest, scanID string) *ca // *** end *** // Set default KubeContext from current context - k8sinterface.SetClusterContextName(k8sinterface.GetContextName()) + k8sinterface.SetClusterContextName(os.Getenv("KS_CONTEXT")) return scanInfo }