File tree Expand file tree Collapse file tree 2 files changed +32
-1
lines changed Expand file tree Collapse file tree 2 files changed +32
-1
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ const kc2FileName = 'testdata/kubeconfig-2.yaml';
18
18
const kcDupeCluster = 'testdata/kubeconfig-dupe-cluster.yaml' ;
19
19
const kcDupeContext = 'testdata/kubeconfig-dupe-context.yaml' ;
20
20
const kcDupeUser = 'testdata/kubeconfig-dupe-user.yaml' ;
21
+ const kcProxyUrl = 'testdata/kubeconfig-proxy-url.yaml' ;
21
22
22
23
const kcNoUserFileName = 'testdata/empty-user-kubeconfig.yaml' ;
23
24
const kcInvalidContextFileName = 'testdata/empty-context-kubeconfig.yaml' ;
@@ -423,7 +424,7 @@ describe('KubeConfig', () => {
423
424
} ) ;
424
425
it ( 'should apply agent to request.Options' , async ( ) => {
425
426
const kc = new KubeConfig ( ) ;
426
- kc . loadFromFile ( kcFileName ) ;
427
+ kc . loadFromFile ( kcProxyUrl ) ;
427
428
428
429
const opts = { } as requestlib . Options ;
429
430
Original file line number Diff line number Diff line change
1
+ apiVersion : v1
2
+ clusters :
3
+ - cluster :
4
+ certificate-authority-data : Q0FEQVRA
5
+ server : http://example2.com
6
+ proxy-url : https://example:1187
7
+ name : clusterA
8
+
9
+ contexts :
10
+ - context :
11
+ cluster : clusterA
12
+ user : userA
13
+ name : contextA
14
+
15
+ current-context : contextA
16
+ kind : Config
17
+ preferences : {}
18
+ users :
19
+ - name : userA
20
+ user :
21
+ client-certificate-data : XVNFUl9DQURBVEE=
22
+ client-key-data : XVNFUl9DS0RBVEE=
23
+ - name : userB
24
+ user :
25
+ client-certificate-data : XVNFUjJfQ0FEQVRB
26
+ client-key-data : XVNFUjJfQ0tEQVRB
27
+ - name : userC
28
+ user :
29
+ username : foo
30
+ password : bar
You can’t perform that action at this time.
0 commit comments