fallback customer guid from configMap

This commit is contained in:
dwertent
2021-10-19 16:25:54 +03:00
parent b371fbad01
commit 87e79110a2
2 changed files with 65 additions and 31 deletions
+2 -2
View File
@@ -120,12 +120,12 @@ func CliSetup() error {
// policy handler setup
policyHandler := policyhandler.NewPolicyHandler(&processNotification, k8s)
if err := clusterConfig.SetCustomerGUID(scanInfo.Account); err != nil {
if err := clusterConfig.SetConfig(scanInfo.Account); err != nil {
fmt.Println(err)
}
cautils.ClusterName = clusterConfig.GetClusterName()
cautils.CustomerGUID = clusterConfig.GetCustomerGUID()
cautils.ClusterName = k8sinterface.GetClusterName()
// cli handler setup
go func() {