@@ -101,16 +101,11 @@ func HelmUpgradeOrInstallTestkubeAgent(options HelmOptions, cfg config.Data, isM
101
101
}
102
102
103
103
args := prepareTestkubeProHelmArgs (options , isMigration )
104
- output , err := runHelmCommand (helmPath , args , options .DryRun )
104
+ _ , err := runHelmCommand (helmPath , args , options .DryRun )
105
105
if err != nil {
106
106
return err
107
107
}
108
108
109
- ui .Debug ("Helm command output:" )
110
- ui .Debug (helmPath , args ... )
111
-
112
- ui .Debug ("Helm install testkube output" , output )
113
-
114
109
return nil
115
110
}
116
111
@@ -147,7 +142,7 @@ func lookupHelmPath() (string, *CLIError) {
147
142
return helmPath , nil
148
143
}
149
144
150
- func updateHelmRepo (helmPath string , dryRun bool , isOnPrem bool ) * CLIError {
145
+ func updateHelmRepo (helmPath string , dryRun , isOnPrem bool ) * CLIError {
151
146
registryURL := "https://kubeshop.github.io/helm-charts"
152
147
registryName := "kubeshop"
153
148
if isOnPrem {
@@ -193,7 +188,10 @@ func CleanExistingCompletedMigrationJobs(namespace string) (cliErr *CLIError) {
193
188
}
194
189
195
190
func runHelmCommand (helmPath string , args []string , dryRun bool ) (commandOutput string , cliErr * CLIError ) {
191
+ ui .Debug ("\n Helm command:\n " + strings .Join (append ([]string {helmPath }, args ... ), " " ))
192
+
196
193
output , err := process .ExecuteWithOptions (process.Options {Command : helmPath , Args : args , DryRun : dryRun })
194
+ ui .Debug ("\n Helm output:\n " + string (output ))
197
195
if err != nil {
198
196
return "" , NewCLIError (
199
197
TKErrHelmCommandFailed ,
@@ -719,7 +717,9 @@ func lookupKubectlPath() (string, *CLIError) {
719
717
}
720
718
721
719
func runKubectlCommand (kubectlPath string , args []string ) (output string , cliErr * CLIError ) {
720
+ ui .Debug ("\n Kubectl command:\n " + strings .Join (append ([]string {kubectlPath }, args ... ), " " ))
722
721
out , err := process .Execute (kubectlPath , args ... )
722
+ ui .Debug ("\n Kubectl output:\n " + string (out ))
723
723
if err != nil {
724
724
return "" , NewCLIError (
725
725
TKErrKubectlCommandFailed ,
0 commit comments