diff --git a/service/status-report/main.go b/service/status-report/main.go index e29ce12ea..9f84248b7 100644 --- a/service/status-report/main.go +++ b/service/status-report/main.go @@ -110,7 +110,7 @@ func main() { } var pltVersion string - var clusterId configv1.ClusterID + var clusterID configv1.ClusterID clusterVersion := &configv1.ClusterVersion{} clusterVersion.Name = "version" if err = cl.Get(ctx, types.NamespacedName{Name: clusterVersion.Name}, clusterVersion); err != nil { @@ -122,7 +122,7 @@ func main() { if item != nil { pltVersion = item.Version } - clusterId = clusterVersion.Spec.ClusterID + clusterID = clusterVersion.Spec.ClusterID } if pltVersion == "" { klog.Warningf("Unable to find ocp version with completed update") @@ -146,7 +146,7 @@ func main() { status := providerclient.NewStorageClientStatus(). SetPlatformVersion(pltVersion). SetOperatorVersion(oprVersion). - SetClusterID(string(clusterId)). + SetClusterID(string(clusterID)). SetNamespacedName(namespacedName.String()) statusResponse, err := providerClient.ReportStatus(ctx, storageClient.Status.ConsumerID, status) if err != nil {