mirror of
https://github.com/kubescape/kubescape.git
synced 2026-02-14 09:59:54 +00:00
Merge pull request #1379 from kubescape/fix-kubecontext-for-httphandler
fix setting context name in httphandler
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user