@@ -6,26 +6,25 @@ import (
66 "encoding/json"
77 "errors"
88 "fmt"
9- "github.com/loft-sh/devspace/pkg/devspace/config/constants"
109 "os"
1110 "path/filepath"
1211 "strconv"
1312 "strings"
1413 "time"
1514
15+ "github.com/loft-sh/devspace/pkg/devspace/config/constants"
16+ "github.com/loft-sh/devspace/pkg/devspace/config/versions/latest"
1617 "github.com/loft-sh/devspace/pkg/devspace/context/values"
1718 "github.com/loft-sh/devspace/pkg/devspace/kubectl"
18- "github.com/loft-sh/devspace/pkg/util/log"
19- "github.com/loft-sh/utils/pkg/downloader"
20- "github.com/loft-sh/utils/pkg/downloader/commands"
21- "github.com/sirupsen/logrus"
22-
23- "github.com/loft-sh/devspace/pkg/devspace/config/versions/latest"
2419 "github.com/loft-sh/devspace/pkg/devspace/plugin"
2520 "github.com/loft-sh/devspace/pkg/devspace/upgrade"
2621 "github.com/loft-sh/devspace/pkg/util/git"
22+ "github.com/loft-sh/devspace/pkg/util/log"
2723 "github.com/loft-sh/devspace/pkg/util/randutil"
24+ "github.com/loft-sh/utils/pkg/downloader"
25+ "github.com/loft-sh/utils/pkg/downloader/commands"
2826 "github.com/mitchellh/go-homedir"
27+ "github.com/sirupsen/logrus"
2928)
3029
3130// PredefinedVariableOptions holds the options for a predefined variable to load
@@ -54,8 +53,8 @@ var predefinedVars = map[string]PredefinedVariableFunction{
5453 }
5554 return ex , nil
5655 },
57- "DEVSPACE_KUBECTL_EXECUTABLE" : func (ctx context.Context , options * PredefinedVariableOptions , log log.Logger ) (interface {}, error ) {
58- debugLog := log .WithLevel (logrus .DebugLevel )
56+ "DEVSPACE_KUBECTL_EXECUTABLE" : func (ctx context.Context , options * PredefinedVariableOptions , logger log.Logger ) (interface {}, error ) {
57+ debugLog := logger .WithLevel (logrus .DebugLevel )
5958 path , err := downloader .NewDownloader (commands .NewKubectlCommand (), debugLog , constants .DefaultHomeDevSpaceFolder ).EnsureCommand (ctx )
6059 if err != nil {
6160 debugLog .Debugf ("Error downloading kubectl: %v" , err )
0 commit comments