Commit 80e366b 1 parent 8143ea1 commit 80e366b Copy full SHA for 80e366b
File tree 2 files changed +3
-4
lines changed
2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -368,8 +368,6 @@ func (c *Client) Create(cfg Function) (err error) {
368
368
// not contain a populated Image.
369
369
func (c * Client ) Build (path string ) (err error ) {
370
370
371
- fmt .Println ("Building function image" )
372
-
373
371
f , err := NewFunction (path )
374
372
if err != nil {
375
373
return
@@ -411,7 +409,6 @@ func (c *Client) Deploy(path string) (err error) {
411
409
}
412
410
413
411
// Push the image for the named service to the configured registry
414
- fmt .Println ("Pushing function image to the registry" )
415
412
imageDigest , err := c .pusher .Push (f )
416
413
if err != nil {
417
414
return
Original file line number Diff line number Diff line change 7
7
"github.com/boson-project/func/k8s"
8
8
)
9
9
10
+ const RemoveTimeout = 120 * time .Second
11
+
10
12
func NewRemover (namespaceOverride string ) (remover * Remover , err error ) {
11
13
remover = & Remover {}
12
14
namespace , err := GetNamespace (namespaceOverride )
@@ -37,7 +39,7 @@ func (remover *Remover) Remove(name string) (err error) {
37
39
38
40
fmt .Printf ("Removing Knative Service: %v\n " , serviceName )
39
41
40
- err = client .DeleteService (serviceName , time . Second * 60 )
42
+ err = client .DeleteService (serviceName , RemoveTimeout )
41
43
if err != nil {
42
44
err = fmt .Errorf ("knative remover failed to delete the service: %v" , err )
43
45
}
You can’t perform that action at this time.
0 commit comments