@@ -28,7 +28,7 @@ import (
28
28
"k8s.io/client-go/rest"
29
29
"sigs.k8s.io/controller-runtime/pkg/client"
30
30
"sigs.k8s.io/controller-runtime/pkg/client/config"
31
- "sigs.k8s.io/controller-runtime/pkg/internal/testing/integration "
31
+ "sigs.k8s.io/controller-runtime/pkg/internal/testing/controlplane "
32
32
33
33
logf "sigs.k8s.io/controller-runtime/pkg/internal/log"
34
34
)
@@ -82,20 +82,20 @@ func (te *Environment) getBinAssetPath(binary string) string {
82
82
return filepath .Join (defaultKubebuilderPath , binary )
83
83
}
84
84
85
- // ControlPlane is the re-exported ControlPlane type from the internal integration package
86
- type ControlPlane = integration .ControlPlane
85
+ // ControlPlane is the re-exported ControlPlane type from the internal testing package
86
+ type ControlPlane = controlplane .ControlPlane
87
87
88
- // APIServer is the re-exported APIServer type from the internal integration package
89
- type APIServer = integration .APIServer
88
+ // APIServer is the re-exported APIServer type from the internal testing package
89
+ type APIServer = controlplane .APIServer
90
90
91
- // Etcd is the re-exported Etcd type from the internal integration package
92
- type Etcd = integration .Etcd
91
+ // Etcd is the re-exported Etcd type from the internal testing package
92
+ type Etcd = controlplane .Etcd
93
93
94
94
// Environment creates a Kubernetes test environment that will start / stop the Kubernetes control plane and
95
95
// install extension APIs
96
96
type Environment struct {
97
97
// ControlPlane is the ControlPlane including the apiserver and etcd
98
- ControlPlane integration .ControlPlane
98
+ ControlPlane controlplane .ControlPlane
99
99
100
100
// Scheme is used to determine if conversion webhooks should be enabled
101
101
// for a particular CRD / object.
@@ -219,10 +219,10 @@ func (te *Environment) Start() (*rest.Config, error) {
219
219
}
220
220
} else {
221
221
if te .ControlPlane .APIServer == nil {
222
- te .ControlPlane .APIServer = & integration .APIServer {Args : te .getAPIServerFlags ()}
222
+ te .ControlPlane .APIServer = & controlplane .APIServer {Args : te .getAPIServerFlags ()}
223
223
}
224
224
if te .ControlPlane .Etcd == nil {
225
- te .ControlPlane .Etcd = & integration .Etcd {}
225
+ te .ControlPlane .Etcd = & controlplane .Etcd {}
226
226
}
227
227
228
228
if os .Getenv (envAttachOutput ) == "true" {
@@ -357,4 +357,4 @@ func (te *Environment) useExistingCluster() bool {
357
357
358
358
// DefaultKubeAPIServerFlags exposes the default args for the APIServer so that
359
359
// you can use those to append your own additional arguments.
360
- var DefaultKubeAPIServerFlags = integration .APIServerDefaultArgs
360
+ var DefaultKubeAPIServerFlags = controlplane .APIServerDefaultArgs
0 commit comments