@@ -157,7 +157,6 @@ func NewRuntimeInstallCommand() *cobra.Command {
157157
158158 cmd .Flags ().StringVar (& versionStr , "version" , "" , "The runtime version to install, defaults to latest" )
159159 insCloneOpts = git .AddFlags (cmd , & git.AddFlagsOptions {
160- Prefix : "install" ,
161160 CreateIfNotExist : true ,
162161 FS : memfs .New (),
163162 })
@@ -178,6 +177,7 @@ func RunRuntimeInstall(ctx context.Context, opts *RuntimeInstallOptions) error {
178177 return fmt .Errorf ("failed to download runtime definition: %w" , err )
179178 }
180179
180+ log .G (ctx ).WithField ("version" , rt .Spec .Version ).Infof ("installing runtime '%s'" , opts .RuntimeName )
181181 err = apcmd .RunRepoBootstrap (ctx , & apcmd.RepoBootstrapOptions {
182182 AppSpecifier : rt .Spec .FullSpecifier (),
183183 Namespace : opts .RuntimeName ,
@@ -219,6 +219,7 @@ func RunRuntimeInstall(ctx context.Context, opts *RuntimeInstallOptions) error {
219219 return fmt .Errorf ("failed to create `%s`: %w" , store .Get ().GitSourceName , err )
220220 }
221221
222+ log .G (ctx ).Infof ("done installing runtime '%s'" , opts .RuntimeName )
222223 return nil
223224}
224225
@@ -332,12 +333,19 @@ func NewRuntimeUninsatllCommand() *cobra.Command {
332333}
333334
334335func 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 {
336338 Namespace : opts .RuntimeName ,
337339 Timeout : opts .Timeout ,
338340 CloneOptions : opts .CloneOpts ,
339341 KubeFactory : opts .KubeFactory ,
340342 })
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
341349}
342350
343351func NewRuntimeUpgradeCommand () * cobra.Command {
0 commit comments