@backstage/plugin-kubernetes 0.11.13 → 0.11.14-next.0
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 +16 -0
- package/README.md +12 -2
- package/alpha/package.json +1 -1
- package/dist/alpha/entityContents.esm.js +1 -0
- package/dist/alpha/entityContents.esm.js.map +1 -1
- package/dist/alpha.d.ts +52 -23
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @backstage/plugin-kubernetes
|
|
2
2
|
|
|
3
|
+
## 0.11.14-next.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- fec8b57: Updated exports to use the new type parameters for extensions and extension blueprints.
|
|
8
|
+
- bfc0f42: Make k8s entity content appear on components & resources only by default in new FE system
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
- @backstage/frontend-plugin-api@0.8.0-next.0
|
|
11
|
+
- @backstage/core-compat-api@0.2.9-next.0
|
|
12
|
+
- @backstage/plugin-catalog-react@1.12.4-next.0
|
|
13
|
+
- @backstage/catalog-model@1.6.0
|
|
14
|
+
- @backstage/core-components@0.14.10
|
|
15
|
+
- @backstage/core-plugin-api@1.9.3
|
|
16
|
+
- @backstage/plugin-kubernetes-common@0.8.2
|
|
17
|
+
- @backstage/plugin-kubernetes-react@0.4.2
|
|
18
|
+
|
|
3
19
|
## 0.11.13
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -52,7 +52,7 @@ export const app = createApp({
|
|
|
52
52
|
});
|
|
53
53
|
```
|
|
54
54
|
|
|
55
|
-
2. Next, enable your desired extensions in `app-config.yaml
|
|
55
|
+
2. Next, enable your desired extensions in `app-config.yaml`.
|
|
56
56
|
|
|
57
57
|
```yaml
|
|
58
58
|
app:
|
|
@@ -60,4 +60,14 @@ app:
|
|
|
60
60
|
- entity-content:kubernetes/kubernetes
|
|
61
61
|
```
|
|
62
62
|
|
|
63
|
-
Now, the extension appears on your entity page as one of the tabs, which is called `KUBERNETES
|
|
63
|
+
Now, the extension appears on your entity page as one of the tabs, which is called `KUBERNETES`.
|
|
64
|
+
By default, the tab will only appear on entities that are Components or Resources. You can override
|
|
65
|
+
that behavior by providing a config block to the extension, like so:
|
|
66
|
+
|
|
67
|
+
```yaml
|
|
68
|
+
app:
|
|
69
|
+
extensions:
|
|
70
|
+
- entity-content:kubernetes/kubernetes:
|
|
71
|
+
config:
|
|
72
|
+
filter: kind:component,api,resource,system
|
|
73
|
+
```
|
package/alpha/package.json
CHANGED
|
@@ -7,6 +7,7 @@ const entityKubernetesContent = EntityContentBlueprint.make({
|
|
|
7
7
|
params: {
|
|
8
8
|
defaultPath: "/kubernetes",
|
|
9
9
|
defaultTitle: "Kubernetes",
|
|
10
|
+
filter: "kind:component,resource",
|
|
10
11
|
loader: () => import('./KubernetesContentPage.esm.js').then(
|
|
11
12
|
(m) => compatWrapper(/* @__PURE__ */ React.createElement(m.KubernetesContentPage, null))
|
|
12
13
|
)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entityContents.esm.js","sources":["../../src/alpha/entityContents.tsx"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React from 'react';\nimport { compatWrapper } from '@backstage/core-compat-api';\nimport { EntityContentBlueprint } from '@backstage/plugin-catalog-react/alpha';\n\nexport const entityKubernetesContent = EntityContentBlueprint.make({\n name: 'kubernetes',\n params: {\n defaultPath: '/kubernetes',\n defaultTitle: 'Kubernetes',\n loader: () =>\n import('./KubernetesContentPage').then(m =>\n compatWrapper(<m.KubernetesContentPage />),\n ),\n },\n});\n"],"names":[],"mappings":";;;;AAoBa,MAAA,uBAAA,GAA0B,uBAAuB,IAAK,CAAA;AAAA,EACjE,IAAM,EAAA,YAAA;AAAA,EACN,MAAQ,EAAA;AAAA,IACN,WAAa,EAAA,aAAA;AAAA,IACb,YAAc,EAAA,YAAA;AAAA,IACd,MAAQ,EAAA,MACN,OAAO,gCAAyB,CAAE,CAAA,IAAA;AAAA,MAAK,OACrC,aAAc,iBAAA,KAAA,CAAA,aAAA,CAAC,CAAE,CAAA,qBAAA,EAAF,IAAwB,CAAE,CAAA;AAAA,KAC3C;AAAA,GACJ;AACF,CAAC;;;;"}
|
|
1
|
+
{"version":3,"file":"entityContents.esm.js","sources":["../../src/alpha/entityContents.tsx"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React from 'react';\nimport { compatWrapper } from '@backstage/core-compat-api';\nimport { EntityContentBlueprint } from '@backstage/plugin-catalog-react/alpha';\n\nexport const entityKubernetesContent = EntityContentBlueprint.make({\n name: 'kubernetes',\n params: {\n defaultPath: '/kubernetes',\n defaultTitle: 'Kubernetes',\n filter: 'kind:component,resource',\n loader: () =>\n import('./KubernetesContentPage').then(m =>\n compatWrapper(<m.KubernetesContentPage />),\n ),\n },\n});\n"],"names":[],"mappings":";;;;AAoBa,MAAA,uBAAA,GAA0B,uBAAuB,IAAK,CAAA;AAAA,EACjE,IAAM,EAAA,YAAA;AAAA,EACN,MAAQ,EAAA;AAAA,IACN,WAAa,EAAA,aAAA;AAAA,IACb,YAAc,EAAA,YAAA;AAAA,IACd,MAAQ,EAAA,yBAAA;AAAA,IACR,MAAQ,EAAA,MACN,OAAO,gCAAyB,CAAE,CAAA,IAAA;AAAA,MAAK,OACrC,aAAc,iBAAA,KAAA,CAAA,aAAA,CAAC,CAAE,CAAA,qBAAA,EAAF,IAAwB,CAAE,CAAA;AAAA,KAC3C;AAAA,GACJ;AACF,CAAC;;;;"}
|
package/dist/alpha.d.ts
CHANGED
|
@@ -6,50 +6,79 @@ import * as _backstage_frontend_plugin_api from '@backstage/frontend-plugin-api'
|
|
|
6
6
|
declare const _default: _backstage_frontend_plugin_api.BackstagePlugin<{
|
|
7
7
|
kubernetes: _backstage_frontend_plugin_api.RouteRef<undefined>;
|
|
8
8
|
}, {}, {
|
|
9
|
+
"api:kubernetes": _backstage_frontend_plugin_api.ExtensionDefinition<{
|
|
10
|
+
kind: "api";
|
|
11
|
+
namespace: undefined;
|
|
12
|
+
name: undefined;
|
|
13
|
+
config: {};
|
|
14
|
+
configInput: {};
|
|
15
|
+
output: _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<_backstage_frontend_plugin_api.AnyApiFactory, "core.api.factory", {}>;
|
|
16
|
+
inputs: {};
|
|
17
|
+
}>;
|
|
9
18
|
"page:kubernetes": _backstage_frontend_plugin_api.ExtensionDefinition<{
|
|
10
|
-
path: string | undefined;
|
|
11
|
-
}, {
|
|
12
|
-
path?: string | undefined;
|
|
13
|
-
}, _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<react.JSX.Element, "core.reactElement", {}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<string, "core.routing.path", {}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<_backstage_frontend_plugin_api.RouteRef<_backstage_frontend_plugin_api.AnyRouteRefParams>, "core.routing.ref", {
|
|
14
|
-
optional: true;
|
|
15
|
-
}>, {}, {
|
|
16
19
|
kind: "page";
|
|
17
20
|
namespace: undefined;
|
|
18
21
|
name: undefined;
|
|
22
|
+
config: {
|
|
23
|
+
path: string | undefined;
|
|
24
|
+
};
|
|
25
|
+
configInput: {
|
|
26
|
+
path?: string | undefined;
|
|
27
|
+
};
|
|
28
|
+
output: _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<react.JSX.Element, "core.reactElement", {}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<string, "core.routing.path", {}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<_backstage_frontend_plugin_api.RouteRef<_backstage_frontend_plugin_api.AnyRouteRefParams>, "core.routing.ref", {
|
|
29
|
+
optional: true;
|
|
30
|
+
}>;
|
|
31
|
+
inputs: {};
|
|
19
32
|
}>;
|
|
20
33
|
"entity-content:kubernetes/kubernetes": _backstage_frontend_plugin_api.ExtensionDefinition<{
|
|
21
|
-
path: string | undefined;
|
|
22
|
-
title: string | undefined;
|
|
23
|
-
filter: string | undefined;
|
|
24
|
-
}, {
|
|
25
|
-
filter?: string | undefined;
|
|
26
|
-
title?: string | undefined;
|
|
27
|
-
path?: string | undefined;
|
|
28
|
-
}, _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<react.JSX.Element, "core.reactElement", {}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<string, "core.routing.path", {}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<_backstage_frontend_plugin_api.RouteRef<_backstage_frontend_plugin_api.AnyRouteRefParams>, "core.routing.ref", {
|
|
29
|
-
optional: true;
|
|
30
|
-
}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<string, "catalog.entity-content-title", {}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<(entity: _backstage_catalog_model.Entity) => boolean, "catalog.entity-filter-function", {
|
|
31
|
-
optional: true;
|
|
32
|
-
}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<string, "catalog.entity-filter-expression", {
|
|
33
|
-
optional: true;
|
|
34
|
-
}>, {}, {
|
|
35
34
|
kind: "entity-content";
|
|
36
35
|
namespace: undefined;
|
|
37
36
|
name: "kubernetes";
|
|
37
|
+
config: {
|
|
38
|
+
path: string | undefined;
|
|
39
|
+
title: string | undefined;
|
|
40
|
+
filter: string | undefined;
|
|
41
|
+
};
|
|
42
|
+
configInput: {
|
|
43
|
+
filter?: string | undefined;
|
|
44
|
+
title?: string | undefined;
|
|
45
|
+
path?: string | undefined;
|
|
46
|
+
};
|
|
47
|
+
output: _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<react.JSX.Element, "core.reactElement", {}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<string, "core.routing.path", {}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<_backstage_frontend_plugin_api.RouteRef<_backstage_frontend_plugin_api.AnyRouteRefParams>, "core.routing.ref", {
|
|
48
|
+
optional: true;
|
|
49
|
+
}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<string, "catalog.entity-content-title", {}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<(entity: _backstage_catalog_model.Entity) => boolean, "catalog.entity-filter-function", {
|
|
50
|
+
optional: true;
|
|
51
|
+
}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<string, "catalog.entity-filter-expression", {
|
|
52
|
+
optional: true;
|
|
53
|
+
}>;
|
|
54
|
+
inputs: {};
|
|
38
55
|
}>;
|
|
39
|
-
"api:kubernetes/proxy": _backstage_frontend_plugin_api.ExtensionDefinition<{
|
|
56
|
+
"api:kubernetes/proxy": _backstage_frontend_plugin_api.ExtensionDefinition<{
|
|
40
57
|
kind: "api";
|
|
41
58
|
namespace: undefined;
|
|
42
59
|
name: "proxy";
|
|
60
|
+
config: {};
|
|
61
|
+
configInput: {};
|
|
62
|
+
output: _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<_backstage_frontend_plugin_api.AnyApiFactory, "core.api.factory", {}>;
|
|
63
|
+
inputs: {};
|
|
43
64
|
}>;
|
|
44
|
-
"api:kubernetes/auth-providers": _backstage_frontend_plugin_api.ExtensionDefinition<{
|
|
65
|
+
"api:kubernetes/auth-providers": _backstage_frontend_plugin_api.ExtensionDefinition<{
|
|
45
66
|
kind: "api";
|
|
46
67
|
namespace: undefined;
|
|
47
68
|
name: "auth-providers";
|
|
69
|
+
config: {};
|
|
70
|
+
configInput: {};
|
|
71
|
+
output: _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<_backstage_frontend_plugin_api.AnyApiFactory, "core.api.factory", {}>;
|
|
72
|
+
inputs: {};
|
|
48
73
|
}>;
|
|
49
|
-
"api:kubernetes/cluster-link-formatter": _backstage_frontend_plugin_api.ExtensionDefinition<{
|
|
74
|
+
"api:kubernetes/cluster-link-formatter": _backstage_frontend_plugin_api.ExtensionDefinition<{
|
|
50
75
|
kind: "api";
|
|
51
76
|
namespace: undefined;
|
|
52
77
|
name: "cluster-link-formatter";
|
|
78
|
+
config: {};
|
|
79
|
+
configInput: {};
|
|
80
|
+
output: _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<_backstage_frontend_plugin_api.AnyApiFactory, "core.api.factory", {}>;
|
|
81
|
+
inputs: {};
|
|
53
82
|
}>;
|
|
54
83
|
}>;
|
|
55
84
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-kubernetes",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.14-next.0",
|
|
4
4
|
"description": "A Backstage plugin that integrates towards Kubernetes",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "frontend-plugin",
|
|
@@ -58,11 +58,11 @@
|
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
60
|
"@backstage/catalog-model": "^1.6.0",
|
|
61
|
-
"@backstage/core-compat-api": "^0.2.
|
|
61
|
+
"@backstage/core-compat-api": "^0.2.9-next.0",
|
|
62
62
|
"@backstage/core-components": "^0.14.10",
|
|
63
63
|
"@backstage/core-plugin-api": "^1.9.3",
|
|
64
|
-
"@backstage/frontend-plugin-api": "^0.
|
|
65
|
-
"@backstage/plugin-catalog-react": "^1.12.
|
|
64
|
+
"@backstage/frontend-plugin-api": "^0.8.0-next.0",
|
|
65
|
+
"@backstage/plugin-catalog-react": "^1.12.4-next.0",
|
|
66
66
|
"@backstage/plugin-kubernetes-common": "^0.8.2",
|
|
67
67
|
"@backstage/plugin-kubernetes-react": "^0.4.2",
|
|
68
68
|
"@kubernetes-models/apimachinery": "^1.1.0",
|
|
@@ -80,9 +80,9 @@
|
|
|
80
80
|
"xterm-addon-fit": "^0.8.0"
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
|
83
|
-
"@backstage/cli": "^0.27.0",
|
|
84
|
-
"@backstage/dev-utils": "^1.0.
|
|
85
|
-
"@backstage/test-utils": "^1.
|
|
83
|
+
"@backstage/cli": "^0.27.1-next.0",
|
|
84
|
+
"@backstage/dev-utils": "^1.0.38-next.0",
|
|
85
|
+
"@backstage/test-utils": "^1.6.0-next.0",
|
|
86
86
|
"@testing-library/dom": "^10.0.0",
|
|
87
87
|
"@testing-library/jest-dom": "^6.0.0",
|
|
88
88
|
"@testing-library/react": "^15.0.0"
|