@backstage/plugin-kubernetes 0.7.10-next.0 → 0.7.10-next.2
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 +27 -0
- package/dist/index.d.ts +16 -16
- package/package.json +12 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
# @backstage/plugin-kubernetes
|
|
2
2
|
|
|
3
|
+
## 0.7.10-next.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
- @backstage/core-components@0.12.6-next.2
|
|
9
|
+
- @backstage/plugin-catalog-react@1.4.1-next.2
|
|
10
|
+
- @backstage/core-plugin-api@1.5.1-next.1
|
|
11
|
+
- @backstage/catalog-model@1.2.1
|
|
12
|
+
- @backstage/config@1.0.7
|
|
13
|
+
- @backstage/theme@0.2.19-next.0
|
|
14
|
+
- @backstage/plugin-kubernetes-common@0.6.2-next.1
|
|
15
|
+
|
|
16
|
+
## 0.7.10-next.1
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- e0c6e8b9c3c: Update peer dependencies
|
|
21
|
+
- Updated dependencies
|
|
22
|
+
- @backstage/core-components@0.12.6-next.1
|
|
23
|
+
- @backstage/core-plugin-api@1.5.1-next.0
|
|
24
|
+
- @backstage/plugin-catalog-react@1.4.1-next.1
|
|
25
|
+
- @backstage/theme@0.2.19-next.0
|
|
26
|
+
- @backstage/catalog-model@1.2.1
|
|
27
|
+
- @backstage/config@1.0.7
|
|
28
|
+
- @backstage/plugin-kubernetes-common@0.6.2-next.1
|
|
29
|
+
|
|
3
30
|
## 0.7.10-next.0
|
|
4
31
|
|
|
5
32
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ declare const kubernetesPlugin: _backstage_core_plugin_api.BackstagePlugin<{
|
|
|
15
15
|
*
|
|
16
16
|
* @public
|
|
17
17
|
*/
|
|
18
|
-
|
|
18
|
+
type EntityKubernetesContentProps = {
|
|
19
19
|
/**
|
|
20
20
|
* Sets the refresh interval in milliseconds. The default value is 10000 (10 seconds)
|
|
21
21
|
*/
|
|
@@ -92,7 +92,7 @@ declare class ServerSideKubernetesAuthProvider implements KubernetesAuthProvider
|
|
|
92
92
|
decorateRequestBodyForAuth(requestBody: KubernetesRequestBody): Promise<KubernetesRequestBody>;
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
|
|
95
|
+
type FormatClusterLinkOptions = {
|
|
96
96
|
dashboardUrl?: string;
|
|
97
97
|
dashboardApp?: string;
|
|
98
98
|
dashboardParameters?: JsonObject;
|
|
@@ -122,18 +122,18 @@ interface ClusterLinksFormatterOptions {
|
|
|
122
122
|
object: any;
|
|
123
123
|
kind: string;
|
|
124
124
|
}
|
|
125
|
-
|
|
125
|
+
type ClusterLinksFormatter = (options: ClusterLinksFormatterOptions) => URL;
|
|
126
126
|
|
|
127
127
|
declare const clusterLinksFormatters: Record<string, ClusterLinksFormatter>;
|
|
128
128
|
|
|
129
|
-
|
|
129
|
+
type ClusterProps = {
|
|
130
130
|
clusterObjects: ClusterObjects;
|
|
131
131
|
podsWithErrors: Set<string>;
|
|
132
132
|
children?: React.ReactNode;
|
|
133
133
|
};
|
|
134
134
|
declare const Cluster: ({ clusterObjects, podsWithErrors }: ClusterProps) => JSX.Element;
|
|
135
135
|
|
|
136
|
-
|
|
136
|
+
type CronJobsAccordionsProps = {
|
|
137
137
|
children?: React.ReactNode;
|
|
138
138
|
};
|
|
139
139
|
declare const CronJobsAccordions: ({}: CronJobsAccordionsProps) => JSX.Element;
|
|
@@ -143,7 +143,7 @@ interface CustomResourcesProps {
|
|
|
143
143
|
}
|
|
144
144
|
declare const CustomResources: ({}: CustomResourcesProps) => JSX.Element;
|
|
145
145
|
|
|
146
|
-
|
|
146
|
+
type ErrorPanelProps = {
|
|
147
147
|
entityName: string;
|
|
148
148
|
errorMessage?: string;
|
|
149
149
|
clustersWithErrors?: ClusterObjects[];
|
|
@@ -156,19 +156,19 @@ declare const ErrorPanel: ({ entityName, errorMessage, clustersWithErrors, }: Er
|
|
|
156
156
|
*
|
|
157
157
|
* @public
|
|
158
158
|
*/
|
|
159
|
-
|
|
159
|
+
type ErrorSeverity = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
|
|
160
160
|
/**
|
|
161
161
|
* Kubernetes kinds that errors might be reported by the plugin
|
|
162
162
|
*
|
|
163
163
|
* @public
|
|
164
164
|
*/
|
|
165
|
-
|
|
165
|
+
type ErrorDetectableKind = 'Pod' | 'Deployment' | 'HorizontalPodAutoscaler';
|
|
166
166
|
/**
|
|
167
167
|
* A list of errors keyed by Cluster name
|
|
168
168
|
*
|
|
169
169
|
* @public
|
|
170
170
|
*/
|
|
171
|
-
|
|
171
|
+
type DetectedErrorsByCluster = Map<string, DetectedError[]>;
|
|
172
172
|
/**
|
|
173
173
|
* Represents an error found on a Kubernetes object
|
|
174
174
|
*
|
|
@@ -191,7 +191,7 @@ interface DetectedError {
|
|
|
191
191
|
*/
|
|
192
192
|
declare const detectErrors: (objects: ObjectsByEntityResponse) => DetectedErrorsByCluster;
|
|
193
193
|
|
|
194
|
-
|
|
194
|
+
type ErrorReportingProps = {
|
|
195
195
|
detectedErrors: DetectedErrorsByCluster;
|
|
196
196
|
};
|
|
197
197
|
declare const ErrorReporting: ({ detectedErrors }: ErrorReportingProps) => JSX.Element;
|
|
@@ -203,10 +203,10 @@ declare const HorizontalPodAutoscalerDrawer: (props: {
|
|
|
203
203
|
children?: React.ReactNode;
|
|
204
204
|
}) => JSX.Element;
|
|
205
205
|
|
|
206
|
-
|
|
206
|
+
type IngressesAccordionsProps = {};
|
|
207
207
|
declare const IngressesAccordions: ({}: IngressesAccordionsProps) => JSX.Element;
|
|
208
208
|
|
|
209
|
-
|
|
209
|
+
type JobsAccordionsProps = {
|
|
210
210
|
jobs: V1Job[];
|
|
211
211
|
children?: React.ReactNode;
|
|
212
212
|
};
|
|
@@ -231,18 +231,18 @@ declare const PodDrawer: (props: {
|
|
|
231
231
|
expanded?: boolean;
|
|
232
232
|
}) => JSX.Element;
|
|
233
233
|
|
|
234
|
-
|
|
235
|
-
|
|
234
|
+
type PodColumns = 'READY' | 'RESOURCE';
|
|
235
|
+
type PodsTablesProps = {
|
|
236
236
|
pods: V1Pod[];
|
|
237
237
|
extraColumns?: PodColumns[];
|
|
238
238
|
children?: React.ReactNode;
|
|
239
239
|
};
|
|
240
240
|
declare const PodsTable: ({ pods, extraColumns }: PodsTablesProps) => JSX.Element;
|
|
241
241
|
|
|
242
|
-
|
|
242
|
+
type ServicesAccordionsProps = {};
|
|
243
243
|
declare const ServicesAccordions: ({}: ServicesAccordionsProps) => JSX.Element;
|
|
244
244
|
|
|
245
|
-
|
|
245
|
+
type KubernetesContentProps = {
|
|
246
246
|
entity: Entity;
|
|
247
247
|
refreshIntervalMs?: number;
|
|
248
248
|
children?: React.ReactNode;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-kubernetes",
|
|
3
3
|
"description": "A Backstage plugin that integrates towards Kubernetes",
|
|
4
|
-
"version": "0.7.10-next.
|
|
4
|
+
"version": "0.7.10-next.2",
|
|
5
5
|
"main": "dist/index.esm.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -35,11 +35,11 @@
|
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@backstage/catalog-model": "^1.2.1",
|
|
37
37
|
"@backstage/config": "^1.0.7",
|
|
38
|
-
"@backstage/core-components": "^0.12.6-next.
|
|
39
|
-
"@backstage/core-plugin-api": "^1.5.
|
|
40
|
-
"@backstage/plugin-catalog-react": "^1.4.1-next.
|
|
41
|
-
"@backstage/plugin-kubernetes-common": "^0.6.2-next.
|
|
42
|
-
"@backstage/theme": "^0.2.
|
|
38
|
+
"@backstage/core-components": "^0.12.6-next.2",
|
|
39
|
+
"@backstage/core-plugin-api": "^1.5.1-next.1",
|
|
40
|
+
"@backstage/plugin-catalog-react": "^1.4.1-next.2",
|
|
41
|
+
"@backstage/plugin-kubernetes-common": "^0.6.2-next.1",
|
|
42
|
+
"@backstage/theme": "^0.2.19-next.0",
|
|
43
43
|
"@kubernetes/client-node": "0.18.1",
|
|
44
44
|
"@material-ui/core": "^4.12.2",
|
|
45
45
|
"@material-ui/icons": "^4.9.1",
|
|
@@ -53,13 +53,15 @@
|
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
55
|
"react": "^16.13.1 || ^17.0.0",
|
|
56
|
+
"react-dom": "^16.13.1 || ^17.0.0",
|
|
56
57
|
"react-router-dom": "6.0.0-beta.0 || ^6.3.0"
|
|
57
58
|
},
|
|
58
59
|
"devDependencies": {
|
|
59
|
-
"@backstage/cli": "^0.22.6-next.
|
|
60
|
-
"@backstage/core-app-api": "^1.7.0-next.
|
|
61
|
-
"@backstage/dev-utils": "^1.0.14-next.
|
|
62
|
-
"@backstage/test-utils": "^1.3.0-next.
|
|
60
|
+
"@backstage/cli": "^0.22.6-next.2",
|
|
61
|
+
"@backstage/core-app-api": "^1.7.0-next.2",
|
|
62
|
+
"@backstage/dev-utils": "^1.0.14-next.2",
|
|
63
|
+
"@backstage/test-utils": "^1.3.0-next.2",
|
|
64
|
+
"@testing-library/dom": "^8.0.0",
|
|
63
65
|
"@testing-library/jest-dom": "^5.10.1",
|
|
64
66
|
"@testing-library/react": "^12.1.3",
|
|
65
67
|
"@testing-library/react-hooks": "^8.0.0",
|