Skip to content

Commit

Permalink
Add chart version to CLI (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben authored and andscoop committed Nov 13, 2018
1 parent e3777db commit ec634bd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions deployment/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (

var (
tab = printutil.Table{
Padding: []int{30, 50, 50},
Header: []string{"NAME", "RELEASE NAME", "DEPLOYMENT ID"},
Padding: []int{30, 30, 10, 50},
Header: []string{"NAME", "RELEASE NAME", "CHART", "DEPLOYMENT ID"},
}
)

Expand All @@ -32,7 +32,7 @@ func Create(label, ws string) error {
if err != nil {
return err
}
tab.AddRow([]string{d.Label, d.ReleaseName, d.Id}, false)
tab.AddRow([]string{d.Label, d.ReleaseName, d.Version, d.Id}, false)
tab.SuccessMsg = "\n Successfully created deployment. Deployment can be accessed at the following URLs \n" +
fmt.Sprintf("\n Airflow Dashboard: https://%s-airflow.%s", d.ReleaseName, c.Domain) +
fmt.Sprintf("\n Flower Dashboard: https://%s-flower.%s", d.ReleaseName, c.Domain)
Expand Down Expand Up @@ -93,7 +93,7 @@ func List(ws string, all bool) error {
ws = d.Workspace.Uuid
}

tab.AddRow([]string{d.Label, d.ReleaseName, d.Id}, false)
tab.AddRow([]string{d.Label, d.ReleaseName, d.Version, d.Id}, false)
}

tab.Print()
Expand All @@ -115,7 +115,7 @@ func Update(uuid string, args map[string]string) error {

d := r.Data.UpdateDeployment

tab.AddRow([]string{d.Label, d.ReleaseName, d.Id}, false)
tab.AddRow([]string{d.Label, d.ReleaseName, d.Version, d.Id}, false)
tab.SuccessMsg = "\n Successfully updated deployment"
tab.Print()

Expand Down

0 comments on commit ec634bd

Please sign in to comment.