Skip to content

Commit 8ba7426

Browse files
authored
Merge pull request #34 from jianxiaoguo/main
chore(workflow-cli): volume mount print info
2 parents 3a9250c + 8273eea commit 8ba7426

4 files changed

Lines changed: 8 additions & 5 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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ 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

go.sum

Lines changed: 2 additions & 2 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=

0 commit comments

Comments
 (0)