@@ -157,7 +157,6 @@ func NewRuntimeInstallCommand() *cobra.Command {
157
157
158
158
cmd .Flags ().StringVar (& versionStr , "version" , "" , "The runtime version to install, defaults to latest" )
159
159
insCloneOpts = git .AddFlags (cmd , & git.AddFlagsOptions {
160
- Prefix : "install" ,
161
160
CreateIfNotExist : true ,
162
161
FS : memfs .New (),
163
162
})
@@ -178,6 +177,7 @@ func RunRuntimeInstall(ctx context.Context, opts *RuntimeInstallOptions) error {
178
177
return fmt .Errorf ("failed to download runtime definition: %w" , err )
179
178
}
180
179
180
+ log .G (ctx ).WithField ("version" , rt .Spec .Version ).Infof ("installing runtime '%s'" , opts .RuntimeName )
181
181
err = apcmd .RunRepoBootstrap (ctx , & apcmd.RepoBootstrapOptions {
182
182
AppSpecifier : rt .Spec .FullSpecifier (),
183
183
Namespace : opts .RuntimeName ,
@@ -219,6 +219,7 @@ func RunRuntimeInstall(ctx context.Context, opts *RuntimeInstallOptions) error {
219
219
return fmt .Errorf ("failed to create `%s`: %w" , store .Get ().GitSourceName , err )
220
220
}
221
221
222
+ log .G (ctx ).Infof ("done installing runtime '%s'" , opts .RuntimeName )
222
223
return nil
223
224
}
224
225
@@ -332,12 +333,19 @@ func NewRuntimeUninsatllCommand() *cobra.Command {
332
333
}
333
334
334
335
func RunRuntimeUninstall (ctx context.Context , opts * RuntimeUninstallOptions ) error {
335
- return apcmd .RunRepoUninstall (ctx , & apcmd.RepoUninstallOptions {
336
+ log .G (ctx ).Infof ("uninstalling runtime '%s'" , opts .RuntimeName )
337
+ err := apcmd .RunRepoUninstall (ctx , & apcmd.RepoUninstallOptions {
336
338
Namespace : opts .RuntimeName ,
337
339
Timeout : opts .Timeout ,
338
340
CloneOptions : opts .CloneOpts ,
339
341
KubeFactory : opts .KubeFactory ,
340
342
})
343
+ if err != nil {
344
+ return fmt .Errorf ("failed uninstalling runtime: %w" , err )
345
+ }
346
+
347
+ log .G (ctx ).Infof ("done uninstalling runtime '%s'" , opts .RuntimeName )
348
+ return nil
341
349
}
342
350
343
351
func NewRuntimeUpgradeCommand () * cobra.Command {
0 commit comments