Skip to content

Commit 6f3f1e8

Browse files
Add a log message in case of hosted runtime uninstall (#739)
## What <!-- What is changing in this PR? --> ## Why <!-- Why are these changes being made? --> ## Notes <!-- Add any additional notes here -->
1 parent 67fda7a commit 6f3f1e8

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION=v0.1.61
1+
VERSION=v0.1.62
22

33
OUT_DIR=dist
44
YEAR?=$(shell date +"%Y")

cmd/commands/runtime.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -578,11 +578,9 @@ func runRuntimeUninstall(ctx context.Context, opts *RuntimeUninstallOptions) err
578578
return err
579579
}
580580

581-
log.G(ctx).Infof("Deleting runtime \"%s\" from platform", opts.RuntimeName)
581+
err = deleteRuntimeFromPlatform(ctx, opts)
582582
if opts.Managed {
583-
_, err = cfConfig.NewClient().GraphQL().Runtime().DeleteManaged(ctx, opts.RuntimeName)
584-
} else {
585-
err = deleteRuntimeFromPlatform(ctx, opts)
583+
log.G(ctx).Infof("It may take up to 5 minutes until your hosted runtime will be fully deleted")
586584
}
587585
handleCliStep(reporter.UninstallStepDeleteRuntimeFromPlatform, "Deleting runtime from platform", err, false, !opts.Managed)
588586
if err != nil {

docs/releases/release_notes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ cf version
2323

2424
```bash
2525
# download and extract the binary
26-
curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.1.61/cf-linux-amd64.tar.gz | tar zx
26+
curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.1.62/cf-linux-amd64.tar.gz | tar zx
2727

2828
# move the binary to your $PATH
2929
mv ./cf-linux-amd64 /usr/local/bin/cf
@@ -36,7 +36,7 @@ cf version
3636

3737
```bash
3838
# download and extract the binary
39-
curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.1.61/cf-darwin-amd64.tar.gz | tar zx
39+
curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.1.62/cf-darwin-amd64.tar.gz | tar zx
4040

4141
# move the binary to your $PATH
4242
mv ./cf-darwin-amd64 /usr/local/bin/cf

0 commit comments

Comments
 (0)