AjayTripathy пре 6 година
родитељ
комит
5399ebeaf4
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      pkg/cloud/gcpprovider.go

+ 1 - 1
pkg/cloud/gcpprovider.go

@@ -264,7 +264,7 @@ func (gcp *GCP) ExternalAllocations(start string, end string, aggregators []stri
 		return nil, err
 	}
 	var s []*OutOfClusterAllocation
-	if c.ServiceKeyName != "" && c.ServiceKeySecret != "" {
+	if c.ServiceKeyName != "" && c.ServiceKeySecret != "" && !crossCluster {
 		aws, err := NewCrossClusterProvider("aws", "gcp.json", gcp.Clientset)
 		if err != nil {
 			klog.Infof("Could not instantiate cross-cluster provider %s", err.Error())