Skip to content

Commit 8273eea

Browse files
committed
chore(workflow-cli): volume mount print info
1 parent e3817d8 commit 8273eea

4 files changed

Lines changed: 14 additions & 11 deletions

File tree

cmd/volumes.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@ import (
66
"regexp"
77
"strings"
88

9-
"github.com/drycc/pkg/prettyprint"
10-
119
"github.com/drycc/controller-sdk-go/api"
1210
"github.com/drycc/controller-sdk-go/volumes"
11+
"github.com/drycc/pkg/prettyprint"
1312
)
1413

1514
// VolumesList list volumes in the application
@@ -177,6 +176,7 @@ func (d *DryccCmd) VolumesMount(appID string, name string, volumeVars []string)
177176
}
178177

179178
d.Print("done\n")
179+
d.Print("The pods should be restart, please check the pods up or not.\n")
180180

181181
return nil
182182
}
@@ -209,6 +209,7 @@ func (d *DryccCmd) VolumesUnmount(appID string, name string, volumeVars []string
209209
}
210210

211211
d.Print("done\n")
212+
d.Print("The pods should be restart, please check the pods up or not.\n")
212213

213214
return nil
214215
}

cmd/volumes_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ func TestVolumesMount(t *testing.T) {
165165
assert.NoError(t, err)
166166

167167
assert.Equal(t, testutil.StripProgress(b.String()), `Mounting volume... done
168+
The pods should be restart, please check the pods up or not.
168169
`, "output")
169170
}
170171

@@ -204,5 +205,6 @@ func TestVolumesUnmount(t *testing.T) {
204205
assert.NoError(t, err)
205206

206207
assert.Equal(t, testutil.StripProgress(b.String()), `Unmounting volume... done
208+
The pods should be restart, please check the pods up or not.
207209
`, "output")
208210
}

go.mod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ go 1.20
55
require (
66
github.com/containerd/console v1.0.3
77
github.com/docopt/docopt-go v0.0.0-20180111231733-ee0de3bc6815
8-
github.com/drycc/controller-sdk-go v0.0.0-20230711045631-016fac5b12ba
8+
github.com/drycc/controller-sdk-go v0.0.0-20231108033734-99a7fbf94e7b
99
github.com/drycc/pkg v0.0.0-20230619083908-711ad2e9f1b8
1010
github.com/olekukonko/tablewriter v0.0.5
1111
github.com/stretchr/testify v1.8.4
1212
golang.org/x/exp v0.0.0-20230522175609-2e198f4a06a1
13-
golang.org/x/net v0.12.0
13+
golang.org/x/net v0.17.0
1414
gopkg.in/yaml.v3 v3.0.1
1515
sigs.k8s.io/yaml v1.3.0
1616
)
@@ -19,6 +19,6 @@ require (
1919
github.com/davecgh/go-spew v1.1.1 // indirect
2020
github.com/mattn/go-runewidth v0.0.9 // indirect
2121
github.com/pmezard/go-difflib v1.0.0 // indirect
22-
golang.org/x/sys v0.10.0 // indirect
22+
golang.org/x/sys v0.13.0 // indirect
2323
gopkg.in/yaml.v2 v2.4.0 // indirect
2424
)

go.sum

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c
44
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
55
github.com/docopt/docopt-go v0.0.0-20180111231733-ee0de3bc6815 h1:bWDMxwH3px2JBh6AyO7hdCn/PkvCZXii8TGj7sbtEbQ=
66
github.com/docopt/docopt-go v0.0.0-20180111231733-ee0de3bc6815/go.mod h1:WwZ+bS3ebgob9U8Nd0kOddGdZWjyMGR8Wziv+TBNwSE=
7-
github.com/drycc/controller-sdk-go v0.0.0-20230711045631-016fac5b12ba h1:LCpMSZf5WO36gia4wqI1w3ff71klcvnKszlpyy4Py6k=
8-
github.com/drycc/controller-sdk-go v0.0.0-20230711045631-016fac5b12ba/go.mod h1:iMC7o/PFeLnx2y2xuA5TLkaTNeHA7he/bw3eOWv0hdI=
7+
github.com/drycc/controller-sdk-go v0.0.0-20231108033734-99a7fbf94e7b h1:Z9n6Uia65mhX6oHFAZpB9UMopqmqgMyHxI+6lMFWeBs=
8+
github.com/drycc/controller-sdk-go v0.0.0-20231108033734-99a7fbf94e7b/go.mod h1:X69v0xts3XpvbcQpVeR+wwQqORPJ8ClXnYvnMoAOUHE=
99
github.com/drycc/pkg v0.0.0-20230619083908-711ad2e9f1b8 h1:bTPrdjJTYxMK3T6nYk7Qa8nDbvNNxvNOdI/fgVsiuCg=
1010
github.com/drycc/pkg v0.0.0-20230619083908-711ad2e9f1b8/go.mod h1:y/6vsR0kXRg3Vxj2M/UqApU2uL43KfMDMN2SyvwF0Ek=
1111
github.com/mattn/go-runewidth v0.0.9 h1:Lm995f3rfxdpd6TSmuVCHVb/QhupuXlYr8sCI/QdE+0=
@@ -18,11 +18,11 @@ github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcU
1818
github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
1919
golang.org/x/exp v0.0.0-20230522175609-2e198f4a06a1 h1:k/i9J1pBpvlfR+9QsetwPyERsqu1GIbi967PQMq3Ivc=
2020
golang.org/x/exp v0.0.0-20230522175609-2e198f4a06a1/go.mod h1:V1LtkGg67GoY2N1AnLN78QLrzxkLyJw7RJb1gzOOz9w=
21-
golang.org/x/net v0.12.0 h1:cfawfvKITfUsFCeJIHJrbSxpeu/E81khclypR0GVT50=
22-
golang.org/x/net v0.12.0/go.mod h1:zEVYFnQC7m/vmpQFELhcD1EWkZlX69l4oqgmer6hfKA=
21+
golang.org/x/net v0.17.0 h1:pVaXccu2ozPjCXewfr1S7xza/zcXTity9cCdXQYSjIM=
22+
golang.org/x/net v0.17.0/go.mod h1:NxSsAGuq816PNPmqtQdLE42eU2Fs7NoRIZrHJAlaCOE=
2323
golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
24-
golang.org/x/sys v0.10.0 h1:SqMFp9UcQJZa+pmYuAKjd9xq1f0j5rLcDIk0mj4qAsA=
25-
golang.org/x/sys v0.10.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
24+
golang.org/x/sys v0.13.0 h1:Af8nKPmuFypiUBjVoU9V20FiaFXOcuZI21p0ycVYYGE=
25+
golang.org/x/sys v0.13.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
2626
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
2727
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
2828
gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=

0 commit comments

Comments
 (0)