@backstage/plugin-kubernetes-backend 0.21.5 → 0.21.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +22 -0
- package/config.schema.json +296 -0
- package/dist/package.json.cjs.js +1 -1
- package/package.json +13 -13
- package/config.d.ts +0 -138
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @backstage/plugin-kubernetes-backend
|
|
2
2
|
|
|
3
|
+
## 0.21.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
- @backstage/backend-plugin-api@1.9.3
|
|
9
|
+
- @backstage/catalog-client@1.16.1
|
|
10
|
+
- @backstage/plugin-catalog-node@2.2.3
|
|
11
|
+
- @backstage/plugin-kubernetes-node@0.4.6
|
|
12
|
+
- @backstage/plugin-permission-node@0.11.2
|
|
13
|
+
|
|
14
|
+
## 0.21.6-next.0
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
- @backstage/plugin-kubernetes-node@0.4.6-next.0
|
|
20
|
+
- @backstage/plugin-permission-node@0.11.2-next.0
|
|
21
|
+
- @backstage/backend-plugin-api@1.9.3-next.0
|
|
22
|
+
- @backstage/plugin-catalog-node@2.2.3-next.0
|
|
23
|
+
- @backstage/catalog-client@1.16.1-next.0
|
|
24
|
+
|
|
3
25
|
## 0.21.5
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"kubernetes": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"objectTypes": {
|
|
9
|
+
"type": "array",
|
|
10
|
+
"items": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"enum": [
|
|
13
|
+
"pods",
|
|
14
|
+
"services",
|
|
15
|
+
"configmaps",
|
|
16
|
+
"deployments",
|
|
17
|
+
"limitranges",
|
|
18
|
+
"resourcequotas",
|
|
19
|
+
"replicasets",
|
|
20
|
+
"horizontalpodautoscalers",
|
|
21
|
+
"jobs",
|
|
22
|
+
"cronjobs",
|
|
23
|
+
"ingresses",
|
|
24
|
+
"customresources",
|
|
25
|
+
"statefulsets",
|
|
26
|
+
"daemonsets"
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"serviceLocatorMethod": {
|
|
31
|
+
"type": "object",
|
|
32
|
+
"properties": {
|
|
33
|
+
"type": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"enum": [
|
|
36
|
+
"multiTenant",
|
|
37
|
+
"singleTenant",
|
|
38
|
+
"catalogRelation"
|
|
39
|
+
]
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"required": [
|
|
43
|
+
"type"
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
"clusterLocatorMethods": {
|
|
47
|
+
"type": "array",
|
|
48
|
+
"items": {
|
|
49
|
+
"anyOf": [
|
|
50
|
+
{
|
|
51
|
+
"type": "object",
|
|
52
|
+
"properties": {
|
|
53
|
+
"type": {
|
|
54
|
+
"type": "string",
|
|
55
|
+
"const": "config",
|
|
56
|
+
"visibility": "frontend"
|
|
57
|
+
},
|
|
58
|
+
"clusters": {
|
|
59
|
+
"type": "array",
|
|
60
|
+
"items": {
|
|
61
|
+
"type": "object",
|
|
62
|
+
"properties": {
|
|
63
|
+
"url": {
|
|
64
|
+
"type": "string",
|
|
65
|
+
"visibility": "frontend"
|
|
66
|
+
},
|
|
67
|
+
"name": {
|
|
68
|
+
"type": "string",
|
|
69
|
+
"visibility": "frontend"
|
|
70
|
+
},
|
|
71
|
+
"title": {
|
|
72
|
+
"type": "string",
|
|
73
|
+
"visibility": "frontend"
|
|
74
|
+
},
|
|
75
|
+
"serviceAccountToken": {
|
|
76
|
+
"type": "string",
|
|
77
|
+
"visibility": "secret"
|
|
78
|
+
},
|
|
79
|
+
"authProvider": {
|
|
80
|
+
"type": "string",
|
|
81
|
+
"visibility": "frontend"
|
|
82
|
+
},
|
|
83
|
+
"authMetadata": {
|
|
84
|
+
"type": "object",
|
|
85
|
+
"visibility": "secret"
|
|
86
|
+
},
|
|
87
|
+
"oidcTokenProvider": {
|
|
88
|
+
"type": "string",
|
|
89
|
+
"visibility": "frontend"
|
|
90
|
+
},
|
|
91
|
+
"skipTLSVerify": {
|
|
92
|
+
"type": "boolean",
|
|
93
|
+
"visibility": "frontend"
|
|
94
|
+
},
|
|
95
|
+
"skipMetricsLookup": {
|
|
96
|
+
"type": "boolean",
|
|
97
|
+
"visibility": "frontend"
|
|
98
|
+
},
|
|
99
|
+
"caData": {
|
|
100
|
+
"type": "string",
|
|
101
|
+
"visibility": "secret"
|
|
102
|
+
},
|
|
103
|
+
"caFile": {
|
|
104
|
+
"type": "string",
|
|
105
|
+
"visibility": "secret"
|
|
106
|
+
},
|
|
107
|
+
"customResources": {
|
|
108
|
+
"type": "array",
|
|
109
|
+
"items": {
|
|
110
|
+
"type": "object",
|
|
111
|
+
"properties": {
|
|
112
|
+
"group": {
|
|
113
|
+
"type": "string"
|
|
114
|
+
},
|
|
115
|
+
"apiVersion": {
|
|
116
|
+
"type": "string"
|
|
117
|
+
},
|
|
118
|
+
"plural": {
|
|
119
|
+
"type": "string"
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
"required": [
|
|
123
|
+
"group",
|
|
124
|
+
"apiVersion",
|
|
125
|
+
"plural"
|
|
126
|
+
]
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
"required": [
|
|
131
|
+
"url",
|
|
132
|
+
"name"
|
|
133
|
+
]
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
"required": [
|
|
138
|
+
"type",
|
|
139
|
+
"clusters"
|
|
140
|
+
]
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"type": "object",
|
|
144
|
+
"properties": {
|
|
145
|
+
"type": {
|
|
146
|
+
"type": "string",
|
|
147
|
+
"const": "catalog",
|
|
148
|
+
"visibility": "frontend"
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
"required": [
|
|
152
|
+
"type"
|
|
153
|
+
]
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"type": "object",
|
|
157
|
+
"properties": {
|
|
158
|
+
"type": {
|
|
159
|
+
"type": "string",
|
|
160
|
+
"const": "localKubectlProxy",
|
|
161
|
+
"visibility": "frontend"
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
"required": [
|
|
165
|
+
"type"
|
|
166
|
+
]
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"type": "object",
|
|
170
|
+
"properties": {
|
|
171
|
+
"type": {
|
|
172
|
+
"type": "string",
|
|
173
|
+
"const": "gke",
|
|
174
|
+
"visibility": "frontend"
|
|
175
|
+
},
|
|
176
|
+
"projectId": {
|
|
177
|
+
"type": "string",
|
|
178
|
+
"visibility": "frontend"
|
|
179
|
+
},
|
|
180
|
+
"region": {
|
|
181
|
+
"type": "string",
|
|
182
|
+
"visibility": "frontend"
|
|
183
|
+
},
|
|
184
|
+
"authProvider": {
|
|
185
|
+
"type": "string",
|
|
186
|
+
"visibility": "frontend"
|
|
187
|
+
},
|
|
188
|
+
"skipTLSVerify": {
|
|
189
|
+
"type": "boolean",
|
|
190
|
+
"visibility": "frontend"
|
|
191
|
+
},
|
|
192
|
+
"skipMetricsLookup": {
|
|
193
|
+
"type": "boolean",
|
|
194
|
+
"visibility": "frontend"
|
|
195
|
+
},
|
|
196
|
+
"endpointType": {
|
|
197
|
+
"type": "string",
|
|
198
|
+
"enum": [
|
|
199
|
+
"public",
|
|
200
|
+
"dns"
|
|
201
|
+
],
|
|
202
|
+
"description": "The type of endpoint to use for connecting to the cluster. 'public' uses the public IP endpoint (default). 'dns' uses the DNS-based control plane endpoint.",
|
|
203
|
+
"visibility": "frontend"
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
"required": [
|
|
207
|
+
"type",
|
|
208
|
+
"projectId"
|
|
209
|
+
]
|
|
210
|
+
}
|
|
211
|
+
]
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
"customResources": {
|
|
215
|
+
"type": "array",
|
|
216
|
+
"items": {
|
|
217
|
+
"type": "object",
|
|
218
|
+
"properties": {
|
|
219
|
+
"group": {
|
|
220
|
+
"type": "string"
|
|
221
|
+
},
|
|
222
|
+
"apiVersion": {
|
|
223
|
+
"type": "string"
|
|
224
|
+
},
|
|
225
|
+
"plural": {
|
|
226
|
+
"type": "string"
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
"required": [
|
|
230
|
+
"group",
|
|
231
|
+
"apiVersion",
|
|
232
|
+
"plural"
|
|
233
|
+
]
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
"googleServiceAccountCredentials": {
|
|
237
|
+
"type": "string",
|
|
238
|
+
"description": "(Optional) Google Service Account credentials for authentication JSON string containing the service account key",
|
|
239
|
+
"visibility": "secret"
|
|
240
|
+
},
|
|
241
|
+
"apiVersionOverrides": {
|
|
242
|
+
"type": "object",
|
|
243
|
+
"properties": {
|
|
244
|
+
"pods": {
|
|
245
|
+
"type": "string"
|
|
246
|
+
},
|
|
247
|
+
"services": {
|
|
248
|
+
"type": "string"
|
|
249
|
+
},
|
|
250
|
+
"configmaps": {
|
|
251
|
+
"type": "string"
|
|
252
|
+
},
|
|
253
|
+
"deployments": {
|
|
254
|
+
"type": "string"
|
|
255
|
+
},
|
|
256
|
+
"limitranges": {
|
|
257
|
+
"type": "string"
|
|
258
|
+
},
|
|
259
|
+
"resourcequotas": {
|
|
260
|
+
"type": "string"
|
|
261
|
+
},
|
|
262
|
+
"replicasets": {
|
|
263
|
+
"type": "string"
|
|
264
|
+
},
|
|
265
|
+
"horizontalpodautoscalers": {
|
|
266
|
+
"type": "string"
|
|
267
|
+
},
|
|
268
|
+
"jobs": {
|
|
269
|
+
"type": "string"
|
|
270
|
+
},
|
|
271
|
+
"cronjobs": {
|
|
272
|
+
"type": "string"
|
|
273
|
+
},
|
|
274
|
+
"ingresses": {
|
|
275
|
+
"type": "string"
|
|
276
|
+
},
|
|
277
|
+
"customresources": {
|
|
278
|
+
"type": "string"
|
|
279
|
+
},
|
|
280
|
+
"statefulsets": {
|
|
281
|
+
"type": "string"
|
|
282
|
+
},
|
|
283
|
+
"daemonsets": {
|
|
284
|
+
"type": "string"
|
|
285
|
+
}
|
|
286
|
+
},
|
|
287
|
+
"description": "(Optional) API Version Overrides If set, the specified api version will be used to make requests for the corresponding object. If running a legacy Kubernetes version, you may use this to override the default api versions that are not supported in your cluster."
|
|
288
|
+
}
|
|
289
|
+
},
|
|
290
|
+
"required": [
|
|
291
|
+
"serviceLocatorMethod",
|
|
292
|
+
"clusterLocatorMethods"
|
|
293
|
+
]
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
}
|
package/dist/package.json.cjs.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-kubernetes-backend",
|
|
3
|
-
"version": "0.21.
|
|
3
|
+
"version": "0.21.6",
|
|
4
4
|
"description": "A Backstage backend plugin that integrates towards Kubernetes",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "backend-plugin",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"types": "./dist/index.d.ts",
|
|
35
35
|
"files": [
|
|
36
36
|
"dist",
|
|
37
|
-
"config.
|
|
37
|
+
"config.schema.json"
|
|
38
38
|
],
|
|
39
39
|
"scripts": {
|
|
40
40
|
"build": "backstage-cli package build",
|
|
@@ -49,17 +49,17 @@
|
|
|
49
49
|
"@aws-crypto/sha256-js": "^5.0.0",
|
|
50
50
|
"@aws-sdk/credential-providers": "^3.350.0",
|
|
51
51
|
"@azure/identity": "^4.0.0",
|
|
52
|
-
"@backstage/backend-plugin-api": "^1.9.
|
|
53
|
-
"@backstage/catalog-client": "^1.16.
|
|
52
|
+
"@backstage/backend-plugin-api": "^1.9.3",
|
|
53
|
+
"@backstage/catalog-client": "^1.16.1",
|
|
54
54
|
"@backstage/catalog-model": "^1.9.0",
|
|
55
55
|
"@backstage/config": "^1.3.8",
|
|
56
56
|
"@backstage/errors": "^1.3.1",
|
|
57
57
|
"@backstage/integration-aws-node": "^0.2.0",
|
|
58
|
-
"@backstage/plugin-catalog-node": "^2.2.
|
|
58
|
+
"@backstage/plugin-catalog-node": "^2.2.3",
|
|
59
59
|
"@backstage/plugin-kubernetes-common": "^0.9.12",
|
|
60
|
-
"@backstage/plugin-kubernetes-node": "^0.4.
|
|
60
|
+
"@backstage/plugin-kubernetes-node": "^0.4.6",
|
|
61
61
|
"@backstage/plugin-permission-common": "^0.9.9",
|
|
62
|
-
"@backstage/plugin-permission-node": "^0.11.
|
|
62
|
+
"@backstage/plugin-permission-node": "^0.11.2",
|
|
63
63
|
"@backstage/types": "^1.2.2",
|
|
64
64
|
"@google-cloud/container": "^5.0.0",
|
|
65
65
|
"@jest-mock/express": "^2.0.1",
|
|
@@ -75,17 +75,17 @@
|
|
|
75
75
|
"node-fetch": "^2.7.0"
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
78
|
-
"@backstage/backend-defaults": "^0.17.
|
|
79
|
-
"@backstage/backend-test-utils": "^1.11.
|
|
80
|
-
"@backstage/cli": "^0.36.
|
|
81
|
-
"@backstage/plugin-permission-backend": "^0.7.
|
|
82
|
-
"@backstage/plugin-permission-backend-module-allow-all-policy": "^0.2.
|
|
78
|
+
"@backstage/backend-defaults": "^0.17.5",
|
|
79
|
+
"@backstage/backend-test-utils": "^1.11.5",
|
|
80
|
+
"@backstage/cli": "^0.36.4",
|
|
81
|
+
"@backstage/plugin-permission-backend": "^0.7.14",
|
|
82
|
+
"@backstage/plugin-permission-backend-module-allow-all-policy": "^0.2.21",
|
|
83
83
|
"@types/express": "^4.17.6",
|
|
84
84
|
"msw": "^1.0.0",
|
|
85
85
|
"supertest": "^7.0.0",
|
|
86
86
|
"ws": "^8.20.1"
|
|
87
87
|
},
|
|
88
|
-
"configSchema": "config.
|
|
88
|
+
"configSchema": "config.schema.json",
|
|
89
89
|
"typesVersions": {
|
|
90
90
|
"*": {
|
|
91
91
|
"package.json": [
|
package/config.d.ts
DELETED
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright 2020 The Backstage Authors
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
export interface Config {
|
|
18
|
-
kubernetes?: {
|
|
19
|
-
objectTypes?: Array<
|
|
20
|
-
| 'pods'
|
|
21
|
-
| 'services'
|
|
22
|
-
| 'configmaps'
|
|
23
|
-
| 'deployments'
|
|
24
|
-
| 'limitranges'
|
|
25
|
-
| 'resourcequotas'
|
|
26
|
-
| 'replicasets'
|
|
27
|
-
| 'horizontalpodautoscalers'
|
|
28
|
-
| 'jobs'
|
|
29
|
-
| 'cronjobs'
|
|
30
|
-
| 'ingresses'
|
|
31
|
-
| 'customresources'
|
|
32
|
-
| 'statefulsets'
|
|
33
|
-
| 'daemonsets'
|
|
34
|
-
>;
|
|
35
|
-
serviceLocatorMethod: {
|
|
36
|
-
type: 'multiTenant' | 'singleTenant' | 'catalogRelation';
|
|
37
|
-
};
|
|
38
|
-
clusterLocatorMethods: Array<
|
|
39
|
-
| {
|
|
40
|
-
/** @visibility frontend */
|
|
41
|
-
type: 'config';
|
|
42
|
-
clusters: Array<{
|
|
43
|
-
/** @visibility frontend */
|
|
44
|
-
url: string;
|
|
45
|
-
/** @visibility frontend */
|
|
46
|
-
name: string;
|
|
47
|
-
/** @visibility frontend */
|
|
48
|
-
title?: string;
|
|
49
|
-
/** @visibility secret */
|
|
50
|
-
serviceAccountToken?: string;
|
|
51
|
-
/** @visibility frontend */
|
|
52
|
-
authProvider?: string;
|
|
53
|
-
/** @visibility secret */
|
|
54
|
-
authMetadata?: object;
|
|
55
|
-
/** @visibility frontend */
|
|
56
|
-
oidcTokenProvider?: string;
|
|
57
|
-
/** @visibility frontend */
|
|
58
|
-
skipTLSVerify?: boolean;
|
|
59
|
-
/** @visibility frontend */
|
|
60
|
-
skipMetricsLookup?: boolean;
|
|
61
|
-
/** @visibility secret */
|
|
62
|
-
caData?: string;
|
|
63
|
-
/** @visibility secret */
|
|
64
|
-
caFile?: string;
|
|
65
|
-
customResources?: Array<{
|
|
66
|
-
group: string;
|
|
67
|
-
apiVersion: string;
|
|
68
|
-
plural: string;
|
|
69
|
-
}>;
|
|
70
|
-
}>;
|
|
71
|
-
}
|
|
72
|
-
| {
|
|
73
|
-
/** @visibility frontend */
|
|
74
|
-
type: 'catalog';
|
|
75
|
-
}
|
|
76
|
-
| {
|
|
77
|
-
/** @visibility frontend */
|
|
78
|
-
type: 'localKubectlProxy';
|
|
79
|
-
}
|
|
80
|
-
| {
|
|
81
|
-
/** @visibility frontend */
|
|
82
|
-
type: 'gke';
|
|
83
|
-
/** @visibility frontend */
|
|
84
|
-
projectId: string;
|
|
85
|
-
/** @visibility frontend */
|
|
86
|
-
region?: string;
|
|
87
|
-
/** @visibility frontend */
|
|
88
|
-
authProvider?: string;
|
|
89
|
-
/** @visibility frontend */
|
|
90
|
-
skipTLSVerify?: boolean;
|
|
91
|
-
/** @visibility frontend */
|
|
92
|
-
skipMetricsLookup?: boolean;
|
|
93
|
-
/**
|
|
94
|
-
* The type of endpoint to use for connecting to the cluster.
|
|
95
|
-
* 'public' uses the public IP endpoint (default).
|
|
96
|
-
* 'dns' uses the DNS-based control plane endpoint.
|
|
97
|
-
* @visibility frontend
|
|
98
|
-
*/
|
|
99
|
-
endpointType?: 'public' | 'dns';
|
|
100
|
-
}
|
|
101
|
-
>;
|
|
102
|
-
customResources?: Array<{
|
|
103
|
-
group: string;
|
|
104
|
-
apiVersion: string;
|
|
105
|
-
plural: string;
|
|
106
|
-
}>;
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* (Optional) Google Service Account credentials for authentication
|
|
110
|
-
* JSON string containing the service account key
|
|
111
|
-
* @visibility secret
|
|
112
|
-
*/
|
|
113
|
-
googleServiceAccountCredentials?: string;
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* (Optional) API Version Overrides
|
|
117
|
-
* If set, the specified api version will be used to make requests for the corresponding object.
|
|
118
|
-
* If running a legacy Kubernetes version, you may use this to override the default api versions
|
|
119
|
-
* that are not supported in your cluster.
|
|
120
|
-
*/
|
|
121
|
-
apiVersionOverrides?: {
|
|
122
|
-
pods?: string;
|
|
123
|
-
services?: string;
|
|
124
|
-
configmaps?: string;
|
|
125
|
-
deployments?: string;
|
|
126
|
-
limitranges?: string;
|
|
127
|
-
resourcequotas?: string;
|
|
128
|
-
replicasets?: string;
|
|
129
|
-
horizontalpodautoscalers?: string;
|
|
130
|
-
jobs?: string;
|
|
131
|
-
cronjobs?: string;
|
|
132
|
-
ingresses?: string;
|
|
133
|
-
customresources?: string;
|
|
134
|
-
statefulsets?: string;
|
|
135
|
-
daemonsets?: string;
|
|
136
|
-
} & { [pluralKind: string]: string };
|
|
137
|
-
};
|
|
138
|
-
}
|