@backstage/plugin-kubernetes-common 0.2.0 → 0.2.1
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 +6 -0
- package/dist/index.d.ts +7 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { JsonObject } from '@backstage/types';
|
|
1
2
|
import { V1Pod, V1Service, V1ConfigMap, V1Deployment, V1ReplicaSet, V1HorizontalPodAutoscaler, V1Job, V1CronJob, V1Ingress } from '@kubernetes/client-node';
|
|
2
3
|
import { Entity } from '@backstage/catalog-model';
|
|
3
4
|
|
|
@@ -18,6 +19,7 @@ interface ClusterAttributes {
|
|
|
18
19
|
* Note that you should specify the app used for the dashboard
|
|
19
20
|
* using the dashboardApp property, in order to properly format
|
|
20
21
|
* links to kubernetes resources, otherwise it will assume that you're running the standard one.
|
|
22
|
+
* Also, for cloud clusters such as GKE, you should provide addititonal parameters using dashboardParameters.
|
|
21
23
|
* @see dashboardApp
|
|
22
24
|
*/
|
|
23
25
|
dashboardUrl?: string;
|
|
@@ -37,6 +39,11 @@ interface ClusterAttributes {
|
|
|
37
39
|
* ```
|
|
38
40
|
*/
|
|
39
41
|
dashboardApp?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Specifies specific parameters used by some dashboard URL formatters.
|
|
44
|
+
* This is used by the GKE formatter which requires the project, region and cluster name.
|
|
45
|
+
*/
|
|
46
|
+
dashboardParameters?: JsonObject;
|
|
40
47
|
}
|
|
41
48
|
interface ClusterObjects {
|
|
42
49
|
cluster: ClusterAttributes;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-kubernetes-common",
|
|
3
3
|
"description": "Common functionalities for kubernetes, to be shared between kubernetes and kubernetes-backend plugin",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.1",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -39,13 +39,13 @@
|
|
|
39
39
|
"@kubernetes/client-node": "^0.16.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@backstage/cli": "^0.10.
|
|
42
|
+
"@backstage/cli": "^0.10.5"
|
|
43
43
|
},
|
|
44
44
|
"jest": {
|
|
45
45
|
"roots": [
|
|
46
46
|
".."
|
|
47
47
|
]
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "ffdb98aa2973366d48ff1774a7f892bc0c926e7e",
|
|
50
50
|
"module": "dist/index.esm.js"
|
|
51
51
|
}
|