This repository was archived by the owner on Dec 10, 2024. It is now read-only.
File tree 2 files changed +14
-10
lines changed
2 files changed +14
-10
lines changed Original file line number Diff line number Diff line change @@ -33,9 +33,10 @@ type Metadata struct {
33
33
Version string `json:"version"`
34
34
Revision string `json:"revision"`
35
35
KAS struct {
36
- Enabled bool `json:"enabled"`
37
- ExternalURL string `json:"externalUrl"`
38
- Version string `json:"version"`
36
+ Enabled bool `json:"enabled"`
37
+ ExternalURL string `json:"externalUrl"`
38
+ ExternalK8SProxyURL string `json:"externalK8sProxyUrl"`
39
+ Version string `json:"version"`
39
40
} `json:"kas"`
40
41
Enterprise bool `json:"enterprise"`
41
42
}
Original file line number Diff line number Diff line change @@ -35,7 +35,8 @@ func TestGetMetadata(t *testing.T) {
35
35
"enterprise": true,
36
36
"kas": {
37
37
"enabled": true,
38
- "externalUrl": "wss://kas.gitlab.com",
38
+ "externalUrl": "wss://kas.gitlab.example.com",
39
+ "externalK8sProxyUrl": "https://kas.gitlab.example.com/k8s-proxy",
39
40
"version": "15.6.0-rc2"
40
41
}
41
42
}` )
@@ -48,13 +49,15 @@ func TestGetMetadata(t *testing.T) {
48
49
49
50
want := & Metadata {
50
51
Version : "15.6.0-pre" , Revision : "016e8d8bdc3" , KAS : struct {
51
- Enabled bool `json:"enabled"`
52
- ExternalURL string `json:"externalUrl"`
53
- Version string `json:"version"`
52
+ Enabled bool `json:"enabled"`
53
+ ExternalURL string `json:"externalUrl"`
54
+ ExternalK8SProxyURL string `json:"externalK8sProxyUrl"`
55
+ Version string `json:"version"`
54
56
}{
55
- Enabled : true ,
56
- ExternalURL : "wss://kas.gitlab.com" ,
57
- Version : "15.6.0-rc2" ,
57
+ Enabled : true ,
58
+ ExternalURL : "wss://kas.gitlab.example.com" ,
59
+ ExternalK8SProxyURL : "https://kas.gitlab.example.com/k8s-proxy" ,
60
+ Version : "15.6.0-rc2" ,
58
61
},
59
62
Enterprise : true ,
60
63
}
You can’t perform that action at this time.
0 commit comments