Skip to content

Commit cb62941

Browse files
author
marcel
committed
update
1 parent cb91380 commit cb62941

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

cmd/job.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ package cmd
66
import (
77
"context"
88
"fmt"
9-
"os"
109
"time"
1110

1211
"github.com/spf13/cobra"
@@ -73,7 +72,7 @@ func waitForJobsCompleted(clientset *kubernetes.Clientset, namespace, selector s
7372
}
7473
if allDone {
7574
fmt.Println("Info: All Jobs are Completed!")
76-
os.Exit(0)
75+
return
7776
}
7877
}
7978

cmd/pod.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ package cmd
66
import (
77
"context"
88
"fmt"
9-
"os"
109
"time"
1110

1211
"github.com/spf13/cobra"
@@ -84,7 +83,7 @@ func waitForPodsReady(clientset *kubernetes.Clientset, namespace, selector strin
8483
if allReady {
8584
fmt.Printf("==============================================\n")
8685
fmt.Println("Info: All pods are ready!")
87-
os.Exit(0)
86+
return
8887
}
8988
}
9089

0 commit comments

Comments
 (0)