Skip to content

Commit

Permalink
fixed code referencing to loft in helper.go file (#2381)
Browse files Browse the repository at this point in the history
* fixed code refrencing to loft from clihelper.go & helper.go

Signed-off-by: Rashi Chaubal <[email protected]>

* fixed code refrencing to loft from clihelper.go & helper.go 2381

Signed-off-by: Rashi Chaubal <[email protected]>

* fixed client.go code - loft with vCluster platform 2381

Signed-off-by: Rashi Chaubal <[email protected]>

---------

Signed-off-by: Rashi Chaubal <[email protected]>
  • Loading branch information
12rashic authored Jan 8, 2025
1 parent cbe78af commit 7dc2528
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/platform/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import (
managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1"
storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1"
"github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme"
"github.com/loft-sh/api/v4/pkg/product"
"github.com/loft-sh/log"
"github.com/loft-sh/log/survey"
"github.com/loft-sh/vcluster/pkg/platform/clihelper"
Expand Down Expand Up @@ -578,7 +579,7 @@ func WaitForSpaceInstance(ctx context.Context, managementClient kube.Interface,
if spaceInstance.Status.Phase != storagev1.InstanceReady && spaceInstance.Status.Phase != storagev1.InstanceSleeping {
if time.Now().After(nextMessage) {
if logged {
log.Infof("Cannot reach space because: %s (%s). Loft will continue waiting, but this operation may timeout", spaceInstance.Status.Message, spaceInstance.Status.Reason)
log.Infof(product.Replace("Cannot reach space because: %s (%s). Loft will continue waiting, but this operation may timeout"), spaceInstance.Status.Message, spaceInstance.Status.Reason)
} else {
log.Info("Waiting for space to be available...")
}
Expand Down Expand Up @@ -975,7 +976,7 @@ func WaitForVirtualClusterInstance(ctx context.Context, managementClient kube.In
if virtualClusterInstance.Status.Phase != storagev1.InstanceReady && virtualClusterInstance.Status.Phase != storagev1.InstanceSleeping {
if time.Now().After(nextMessage) {
if logged {
log.Infof("Cannot reach virtual cluster because: %s (%s). Loft will continue waiting, but this operation may timeout", virtualClusterInstance.Status.Message, virtualClusterInstance.Status.Reason)
log.Infof(product.Replace("Cannot reach virtual cluster because: %s (%s). Loft will continue waiting, but this operation may timeout"), virtualClusterInstance.Status.Message, virtualClusterInstance.Status.Reason)
} else {
log.Info("Waiting for virtual cluster to be available...")
}
Expand Down

0 comments on commit 7dc2528

Please sign in to comment.