File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
pkg/internal/testing/integration Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 4
4
"fmt"
5
5
"io"
6
6
"io/ioutil"
7
+ "k8s.io/client-go/rest"
7
8
"net/url"
8
9
"os"
9
10
"path/filepath"
@@ -23,6 +24,9 @@ type APIServer struct {
23
24
// SecurePort is the additional secure port that the APIServer should listen on.
24
25
SecurePort int
25
26
27
+ // TLSconfig is tls configuration to connect to its secure endpoint.
28
+ TlsClientConfig rest.TLSClientConfig
29
+
26
30
// Path is the path to the apiserver binary.
27
31
//
28
32
// If this is left as the empty string, we will attempt to locate a binary,
@@ -157,6 +161,10 @@ func (s *APIServer) populateAPIServerCerts() error {
157
161
return err
158
162
}
159
163
164
+ s .TlsClientConfig = rest.TLSClientConfig {
165
+ CAData : ca .CA .CertBytes (),
166
+ }
167
+
160
168
return nil
161
169
}
162
170
You can’t perform that action at this time.
0 commit comments