Skip to content

Commit 884aff1

Browse files
Add rand string to plural cloud mgmt cluster bucket
This removes the likelihood of a prior deleted cloud instance's state bucket conflicting with a new one's
1 parent a4e89dc commit 884aff1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/manifest/manifest.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import (
1212
"github.com/pluralsh/plural-cli/pkg/api"
1313
"github.com/pluralsh/plural-cli/pkg/utils"
1414
"github.com/pluralsh/plural-cli/pkg/utils/pathing"
15+
"github.com/pluralsh/polly/algorithms"
1516
)
1617

1718
const pluralDomain = "onplural.sh"
@@ -93,7 +94,7 @@ func (man *Manifest) Write(path string) error {
9394

9495
func (pm *ProjectManifest) Configure(cloud bool, cluster string) Writer {
9596
pm.BucketPrefix = cluster
96-
pm.Bucket = fmt.Sprintf("plrl-cloud-%s", cluster)
97+
pm.Bucket = fmt.Sprintf("plrl-cloud-%s-%s", cluster, algorithms.String(4))
9798

9899
if !cloud {
99100
answer := ""

0 commit comments

Comments
 (0)