Skip to content

Commit c9a3b16

Browse files
committed
Don't delete GS bucket on cluster-gcp down
1 parent 3a1b777 commit c9a3b16

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

cli/cmd/cluster_gcp.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -261,16 +261,6 @@ var _clusterGCPDownCmd = &cobra.Command{
261261
prompt.YesOrExit(fmt.Sprintf("your cluster named \"%s\" in %s (zone: %s) will be spun down and all apis will be deleted, are you sure you want to continue?", *accessConfig.ClusterName, *accessConfig.Project, *accessConfig.Zone), "", "")
262262
}
263263

264-
fmt.Printf("○ deleting bucket %s ", bucketName)
265-
err = gcpClient.DeleteBucket(bucketName)
266-
if err != nil {
267-
fmt.Printf("\n\nunable to delete cortex's bucket (see error below); if it still exists after the cluster has been deleted, please delete it via the the GCP console\n")
268-
errors.PrintError(err)
269-
fmt.Println()
270-
} else {
271-
fmt.Println("✓")
272-
}
273-
274264
fmt.Print("○ spinning down the cluster ")
275265

276266
_, err = gcpClient.DeleteCluster(gkeClusterName)

docs/clusters/gcp/uninstall.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Uninstall
22

3+
Since you may wish to have access to your data after spinning down your cluster, Cortex's bucket, stackdriver logs, and
4+
Prometheus volume are not automatically deleted when running `cortex cluster-gcp down`.
5+
36
```bash
47
cortex cluster-gcp down
58
```

0 commit comments

Comments
 (0)