Skip to content

Commit

Permalink
fix: rename loft->vcluster platform
Browse files Browse the repository at this point in the history
Signed-off-by: Rohan CJ <rohantmp@gmail.com>
  • Loading branch information
rohantmp committed Nov 6, 2024
1 parent 5abd99a commit d5f6e78
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pkg/cli/start/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ func (l *LoftStarter) prepareDocker() error {
// test for helm and kubectl
_, err := exec.LookPath("docker")
if err != nil {
return fmt.Errorf("seems like docker is not installed. Docker is required for the installation of loft. Please visit https://docs.docker.com/engine/install/ for install instructions")
return fmt.Errorf("seems like docker is not installed. Docker is required for the installation of vcluster platform. Please visit https://docs.docker.com/engine/install/ for install instructions")
}

output, err := exec.Command("docker", "ps").CombinedOutput()
Expand Down
6 changes: 3 additions & 3 deletions pkg/cli/start/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ func (l *Options) Prepare() error {
contextToLoad = l.Context
} else if platformConfig.LastInstallContext != "" && platformConfig.LastInstallContext != contextToLoad {
contextToLoad, err = l.Log.Question(&survey.QuestionOptions{
Question: product.Replace(fmt.Sprintf("Seems like you try to use 'loft %s' with a different kubernetes context than before. Please choose which kubernetes context you want to use", l.CommandName)),
Question: product.Replace(fmt.Sprintf("Seems like you try to use 'vcluster %s' with a different kubernetes context than before. Please choose which kubernetes context you want to use", l.CommandName)),
DefaultValue: contextToLoad,
Options: []string{contextToLoad, platformConfig.LastInstallContext},
})
Expand All @@ -182,7 +182,7 @@ func (l *Options) Prepare() error {
// test for helm and kubectl
_, err = exec.LookPath("helm")
if err != nil {
return fmt.Errorf("seems like helm is not installed. Helm is required for the installation of loft. Please visit https://helm.sh/docs/intro/install/ for install instructions")
return fmt.Errorf("seems like helm is not installed. Helm is required for the installation of vcluster platform. Please visit https://helm.sh/docs/intro/install/ for install instructions")
}

output, err := exec.Command("helm", "version").CombinedOutput()
Expand All @@ -192,7 +192,7 @@ func (l *Options) Prepare() error {

_, err = exec.LookPath("kubectl")
if err != nil {
return fmt.Errorf("seems like kubectl is not installed. Kubectl is required for the installation of loft. Please visit https://kubernetes.io/docs/tasks/tools/install-kubectl/ for install instructions")
return fmt.Errorf("seems like kubectl is not installed. Kubectl is required for the installation of vcluster platform. Please visit https://kubernetes.io/docs/tasks/tools/install-kubectl/ for install instructions")
}

output, err = exec.Command("kubectl", "version", "--context", contextToLoad).CombinedOutput()
Expand Down

0 comments on commit d5f6e78

Please sign in to comment.