Skip to content

Commit 4062697

Browse files
authored
Merge pull request #444 from kool-dev/add_cluster_to_deploy
Adding KOOL_DEPLOY_CLUSTER to kool deploy
2 parents 3332280 + e477855 commit 4062697

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

services/cloud/api/deploy.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ func (d *Deploy) getPayload() (body io.Reader, err error) {
8585
buff bytes.Buffer
8686
file *os.File
8787
fw io.Writer
88+
cluster string
8889
domain string
8990
domainExtras string
9091
wwwRedirect string
@@ -109,6 +110,12 @@ func (d *Deploy) getPayload() (body io.Reader, err error) {
109110

110111
defer file.Close()
111112

113+
if cluster = d.env.Get("KOOL_DEPLOY_CLUSTER"); cluster != "" {
114+
if err = w.WriteField("cluster", cluster); err != nil {
115+
return
116+
}
117+
}
118+
112119
if domain = d.env.Get("KOOL_DEPLOY_DOMAIN"); domain != "" {
113120
if err = w.WriteField("domain", domain); err != nil {
114121
return

0 commit comments

Comments
 (0)