@@ -59,20 +59,48 @@ const (
59
59
defaultKubebuilderControlPlaneStopTimeout = 20 * time .Second
60
60
)
61
61
62
- // ControlPlane is the re-exported ControlPlane type from the internal testing package
63
- type ControlPlane = controlplane.ControlPlane
62
+ // internal types we expose as part of our public API
63
+ type (
64
+ // ControlPlane is the re-exported ControlPlane type from the internal testing package
65
+ ControlPlane = controlplane.ControlPlane
64
66
65
- // APIServer is the re-exported APIServer type from the internal testing package
66
- type APIServer = controlplane.APIServer
67
+ // APIServer is the re-exported APIServer from the internal testing package
68
+ APIServer = controlplane.APIServer
67
69
68
- // Etcd is the re-exported Etcd type from the internal testing package
69
- type Etcd = controlplane.Etcd
70
+ // Etcd is the re-exported Etcd from the internal testing package
71
+ Etcd = controlplane.Etcd
70
72
71
- // User represents a Kubernetes user to provision for auth purposes.
72
- type User = controlplane.User
73
+ // User represents a Kubernetes user to provision for auth purposes.
74
+ User = controlplane.User
73
75
74
- // AuthenticatedUser represets a Kubernetes user that's been provisioned.
75
- type AuthenticatedUser = controlplane.AuthenticatedUser
76
+ // AuthenticatedUser represets a Kubernetes user that's been provisioned.
77
+ AuthenticatedUser = controlplane.AuthenticatedUser
78
+
79
+ // ListenAddr indicates the address and port that the API server should listen on.
80
+ ListenAddr = process.ListenAddr
81
+
82
+ // SecureServing contains details describing how the API server should serve
83
+ // its secure endpoint.
84
+ SecureServing = controlplane.SecureServing
85
+
86
+ // Authn is an authentication method that can be used with the control plane to
87
+ // provision users.
88
+ Authn = controlplane.Authn
89
+
90
+ // Arguments allows configuring a process's flags.
91
+ Arguments = process.Arguments
92
+
93
+ // Arg is a single flag with one or more values.
94
+ Arg = process.Arg
95
+ )
96
+
97
+ var (
98
+ // EmptyArguments constructs a new set of flags with nothing set.
99
+ //
100
+ // This is mostly useful for testing helper methods -- you'll want to call
101
+ // Configure on the APIServer (or etcd) to configure their arguments.
102
+ EmptyArguments = process .EmptyArguments
103
+ )
76
104
77
105
// Environment creates a Kubernetes test environment that will start / stop the Kubernetes control plane and
78
106
// install extension APIs
0 commit comments