@@ -191,6 +191,7 @@ func NewRuntimeInstallCommand() *cobra.Command {
191
191
}
192
192
193
193
finalParameters = map [string ]string {
194
+ "Codefresh context" : cfConfig .CurrentContext ,
194
195
"Kube context" : installationOpts .kubeContext ,
195
196
"Runtime name" : installationOpts .RuntimeName ,
196
197
"Repository URL" : installationOpts .InsCloneOpts .Repo ,
@@ -289,7 +290,7 @@ func runtimeInstallCommandPreRunHandler(cmd *cobra.Command, opts *RuntimeInstall
289
290
290
291
inferProviderFromRepo (opts .InsCloneOpts )
291
292
292
- err = ensureGitToken (cmd , opts .InsCloneOpts )
293
+ err = ensureGitToken (cmd , opts .InsCloneOpts , true )
293
294
handleCliStep (reporter .InstallStepPreCheckEnsureGitToken , "Getting git token" , err , false )
294
295
if err != nil {
295
296
return err
@@ -358,7 +359,7 @@ func runtimeUninstallCommandPreRunHandler(cmd *cobra.Command, args []string, opt
358
359
return fmt .Errorf ("%w" , err )
359
360
}
360
361
361
- err = ensureGitToken (cmd , opts .CloneOpts )
362
+ err = ensureGitToken (cmd , opts .CloneOpts , false )
362
363
handleCliStep (reporter .UninstallStepPreCheckEnsureGitToken , "Getting git token" , err , false )
363
364
if err != nil {
364
365
return fmt .Errorf ("%w" , err )
@@ -382,7 +383,7 @@ func runtimeUpgradeCommandPreRunHandler(cmd *cobra.Command, args []string, opts
382
383
return fmt .Errorf ("%w" , err )
383
384
}
384
385
385
- err = ensureGitToken (cmd , opts .CloneOpts )
386
+ err = ensureGitToken (cmd , opts .CloneOpts , false )
386
387
handleCliStep (reporter .UpgradeStepPreCheckEnsureGitToken , "Getting git token" , err , false )
387
388
if err != nil {
388
389
return fmt .Errorf ("%w" , err )
@@ -999,9 +1000,10 @@ func NewRuntimeUninstallCommand() *cobra.Command {
999
1000
}
1000
1001
1001
1002
finalParameters = map [string ]string {
1002
- "Kube context" : uninstallationOpts .kubeContext ,
1003
- "Runtime name" : uninstallationOpts .RuntimeName ,
1004
- "Repository URL" : uninstallationOpts .CloneOpts .Repo ,
1003
+ "Codefresh context" : cfConfig .CurrentContext ,
1004
+ "Kube context" : uninstallationOpts .kubeContext ,
1005
+ "Runtime name" : uninstallationOpts .RuntimeName ,
1006
+ "Repository URL" : uninstallationOpts .CloneOpts .Repo ,
1005
1007
}
1006
1008
1007
1009
err = getApprovalFromUser (ctx , finalParameters , "runtime uninstall" )
@@ -1136,8 +1138,9 @@ func NewRuntimeUpgradeCommand() *cobra.Command {
1136
1138
}
1137
1139
1138
1140
finalParameters = map [string ]string {
1139
- "Runtime name" : opts .RuntimeName ,
1140
- "Repository URL" : opts .CloneOpts .Repo ,
1141
+ "Codefresh context" : cfConfig .CurrentContext ,
1142
+ "Runtime name" : opts .RuntimeName ,
1143
+ "Repository URL" : opts .CloneOpts .Repo ,
1141
1144
}
1142
1145
1143
1146
if versionStr != "" {
0 commit comments