diff --git a/cmd/minikube/cmd/config/addons_list.go b/cmd/minikube/cmd/config/addons_list.go index 967e5c44b9ad..9484231b58b3 100644 --- a/cmd/minikube/cmd/config/addons_list.go +++ b/cmd/minikube/cmd/config/addons_list.go @@ -34,6 +34,7 @@ import ( "k8s.io/minikube/pkg/minikube/out" "k8s.io/minikube/pkg/minikube/reason" "k8s.io/minikube/pkg/minikube/style" + "k8s.io/minikube/pkg/minikube/constants" ) var addonListOutput string @@ -107,7 +108,7 @@ var printAddonsList = func(cc *config.ClusterConfig, printDocs bool) { if cc == nil { tHeader = []string{"Addon Name", "Maintainer"} } else { - tHeader = []string{"Addon Name", "Profile", "Status", "Maintainer"} + tHeader = []string{"Addon Name", "Enabled", "Maintainer"} } if printDocs { tHeader = append(tHeader, "Docs") @@ -127,11 +128,17 @@ var printAddonsList = func(cc *config.ClusterConfig, printDocs bool) { if docs == "" { docs = "n/a" } + if cc == nil { temp = []string{addonName, maintainer} } else { enabled := addonBundle.IsEnabled(cc) - temp = []string{addonName, cc.Name, fmt.Sprintf("%s %s", stringFromStatus(enabled), iconFromStatus(enabled)), maintainer} + if enabled{ + status := fmt.Sprintf("%s%s%s", constants.Enabled, iconFromStatus(enabled), constants.Default) + temp = []string{fmt.Sprintf("%s%s%s", constants.Enabled, addonName, constants.Default),status, fmt.Sprintf("%s%s%s", constants.Enabled, maintainer, constants.Default)} + }else{ + temp = []string{addonName,"",maintainer} + } } if printDocs { temp = append(temp, docs) diff --git a/cmd/minikube/cmd/config/profile_list.go b/cmd/minikube/cmd/config/profile_list.go index 26efa837cea3..1e86e66c4739 100644 --- a/cmd/minikube/cmd/config/profile_list.go +++ b/cmd/minikube/cmd/config/profile_list.go @@ -13,7 +13,6 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ - package config import ( @@ -23,6 +22,7 @@ import ( "strconv" "strings" + "k8s.io/klog/v2" "k8s.io/minikube/pkg/minikube/cluster" "k8s.io/minikube/pkg/minikube/config" "k8s.io/minikube/pkg/minikube/constants" @@ -37,8 +37,6 @@ import ( "github.com/olekukonko/tablewriter" "github.com/olekukonko/tablewriter/tw" "github.com/spf13/cobra" - - "k8s.io/klog/v2" ) var ( @@ -73,21 +71,17 @@ func listProfiles() (validProfiles, invalidProfiles []*config.Profile, err error } else { validProfiles, invalidProfiles, err = config.ListProfiles() } - return validProfiles, invalidProfiles, err } func printProfilesTable() { validProfiles, invalidProfiles, err := listProfiles() - if err != nil { klog.Warningf("error loading profiles: %v", err) } - if len(validProfiles) == 0 { exit.Message(reason.UsageNoProfileRunning, "No minikube profile was found.") } - updateProfilesStatus(validProfiles) renderProfilesTable(profilesToTableData(validProfiles)) warnInvalidProfiles(invalidProfiles) @@ -100,13 +94,11 @@ func updateProfilesStatus(profiles []*config.Profile) { } return } - api, err := machine.NewAPIClient() if err != nil { klog.Errorf("failed to get machine api client %v", err) } defer api.Close() - for _, p := range profiles { p.Status = profileStatus(p, api).StatusName } @@ -127,9 +119,7 @@ func profileStatus(p *config.Profile, api libmachine.API) cluster.State { }, } } - clusterStatus := cluster.GetState(statuses, ClusterFlagValue(), p.Config) - - return clusterStatus + return cluster.GetState(statuses, ClusterFlagValue(), p.Config) } func renderProfilesTable(ps [][]string) { @@ -166,9 +156,8 @@ func profilesToTableData(profiles []*config.Profile) [][]string { cpIP = cp.IP cpPort = cp.Port } - k8sVersion := p.Config.KubernetesConfig.KubernetesVersion - if k8sVersion == constants.NoKubernetesVersion { // for --no-kubernetes flag + if k8sVersion == constants.NoKubernetesVersion { k8sVersion = "N/A" } var c, k string @@ -179,11 +168,70 @@ func profilesToTableData(profiles []*config.Profile) [][]string { k = "*" } if isDetailed { - data = append(data, []string{p.Name, p.Config.Driver, p.Config.KubernetesConfig.ContainerRuntime, - cpIP, strconv.Itoa(cpPort), k8sVersion, p.Status, strconv.Itoa(len(p.Config.Nodes)), c, k}) + if p.Status == "OK" { + data = append(data, []string{ + fmt.Sprintf("%s%s%s", constants.Enabled, p.Name, constants.Default), + fmt.Sprintf("%s%s%s", constants.Enabled, p.Config.Driver, constants.Default), + fmt.Sprintf("%s%s%s", constants.Enabled, p.Config.KubernetesConfig.ContainerRuntime, constants.Default), + fmt.Sprintf("%s%s%s", constants.Enabled, cpIP, constants.Default), + fmt.Sprintf("%s%d%s", constants.Enabled, cpPort, constants.Default), + fmt.Sprintf("%s%s%s", constants.Enabled, k8sVersion, constants.Default), + fmt.Sprintf("%s%s%s", constants.Enabled, p.Status, constants.Default), + fmt.Sprintf("%s%d%s", constants.Enabled, len(p.Config.Nodes), constants.Default), + fmt.Sprintf("%s%s%s", constants.Enabled, c, constants.Default), + fmt.Sprintf("%s%s%s", constants.Enabled, k, constants.Default), + }) + } else if p.Status == "Broken" || p.Status == "Error"{ + data = append(data, []string{ + fmt.Sprintf("%s%s%s", constants.Disabled, p.Name, constants.Default), + fmt.Sprintf("%s%s%s", constants.Disabled, p.Config.Driver, constants.Default), + fmt.Sprintf("%s%s%s", constants.Disabled, p.Config.KubernetesConfig.ContainerRuntime, constants.Default), + fmt.Sprintf("%s%s%s", constants.Disabled, cpIP, constants.Default), + fmt.Sprintf("%s%d%s", constants.Disabled, cpPort, constants.Default), + fmt.Sprintf("%s%s%s", constants.Disabled, k8sVersion, constants.Default), + fmt.Sprintf("%s%s%s", constants.Disabled, p.Status, constants.Default), + fmt.Sprintf("%s%d%s", constants.Disabled, len(p.Config.Nodes), constants.Default), + fmt.Sprintf("%s%s%s", constants.Disabled, c, constants.Default), + fmt.Sprintf("%s%s%s", constants.Disabled, k, constants.Default), + }) + } else { + data = append(data, []string{ + p.Name, p.Config.Driver, p.Config.KubernetesConfig.ContainerRuntime, + cpIP, strconv.Itoa(cpPort), k8sVersion, p.Status, + strconv.Itoa(len(p.Config.Nodes)), c, k, + }) + } } else { - data = append(data, []string{p.Name, p.Config.Driver, p.Config.KubernetesConfig.ContainerRuntime, - cpIP, k8sVersion, p.Status, strconv.Itoa(len(p.Config.Nodes)), c, k}) + if p.Status == "OK"{ + data = append(data, []string{ + fmt.Sprintf("%s%s%s", constants.Enabled, p.Name, constants.Default), + fmt.Sprintf("%s%s%s", constants.Enabled, p.Config.Driver, constants.Default), + fmt.Sprintf("%s%s%s", constants.Enabled, p.Config.KubernetesConfig.ContainerRuntime, constants.Default), + fmt.Sprintf("%s%s%s", constants.Enabled, cpIP, constants.Default), + fmt.Sprintf("%s%s%s", constants.Enabled, k8sVersion, constants.Default), + fmt.Sprintf("%s%s%s", constants.Enabled, p.Status, constants.Default), + fmt.Sprintf("%s%d%s", constants.Enabled, len(p.Config.Nodes), constants.Default), + fmt.Sprintf("%s%s%s", constants.Enabled, c, constants.Default), + fmt.Sprintf("%s%s%s", constants.Enabled, k, constants.Default), + }) + }else if p.Status == "Broken" || p.Status == "Error"{ + data = append(data, []string{ + fmt.Sprintf("%s%s%s", constants.Disabled, p.Name, constants.Default), + fmt.Sprintf("%s%s%s", constants.Disabled, p.Config.Driver, constants.Default), + fmt.Sprintf("%s%s%s", constants.Disabled, p.Config.KubernetesConfig.ContainerRuntime, constants.Default), + fmt.Sprintf("%s%s%s", constants.Disabled, cpIP, constants.Default), + fmt.Sprintf("%s%s%s", constants.Disabled, k8sVersion, constants.Default), + fmt.Sprintf("%s%s%s", constants.Disabled, p.Status, constants.Default), + fmt.Sprintf("%s%d%s", constants.Disabled, len(p.Config.Nodes), constants.Default), + fmt.Sprintf("%s%s%s", constants.Disabled, c, constants.Default), + fmt.Sprintf("%s%s%s", constants.Disabled, k, constants.Default), + }) + } else{ + data = append(data, []string{ + p.Name, p.Config.Driver, p.Config.KubernetesConfig.ContainerRuntime, + cpIP, k8sVersion, p.Status, strconv.Itoa(len(p.Config.Nodes)), c, k, + }) + } } } return data @@ -193,12 +241,10 @@ func warnInvalidProfiles(invalidProfiles []*config.Profile) { if invalidProfiles == nil { return } - out.WarningT("Found {{.number}} invalid profile(s) ! ", out.V{"number": len(invalidProfiles)}) for _, p := range invalidProfiles { out.ErrT(style.Empty, "\t "+p.Name) } - out.ErrT(style.Tip, "You can delete them using the following command(s): ") for _, p := range invalidProfiles { out.Errf("\t $ minikube delete -p %s \n", p.Name) @@ -208,8 +254,7 @@ func warnInvalidProfiles(invalidProfiles []*config.Profile) { func printProfilesJSON() { validProfiles, invalidProfiles, err := listProfiles() updateProfilesStatus(validProfiles) - - var body = map[string]interface{}{} + body := map[string]interface{}{} if err == nil || config.IsNotExist(err) { body["valid"] = profilesOrDefault(validProfiles) body["invalid"] = profilesOrDefault(invalidProfiles) diff --git a/go.mod b/go.mod index 3ade51b8bba3..5baa56460500 100644 --- a/go.mod +++ b/go.mod @@ -123,7 +123,7 @@ require ( github.com/envoyproxy/protoc-gen-validate v1.2.1 // indirect github.com/evanphx/json-patch v5.6.0+incompatible // indirect github.com/fatih/color v1.18.0 // indirect - github.com/felixge/fgprof v0.9.3 // indirect + github.com/felixge/fgprof v0.9.5 // indirect github.com/felixge/httpsnoop v1.0.4 // indirect github.com/fsnotify/fsnotify v1.8.0 // indirect github.com/fvbommel/sortorder v1.1.0 // indirect diff --git a/go.sum b/go.sum index b957eee397ad..f5858fc26c32 100644 --- a/go.sum +++ b/go.sum @@ -716,9 +716,15 @@ github.com/cespare/xxhash/v2 v2.3.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XL github.com/cheggaaa/pb v1.0.27/go.mod h1:pQciLPpbU0oxA0h+VJYYLxO+XeDQb5pZijXscXHm81s= github.com/cheggaaa/pb/v3 v3.1.7 h1:2FsIW307kt7A/rz/ZI2lvPO+v3wKazzE4K/0LtTWsOI= github.com/cheggaaa/pb/v3 v3.1.7/go.mod h1:/Ji89zfVPeC/u5j8ukD0MBPHt2bzTYp74lQ7KlgFWTQ= +github.com/chromedp/cdproto v0.0.0-20230802225258-3cf4e6d46a89/go.mod h1:GKljq0VrfU4D5yc+2qA6OVr8pmO/MBbPEWqWQ/oqGEs= +github.com/chromedp/chromedp v0.9.2/go.mod h1:LkSXJKONWTCHAfQasKFUZI+mxqS4tZqhmtGzzhLsnLs= +github.com/chromedp/sysutil v1.0.0/go.mod h1:kgWmDdq8fTzXYcKIBqIYvRRTnYb9aNS9moAV0xufSww= github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= +github.com/chzyer/logex v1.2.1/go.mod h1:JLbx6lG2kDbNRFnfkgvh4eRJRPX1QCoOIWomwysCBrQ= github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= +github.com/chzyer/readline v1.5.1/go.mod h1:Eh+b79XXUwfKfcPLepksvw2tcLE/Ct21YObkaSkeBlk= github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= +github.com/chzyer/test v1.0.0/go.mod h1:2JlltgoNkt4TW/z9V/IzDdFaMTM2JPIi26O1pF38GC8= github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= github.com/cloudevents/sdk-go/v2 v2.16.0 h1:wnunjgiLQCfYlyo+E4+mFlZtAh7pKn7vT8MMD3lSwCg= github.com/cloudevents/sdk-go/v2 v2.16.0/go.mod h1:5YWqklyhDSmGzBK/JENKKXdulbPq0JFf3c/KEnMLqgg= @@ -814,8 +820,9 @@ github.com/evanphx/json-patch v5.6.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLi github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= github.com/fatih/color v1.18.0 h1:S8gINlzdQ840/4pfAwic/ZE0djQEH3wM94VfqLTZcOM= github.com/fatih/color v1.18.0/go.mod h1:4FelSpRwEGDpQ12mAdzqdOukCy4u8WUtOY6lkT/6HfU= -github.com/felixge/fgprof v0.9.3 h1:VvyZxILNuCiUCSXtPtYmmtGvb65nqXh2QFWc0Wpf2/g= github.com/felixge/fgprof v0.9.3/go.mod h1:RdbpDgzqYVh/T9fPELJyV7EYJuHB55UTEULNun8eiPw= +github.com/felixge/fgprof v0.9.5 h1:8+vR6yu2vvSKn08urWyEuxx75NWPEvybbkBirEpsbVY= +github.com/felixge/fgprof v0.9.5/go.mod h1:yKl+ERSa++RYOs32d8K6WEXCB4uXdLls4ZaZPpayhMM= github.com/felixge/httpsnoop v1.0.4 h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2Wg= github.com/felixge/httpsnoop v1.0.4/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568/go.mod h1:xEzjJPgXI435gkrCt3MPfRiAkVrwSbHsst4LCFVfpJc= @@ -878,6 +885,9 @@ github.com/go-task/slim-sprig/v3 v3.0.0 h1:sUs3vkvUymDpBKi3qH1YSqBQk9+9D/8M2mN1v github.com/go-task/slim-sprig/v3 v3.0.0/go.mod h1:W848ghGpv3Qj3dhTPRyJypKRiqCdHZiAzKg9hl15HA8= github.com/go-viper/mapstructure/v2 v2.2.1 h1:ZAaOCxANMuZx5RCeg0mBdEZk7DZasvvZIxtHqx8aGss= github.com/go-viper/mapstructure/v2 v2.2.1/go.mod h1:oJDH3BJKyqBA2TXFhDsKDGDTlndYOZ6rGS0BRZIxGhM= +github.com/gobwas/httphead v0.1.0/go.mod h1:O/RXo79gxV8G+RqlR/otEwx4Q36zl9rqC5u12GKvMCM= +github.com/gobwas/pool v0.2.1/go.mod h1:q8bcK0KcYlCgd9e7WYLm9LpyS+YeLd8JVDW6WezmKEw= +github.com/gobwas/ws v1.2.1/go.mod h1:hRKAFb8wOxFROYNsT1bqfWnhX+b5MFeJM9r2ZSwg/KY= github.com/goccy/go-json v0.9.11/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I= github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= github.com/godbus/dbus/v5 v5.1.0 h1:4KLkAxT3aOY8Li4FRJe/KvhoNFFxo0m6fNuFUO8QJUk= @@ -986,6 +996,7 @@ github.com/google/pprof v0.0.0-20210601050228-01bbb1931b22/go.mod h1:kpwsk12EmLe github.com/google/pprof v0.0.0-20210609004039-a478d1d731e9/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/pprof v0.0.0-20211214055906-6f57359322fd/go.mod h1:KgnwoLYCZ8IQu3XUZ8Nc/bM9CCZFOyjUNOSygVozoDg= +github.com/google/pprof v0.0.0-20240227163752-401108e1b7e7/go.mod h1:czg5+yv1E0ZGTi6S6vVK1mke0fV+FaUhNGcd6VRS9Ik= github.com/google/pprof v0.0.0-20241029153458-d1b30febd7db h1:097atOisP2aRj7vFgYQBbFN4U4JNXUNYpxael3UzMyo= github.com/google/pprof v0.0.0-20241029153458-d1b30febd7db/go.mod h1:vavhavw2zAxS5dIdcRluK6cSGGPlZynqzFM8NdvU144= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= @@ -1062,6 +1073,7 @@ github.com/iancoleman/strcase v0.2.0/go.mod h1:iwCmte+B7n89clKwxIoIXy/HfoL7AsD47 github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= github.com/ianlancetaylor/demangle v0.0.0-20210905161508-09a460cdf81d/go.mod h1:aYm2/VgdVmcIU8iMfdMvDMsRAQjcfZSKFby6HOFvi/w= +github.com/ianlancetaylor/demangle v0.0.0-20230524184225-eabc099b10ab/go.mod h1:gx7rwoVhcfuVKG5uya9Hs3Sxj7EIvldVofAWIUtGouw= github.com/icza/dyno v0.0.0-20230330125955-09f820a8d9c0 h1:nHoRIX8iXob3Y2kdt9KsjyIb7iApSvb3vgsd93xb5Ow= github.com/icza/dyno v0.0.0-20230330125955-09f820a8d9c0/go.mod h1:c1tRKs5Tx7E2+uHGSyyncziFjvGpgv4H2HrqXeUQ/Uk= github.com/imdario/mergo v0.3.5/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJh5FfA= @@ -1139,6 +1151,7 @@ github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= +github.com/ledongthuc/pdf v0.0.0-20220302134840-0c2507a12d80/go.mod h1:imJHygn/1yfhB7XSJJKlFZKl/J+dCPAknuiaGOshXAs= github.com/liggitt/tabwriter v0.0.0-20181228230101-89fcab3d43de h1:9TO3cAIGXtEhnIaL+V+BEER86oLrvS+kWobKpbJuye0= github.com/liggitt/tabwriter v0.0.0-20181228230101-89fcab3d43de/go.mod h1:zAbeS9B/r2mtpb6U+EI2rYA5OAXxsYw6wTamcNW+zcE= github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 h1:6E+4a0GO5zZEnZ81pIr0yLvtUWk2if982qA3F3QD6H4= @@ -1250,6 +1263,7 @@ github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8 github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM= github.com/opencontainers/image-spec v1.1.0 h1:8SG7/vwALn54lVB/0yZ/MMwhFrPYtpEHQb2IpWsCzug= github.com/opencontainers/image-spec v1.1.0/go.mod h1:W4s4sFTMaBeK1BQLXbG4AdM2szdn85PY75RI83NrTrM= +github.com/orisano/pixelmatch v0.0.0-20220722002657-fb0b55479cde/go.mod h1:nZgzbfBr3hhjoZnS66nKrHmduYNpc34ny7RK4z5/HM0= github.com/otiai10/copy v1.14.1 h1:5/7E6qsUMBaH5AnQ0sSLzzTg1oTECmcCmT6lvF45Na8= github.com/otiai10/copy v1.14.1/go.mod h1:oQwrEDDOci3IM8dJF0d8+jnbfPDllW6vUjNc3DoZm9I= github.com/otiai10/mint v1.6.3 h1:87qsV/aw1F5as1eH1zS/yqHY85ANKVMgkDrf9rcxbQs= @@ -1740,6 +1754,7 @@ golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220128215802-99c3d69c2c27/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220209214540-3681064d5158/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220227234510-4e6760a101f9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220310020820-b874c991c1a5/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220328115105-d36c6a25d886/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220412211240-33da011f77ad/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220502124256-b6088ccd6cba/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= diff --git a/pkg/minikube/constants/constants.go b/pkg/minikube/constants/constants.go index 7a4fdce1b3d4..381b8f84c514 100644 --- a/pkg/minikube/constants/constants.go +++ b/pkg/minikube/constants/constants.go @@ -113,8 +113,13 @@ const ( TestDiskAvailableEnv = "MINIKUBE_TEST_AVAILABLE_STORAGE" // MinikubeRootlessEnv is used to force Rootless Docker/Podman driver MinikubeRootlessEnv = "MINIKUBE_ROOTLESS" - + // scheduled stop constants + Enabled = "\033[32m" + + Default = "\033[0m" + + Disabled = "\033[31m" // ScheduledStopEnvFile is the environment file for scheduled-stop ScheduledStopEnvFile = "/var/lib/minikube/scheduled-stop/environment"