File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
pkg/internal/testing/integration Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 5
5
"net/url"
6
6
7
7
"k8s.io/apimachinery/pkg/runtime/serializer"
8
+ utilerrors "k8s.io/apimachinery/pkg/util/errors"
8
9
"k8s.io/client-go/kubernetes/scheme"
9
10
"k8s.io/client-go/rest"
10
11
@@ -42,17 +43,20 @@ func (f *ControlPlane) Start() error {
42
43
43
44
// Stop will stop your control plane processes, and clean up their data.
44
45
func (f * ControlPlane ) Stop () error {
46
+ var errList []error
47
+
45
48
if f .APIServer != nil {
46
49
if err := f .APIServer .Stop (); err != nil {
47
- return err
50
+ errList = append ( errList , err )
48
51
}
49
52
}
50
53
if f .Etcd != nil {
51
54
if err := f .Etcd .Stop (); err != nil {
52
- return err
55
+ errList = append ( errList , err )
53
56
}
54
57
}
55
- return nil
58
+
59
+ return utilerrors .NewAggregate (errList )
56
60
}
57
61
58
62
// APIURL returns the URL you should connect to to talk to your API.
You can’t perform that action at this time.
0 commit comments