Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions cli/service/installer.go
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ func (t *Installer) installDapr(output output.TaskOutput, daprRegistry string) e

err := helmConfig.Init(&flags, "dapr-system", "secret", func(format string, v ...any) {})
if err != nil {
output.FailTask("Dapr-Install", fmt.Sprintf("Error intalling Dapr: %v", err.Error()))
output.FailTask("Dapr-Install", fmt.Sprintf("Error installing Dapr: %v", err.Error()))
return err
}

Expand All @@ -573,7 +573,7 @@ func (t *Installer) installDapr(output output.TaskOutput, daprRegistry string) e

dir, err := os.MkdirTemp("", "drasi")
if err != nil {
output.FailTask("Dapr-Install", fmt.Sprintf("Error intalling Dapr: %v", err.Error()))
output.FailTask("Dapr-Install", fmt.Sprintf("Error installing Dapr: %v", err.Error()))
return err
}
defer os.RemoveAll(dir)
Expand All @@ -582,18 +582,18 @@ func (t *Installer) installDapr(output output.TaskOutput, daprRegistry string) e

_, err = pull.Run("dapr")
if err != nil {
output.FailTask("Dapr-Install", fmt.Sprintf("Error intalling Dapr: %v", err.Error()))
output.FailTask("Dapr-Install", fmt.Sprintf("Error installing Dapr: %v", err.Error()))
return err
}
file, err := os.ReadDir(dir)
if err != nil {
output.FailTask("Dapr-Install", fmt.Sprintf("Error intalling Dapr: %v", err.Error()))
output.FailTask("Dapr-Install", fmt.Sprintf("Error installing Dapr: %v", err.Error()))
return err
}
dirPath := filepath.Join(dir, file[0].Name())
helmChart, err := loader.Load(dirPath)
if err != nil {
output.FailTask("Dapr-Install", fmt.Sprintf("Error intalling Dapr: %v", err.Error()))
output.FailTask("Dapr-Install", fmt.Sprintf("Error installing Dapr: %v", err.Error()))
return err
}

Expand All @@ -612,7 +612,7 @@ func (t *Installer) installDapr(output output.TaskOutput, daprRegistry string) e
}
_, err = installClient.Run(helmChart, helmChart.Values)
if err != nil {
output.FailTask("Dapr-Install", fmt.Sprintf("Error intalling Dapr: %v", err.Error()))
output.FailTask("Dapr-Install", fmt.Sprintf("Error installing Dapr: %v", err.Error()))
return err
}
output.SucceedTask("Dapr-Install", "Dapr installed successfully")
Expand Down
Loading