@backstage/plugin-kubernetes 0.12.10-next.0 → 0.12.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 +32 -0
- package/dist/alpha/apis.esm.js +61 -69
- package/dist/alpha/apis.esm.js.map +1 -1
- package/dist/alpha/entityContents.esm.js +3 -3
- package/dist/alpha/entityContents.esm.js.map +1 -1
- package/dist/alpha/pages.esm.js +1 -1
- package/dist/alpha/pages.esm.js.map +1 -1
- package/dist/alpha.d.ts +21 -25
- package/dist/package.json.esm.js +1 -1
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,37 @@
|
|
|
1
1
|
# @backstage/plugin-kubernetes
|
|
2
2
|
|
|
3
|
+
## 0.12.10-next.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- e4ddf22: Internal update to align with new blueprint parameter naming in the new frontend system.
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @backstage/frontend-plugin-api@0.11.0-next.1
|
|
10
|
+
- @backstage/core-compat-api@0.5.0-next.2
|
|
11
|
+
- @backstage/plugin-catalog-react@1.20.0-next.2
|
|
12
|
+
- @backstage/core-components@0.17.5-next.1
|
|
13
|
+
- @backstage/catalog-model@1.7.5
|
|
14
|
+
- @backstage/core-plugin-api@1.10.9
|
|
15
|
+
- @backstage/plugin-kubernetes-common@0.9.6
|
|
16
|
+
- @backstage/plugin-kubernetes-react@0.5.10-next.0
|
|
17
|
+
- @backstage/plugin-permission-react@0.4.36
|
|
18
|
+
|
|
19
|
+
## 0.12.10-next.1
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- f2f133c: Internal update to use the new variant of `ApiBlueprint`.
|
|
24
|
+
- Updated dependencies
|
|
25
|
+
- @backstage/core-compat-api@0.4.5-next.1
|
|
26
|
+
- @backstage/plugin-catalog-react@1.20.0-next.1
|
|
27
|
+
- @backstage/frontend-plugin-api@0.11.0-next.0
|
|
28
|
+
- @backstage/core-components@0.17.5-next.0
|
|
29
|
+
- @backstage/catalog-model@1.7.5
|
|
30
|
+
- @backstage/core-plugin-api@1.10.9
|
|
31
|
+
- @backstage/plugin-kubernetes-common@0.9.6
|
|
32
|
+
- @backstage/plugin-kubernetes-react@0.5.10-next.0
|
|
33
|
+
- @backstage/plugin-permission-react@0.4.36
|
|
34
|
+
|
|
3
35
|
## 0.12.10-next.0
|
|
4
36
|
|
|
5
37
|
### Patch Changes
|
package/dist/alpha/apis.esm.js
CHANGED
|
@@ -1,88 +1,80 @@
|
|
|
1
|
-
import { ApiBlueprint,
|
|
1
|
+
import { ApiBlueprint, discoveryApiRef, fetchApiRef } from '@backstage/frontend-plugin-api';
|
|
2
2
|
import { kubernetesApiRef, kubernetesAuthProvidersApiRef, KubernetesBackendClient, kubernetesProxyApiRef, KubernetesProxyClient, KubernetesAuthProviders, kubernetesClusterLinkFormatterApiRef, getDefaultFormatters, KubernetesClusterLinkFormatter, DEFAULT_FORMATTER_NAME } from '@backstage/plugin-kubernetes-react';
|
|
3
3
|
import { gitlabAuthApiRef, googleAuthApiRef, microsoftAuthApiRef, oktaAuthApiRef, oneloginAuthApiRef } from '@backstage/core-plugin-api';
|
|
4
4
|
|
|
5
5
|
const kubernetesApiExtension = ApiBlueprint.make({
|
|
6
|
-
params: {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
kubernetesAuthProvidersApi: kubernetesAuthProvidersApi2
|
|
18
|
-
})
|
|
6
|
+
params: (defineParams) => defineParams({
|
|
7
|
+
api: kubernetesApiRef,
|
|
8
|
+
deps: {
|
|
9
|
+
discoveryApi: discoveryApiRef,
|
|
10
|
+
fetchApi: fetchApiRef,
|
|
11
|
+
kubernetesAuthProvidersApi: kubernetesAuthProvidersApiRef
|
|
12
|
+
},
|
|
13
|
+
factory: ({ discoveryApi, fetchApi, kubernetesAuthProvidersApi: kubernetesAuthProvidersApi2 }) => new KubernetesBackendClient({
|
|
14
|
+
discoveryApi,
|
|
15
|
+
fetchApi,
|
|
16
|
+
kubernetesAuthProvidersApi: kubernetesAuthProvidersApi2
|
|
19
17
|
})
|
|
20
|
-
}
|
|
18
|
+
})
|
|
21
19
|
});
|
|
22
20
|
const kubernetesProxyApi = ApiBlueprint.make({
|
|
23
21
|
name: "proxy",
|
|
24
|
-
params: {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
kubernetesApi
|
|
32
|
-
})
|
|
22
|
+
params: (defineParams) => defineParams({
|
|
23
|
+
api: kubernetesProxyApiRef,
|
|
24
|
+
deps: {
|
|
25
|
+
kubernetesApi: kubernetesApiRef
|
|
26
|
+
},
|
|
27
|
+
factory: ({ kubernetesApi }) => new KubernetesProxyClient({
|
|
28
|
+
kubernetesApi
|
|
33
29
|
})
|
|
34
|
-
}
|
|
30
|
+
})
|
|
35
31
|
});
|
|
36
32
|
const kubernetesAuthProvidersApi = ApiBlueprint.make({
|
|
37
33
|
name: "auth-providers",
|
|
38
|
-
params: {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
34
|
+
params: (defineParams) => defineParams({
|
|
35
|
+
api: kubernetesAuthProvidersApiRef,
|
|
36
|
+
deps: {
|
|
37
|
+
gitlabAuthApi: gitlabAuthApiRef,
|
|
38
|
+
googleAuthApi: googleAuthApiRef,
|
|
39
|
+
microsoftAuthApi: microsoftAuthApiRef,
|
|
40
|
+
oktaAuthApi: oktaAuthApiRef,
|
|
41
|
+
oneloginAuthApi: oneloginAuthApiRef
|
|
42
|
+
},
|
|
43
|
+
factory: ({
|
|
44
|
+
gitlabAuthApi,
|
|
45
|
+
googleAuthApi,
|
|
46
|
+
microsoftAuthApi,
|
|
47
|
+
oktaAuthApi,
|
|
48
|
+
oneloginAuthApi
|
|
49
|
+
}) => {
|
|
50
|
+
const oidcProviders = {
|
|
51
|
+
gitlab: gitlabAuthApi,
|
|
52
|
+
google: googleAuthApi,
|
|
53
|
+
microsoft: microsoftAuthApi,
|
|
54
|
+
okta: oktaAuthApi,
|
|
55
|
+
onelogin: oneloginAuthApi
|
|
56
|
+
};
|
|
57
|
+
return new KubernetesAuthProviders({
|
|
51
58
|
microsoftAuthApi,
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
})
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
google: googleAuthApi,
|
|
58
|
-
microsoft: microsoftAuthApi,
|
|
59
|
-
okta: oktaAuthApi,
|
|
60
|
-
onelogin: oneloginAuthApi
|
|
61
|
-
};
|
|
62
|
-
return new KubernetesAuthProviders({
|
|
63
|
-
microsoftAuthApi,
|
|
64
|
-
googleAuthApi,
|
|
65
|
-
oidcProviders
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
})
|
|
69
|
-
}
|
|
59
|
+
googleAuthApi,
|
|
60
|
+
oidcProviders
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
})
|
|
70
64
|
});
|
|
71
65
|
const kubernetesClusterLinkFormatterApi = ApiBlueprint.make({
|
|
72
66
|
name: "cluster-link-formatter",
|
|
73
|
-
params: {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
})
|
|
85
|
-
}
|
|
67
|
+
params: (defineParams) => defineParams({
|
|
68
|
+
api: kubernetesClusterLinkFormatterApiRef,
|
|
69
|
+
deps: { googleAuthApi: googleAuthApiRef },
|
|
70
|
+
factory: (deps) => {
|
|
71
|
+
const formatters = getDefaultFormatters(deps);
|
|
72
|
+
return new KubernetesClusterLinkFormatter({
|
|
73
|
+
formatters,
|
|
74
|
+
defaultFormatterName: DEFAULT_FORMATTER_NAME
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
})
|
|
86
78
|
});
|
|
87
79
|
|
|
88
80
|
export { kubernetesApiExtension, kubernetesAuthProvidersApi, kubernetesClusterLinkFormatterApi, kubernetesProxyApi };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apis.esm.js","sources":["../../src/alpha/apis.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 {\n ApiBlueprint,\n
|
|
1
|
+
{"version":3,"file":"apis.esm.js","sources":["../../src/alpha/apis.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 {\n ApiBlueprint,\n discoveryApiRef,\n fetchApiRef,\n} from '@backstage/frontend-plugin-api';\nimport {\n KubernetesBackendClient,\n kubernetesApiRef,\n kubernetesProxyApiRef,\n kubernetesAuthProvidersApiRef,\n KubernetesAuthProviders,\n KubernetesProxyClient,\n kubernetesClusterLinkFormatterApiRef,\n getDefaultFormatters,\n KubernetesClusterLinkFormatter,\n DEFAULT_FORMATTER_NAME,\n} from '@backstage/plugin-kubernetes-react';\nimport {\n gitlabAuthApiRef,\n googleAuthApiRef,\n microsoftAuthApiRef,\n oktaAuthApiRef,\n oneloginAuthApiRef,\n} from '@backstage/core-plugin-api';\n\nexport const kubernetesApiExtension = ApiBlueprint.make({\n params: defineParams =>\n defineParams({\n api: kubernetesApiRef,\n deps: {\n discoveryApi: discoveryApiRef,\n fetchApi: fetchApiRef,\n kubernetesAuthProvidersApi: kubernetesAuthProvidersApiRef,\n },\n factory: ({ discoveryApi, fetchApi, kubernetesAuthProvidersApi }) =>\n new KubernetesBackendClient({\n discoveryApi,\n fetchApi,\n kubernetesAuthProvidersApi,\n }),\n }),\n});\n\nexport const kubernetesProxyApi = ApiBlueprint.make({\n name: 'proxy',\n params: defineParams =>\n defineParams({\n api: kubernetesProxyApiRef,\n deps: {\n kubernetesApi: kubernetesApiRef,\n },\n factory: ({ kubernetesApi }) =>\n new KubernetesProxyClient({\n kubernetesApi,\n }),\n }),\n});\n\nexport const kubernetesAuthProvidersApi = ApiBlueprint.make({\n name: 'auth-providers',\n params: defineParams =>\n defineParams({\n api: kubernetesAuthProvidersApiRef,\n deps: {\n gitlabAuthApi: gitlabAuthApiRef,\n googleAuthApi: googleAuthApiRef,\n microsoftAuthApi: microsoftAuthApiRef,\n oktaAuthApi: oktaAuthApiRef,\n oneloginAuthApi: oneloginAuthApiRef,\n },\n factory: ({\n gitlabAuthApi,\n googleAuthApi,\n microsoftAuthApi,\n oktaAuthApi,\n oneloginAuthApi,\n }) => {\n const oidcProviders = {\n gitlab: gitlabAuthApi,\n google: googleAuthApi,\n microsoft: microsoftAuthApi,\n okta: oktaAuthApi,\n onelogin: oneloginAuthApi,\n };\n\n return new KubernetesAuthProviders({\n microsoftAuthApi,\n googleAuthApi,\n oidcProviders,\n });\n },\n }),\n});\n\nexport const kubernetesClusterLinkFormatterApi = ApiBlueprint.make({\n name: 'cluster-link-formatter',\n params: defineParams =>\n defineParams({\n api: kubernetesClusterLinkFormatterApiRef,\n deps: { googleAuthApi: googleAuthApiRef },\n factory: deps => {\n const formatters = getDefaultFormatters(deps);\n return new KubernetesClusterLinkFormatter({\n formatters,\n defaultFormatterName: DEFAULT_FORMATTER_NAME,\n });\n },\n }),\n});\n"],"names":["kubernetesAuthProvidersApi"],"mappings":";;;;AAyCa,MAAA,sBAAA,GAAyB,aAAa,IAAK,CAAA;AAAA,EACtD,MAAA,EAAQ,kBACN,YAAa,CAAA;AAAA,IACX,GAAK,EAAA,gBAAA;AAAA,IACL,IAAM,EAAA;AAAA,MACJ,YAAc,EAAA,eAAA;AAAA,MACd,QAAU,EAAA,WAAA;AAAA,MACV,0BAA4B,EAAA;AAAA,KAC9B;AAAA,IACA,OAAA,EAAS,CAAC,EAAE,YAAA,EAAc,UAAU,0BAAAA,EAAAA,2BAAAA,EAClC,KAAA,IAAI,uBAAwB,CAAA;AAAA,MAC1B,YAAA;AAAA,MACA,QAAA;AAAA,MACA,0BAAAA,EAAAA;AAAA,KACD;AAAA,GACJ;AACL,CAAC;AAEY,MAAA,kBAAA,GAAqB,aAAa,IAAK,CAAA;AAAA,EAClD,IAAM,EAAA,OAAA;AAAA,EACN,MAAA,EAAQ,kBACN,YAAa,CAAA;AAAA,IACX,GAAK,EAAA,qBAAA;AAAA,IACL,IAAM,EAAA;AAAA,MACJ,aAAe,EAAA;AAAA,KACjB;AAAA,IACA,SAAS,CAAC,EAAE,aAAc,EAAA,KACxB,IAAI,qBAAsB,CAAA;AAAA,MACxB;AAAA,KACD;AAAA,GACJ;AACL,CAAC;AAEY,MAAA,0BAAA,GAA6B,aAAa,IAAK,CAAA;AAAA,EAC1D,IAAM,EAAA,gBAAA;AAAA,EACN,MAAA,EAAQ,kBACN,YAAa,CAAA;AAAA,IACX,GAAK,EAAA,6BAAA;AAAA,IACL,IAAM,EAAA;AAAA,MACJ,aAAe,EAAA,gBAAA;AAAA,MACf,aAAe,EAAA,gBAAA;AAAA,MACf,gBAAkB,EAAA,mBAAA;AAAA,MAClB,WAAa,EAAA,cAAA;AAAA,MACb,eAAiB,EAAA;AAAA,KACnB;AAAA,IACA,SAAS,CAAC;AAAA,MACR,aAAA;AAAA,MACA,aAAA;AAAA,MACA,gBAAA;AAAA,MACA,WAAA;AAAA,MACA;AAAA,KACI,KAAA;AACJ,MAAA,MAAM,aAAgB,GAAA;AAAA,QACpB,MAAQ,EAAA,aAAA;AAAA,QACR,MAAQ,EAAA,aAAA;AAAA,QACR,SAAW,EAAA,gBAAA;AAAA,QACX,IAAM,EAAA,WAAA;AAAA,QACN,QAAU,EAAA;AAAA,OACZ;AAEA,MAAA,OAAO,IAAI,uBAAwB,CAAA;AAAA,QACjC,gBAAA;AAAA,QACA,aAAA;AAAA,QACA;AAAA,OACD,CAAA;AAAA;AACH,GACD;AACL,CAAC;AAEY,MAAA,iCAAA,GAAoC,aAAa,IAAK,CAAA;AAAA,EACjE,IAAM,EAAA,wBAAA;AAAA,EACN,MAAA,EAAQ,kBACN,YAAa,CAAA;AAAA,IACX,GAAK,EAAA,oCAAA;AAAA,IACL,IAAA,EAAM,EAAE,aAAA,EAAe,gBAAiB,EAAA;AAAA,IACxC,SAAS,CAAQ,IAAA,KAAA;AACf,MAAM,MAAA,UAAA,GAAa,qBAAqB,IAAI,CAAA;AAC5C,MAAA,OAAO,IAAI,8BAA+B,CAAA;AAAA,QACxC,UAAA;AAAA,QACA,oBAAsB,EAAA;AAAA,OACvB,CAAA;AAAA;AACH,GACD;AACL,CAAC;;;;"}
|
|
@@ -6,9 +6,9 @@ import { isKubernetesAvailable } from '../Router.esm.js';
|
|
|
6
6
|
const entityKubernetesContent = EntityContentBlueprint.make({
|
|
7
7
|
name: "kubernetes",
|
|
8
8
|
params: {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
path: "/kubernetes",
|
|
10
|
+
title: "Kubernetes",
|
|
11
|
+
group: "deployment",
|
|
12
12
|
filter: isKubernetesAvailable,
|
|
13
13
|
loader: () => import('./KubernetesContentPage.esm.js').then(
|
|
14
14
|
(m) => compatWrapper(/* @__PURE__ */ jsx(m.KubernetesContentPage, {}))
|
|
@@ -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 { compatWrapper } from '@backstage/core-compat-api';\nimport { EntityContentBlueprint } from '@backstage/plugin-catalog-react/alpha';\nimport { isKubernetesAvailable } from '../Router';\n\nexport const entityKubernetesContent = EntityContentBlueprint.make({\n name: 'kubernetes',\n params: {\n
|
|
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 { compatWrapper } from '@backstage/core-compat-api';\nimport { EntityContentBlueprint } from '@backstage/plugin-catalog-react/alpha';\nimport { isKubernetesAvailable } from '../Router';\n\nexport const entityKubernetesContent = EntityContentBlueprint.make({\n name: 'kubernetes',\n params: {\n path: '/kubernetes',\n title: 'Kubernetes',\n group: 'deployment',\n filter: isKubernetesAvailable,\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,IAAM,EAAA,aAAA;AAAA,IACN,KAAO,EAAA,YAAA;AAAA,IACP,KAAO,EAAA,YAAA;AAAA,IACP,MAAQ,EAAA,qBAAA;AAAA,IACR,MAAQ,EAAA,MACN,OAAO,gCAAyB,CAAE,CAAA,IAAA;AAAA,MAAK,OACrC,aAAc,iBAAA,GAAA,CAAC,CAAE,CAAA,qBAAA,EAAF,EAAwB,CAAE;AAAA;AAC3C;AAEN,CAAC;;;;"}
|
package/dist/alpha/pages.esm.js
CHANGED
|
@@ -5,7 +5,7 @@ import { rootCatalogKubernetesRouteRef } from '../plugin.esm.js';
|
|
|
5
5
|
|
|
6
6
|
const kubernetesPage = PageBlueprint.make({
|
|
7
7
|
params: {
|
|
8
|
-
|
|
8
|
+
path: "/kubernetes",
|
|
9
9
|
// you can reuse the existing routeRef
|
|
10
10
|
// by wrapping into the convertLegacyRouteRef.
|
|
11
11
|
routeRef: convertLegacyRouteRef(rootCatalogKubernetesRouteRef),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pages.esm.js","sources":["../../src/alpha/pages.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 { PageBlueprint } from '@backstage/frontend-plugin-api'; // Add this line to import React\nimport {\n compatWrapper,\n convertLegacyRouteRef,\n} from '@backstage/core-compat-api';\nimport { rootCatalogKubernetesRouteRef } from '../plugin';\n\nexport const kubernetesPage = PageBlueprint.make({\n params: {\n
|
|
1
|
+
{"version":3,"file":"pages.esm.js","sources":["../../src/alpha/pages.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 { PageBlueprint } from '@backstage/frontend-plugin-api'; // Add this line to import React\nimport {\n compatWrapper,\n convertLegacyRouteRef,\n} from '@backstage/core-compat-api';\nimport { rootCatalogKubernetesRouteRef } from '../plugin';\n\nexport const kubernetesPage = PageBlueprint.make({\n params: {\n path: '/kubernetes',\n // you can reuse the existing routeRef\n // by wrapping into the convertLegacyRouteRef.\n routeRef: convertLegacyRouteRef(rootCatalogKubernetesRouteRef),\n // these inputs usually match the props required by the component.\n loader: () => import('../Router').then(m => compatWrapper(<m.Router />)),\n },\n});\n"],"names":[],"mappings":";;;;;AAuBa,MAAA,cAAA,GAAiB,cAAc,IAAK,CAAA;AAAA,EAC/C,MAAQ,EAAA;AAAA,IACN,IAAM,EAAA,aAAA;AAAA;AAAA;AAAA,IAGN,QAAA,EAAU,sBAAsB,6BAA6B,CAAA;AAAA;AAAA,IAE7D,MAAQ,EAAA,MAAM,OAAO,kBAAW,CAAE,CAAA,IAAA,CAAK,CAAK,CAAA,KAAA,aAAA,iBAAe,GAAA,CAAA,CAAA,CAAE,MAAF,EAAA,EAAS,CAAE,CAAC;AAAA;AAE3E,CAAC;;;;"}
|
package/dist/alpha.d.ts
CHANGED
|
@@ -18,44 +18,36 @@ declare const _default: _backstage_frontend_plugin_api.FrontendPlugin<{
|
|
|
18
18
|
name: undefined;
|
|
19
19
|
config: {};
|
|
20
20
|
configInput: {};
|
|
21
|
-
output: _backstage_frontend_plugin_api.
|
|
21
|
+
output: _backstage_frontend_plugin_api.ExtensionDataRef<_backstage_frontend_plugin_api.AnyApiFactory, "core.api.factory", {}>;
|
|
22
22
|
inputs: {};
|
|
23
|
-
params: {
|
|
24
|
-
factory: _backstage_frontend_plugin_api.AnyApiFactory;
|
|
25
|
-
};
|
|
23
|
+
params: <TApi, TImpl extends TApi, TDeps extends { [name in string]: unknown; }>(params: _backstage_frontend_plugin_api.ApiFactory<TApi, TImpl, TDeps>) => _backstage_frontend_plugin_api.ExtensionBlueprintParams<_backstage_frontend_plugin_api.AnyApiFactory>;
|
|
26
24
|
}>;
|
|
27
25
|
"api:kubernetes/auth-providers": _backstage_frontend_plugin_api.ExtensionDefinition<{
|
|
28
26
|
kind: "api";
|
|
29
27
|
name: "auth-providers";
|
|
30
28
|
config: {};
|
|
31
29
|
configInput: {};
|
|
32
|
-
output: _backstage_frontend_plugin_api.
|
|
30
|
+
output: _backstage_frontend_plugin_api.ExtensionDataRef<_backstage_frontend_plugin_api.AnyApiFactory, "core.api.factory", {}>;
|
|
33
31
|
inputs: {};
|
|
34
|
-
params: {
|
|
35
|
-
factory: _backstage_frontend_plugin_api.AnyApiFactory;
|
|
36
|
-
};
|
|
32
|
+
params: <TApi, TImpl extends TApi, TDeps extends { [name in string]: unknown; }>(params: _backstage_frontend_plugin_api.ApiFactory<TApi, TImpl, TDeps>) => _backstage_frontend_plugin_api.ExtensionBlueprintParams<_backstage_frontend_plugin_api.AnyApiFactory>;
|
|
37
33
|
}>;
|
|
38
34
|
"api:kubernetes/cluster-link-formatter": _backstage_frontend_plugin_api.ExtensionDefinition<{
|
|
39
35
|
kind: "api";
|
|
40
36
|
name: "cluster-link-formatter";
|
|
41
37
|
config: {};
|
|
42
38
|
configInput: {};
|
|
43
|
-
output: _backstage_frontend_plugin_api.
|
|
39
|
+
output: _backstage_frontend_plugin_api.ExtensionDataRef<_backstage_frontend_plugin_api.AnyApiFactory, "core.api.factory", {}>;
|
|
44
40
|
inputs: {};
|
|
45
|
-
params: {
|
|
46
|
-
factory: _backstage_frontend_plugin_api.AnyApiFactory;
|
|
47
|
-
};
|
|
41
|
+
params: <TApi, TImpl extends TApi, TDeps extends { [name in string]: unknown; }>(params: _backstage_frontend_plugin_api.ApiFactory<TApi, TImpl, TDeps>) => _backstage_frontend_plugin_api.ExtensionBlueprintParams<_backstage_frontend_plugin_api.AnyApiFactory>;
|
|
48
42
|
}>;
|
|
49
43
|
"api:kubernetes/proxy": _backstage_frontend_plugin_api.ExtensionDefinition<{
|
|
50
44
|
kind: "api";
|
|
51
45
|
name: "proxy";
|
|
52
46
|
config: {};
|
|
53
47
|
configInput: {};
|
|
54
|
-
output: _backstage_frontend_plugin_api.
|
|
48
|
+
output: _backstage_frontend_plugin_api.ExtensionDataRef<_backstage_frontend_plugin_api.AnyApiFactory, "core.api.factory", {}>;
|
|
55
49
|
inputs: {};
|
|
56
|
-
params: {
|
|
57
|
-
factory: _backstage_frontend_plugin_api.AnyApiFactory;
|
|
58
|
-
};
|
|
50
|
+
params: <TApi, TImpl extends TApi, TDeps extends { [name in string]: unknown; }>(params: _backstage_frontend_plugin_api.ApiFactory<TApi, TImpl, TDeps>) => _backstage_frontend_plugin_api.ExtensionBlueprintParams<_backstage_frontend_plugin_api.AnyApiFactory>;
|
|
59
51
|
}>;
|
|
60
52
|
"entity-content:kubernetes/kubernetes": _backstage_frontend_plugin_api.ExtensionDefinition<{
|
|
61
53
|
kind: "entity-content";
|
|
@@ -72,21 +64,24 @@ declare const _default: _backstage_frontend_plugin_api.FrontendPlugin<{
|
|
|
72
64
|
path?: string | undefined;
|
|
73
65
|
group?: string | false | undefined;
|
|
74
66
|
};
|
|
75
|
-
output: _backstage_frontend_plugin_api.
|
|
67
|
+
output: _backstage_frontend_plugin_api.ExtensionDataRef<string, "core.routing.path", {}> | _backstage_frontend_plugin_api.ExtensionDataRef<react.JSX.Element, "core.reactElement", {}> | _backstage_frontend_plugin_api.ExtensionDataRef<_backstage_frontend_plugin_api.RouteRef<_backstage_frontend_plugin_api.AnyRouteRefParams>, "core.routing.ref", {
|
|
76
68
|
optional: true;
|
|
77
|
-
}> | _backstage_frontend_plugin_api.
|
|
69
|
+
}> | _backstage_frontend_plugin_api.ExtensionDataRef<(entity: _backstage_catalog_model.Entity) => boolean, "catalog.entity-filter-function", {
|
|
78
70
|
optional: true;
|
|
79
|
-
}> | _backstage_frontend_plugin_api.
|
|
71
|
+
}> | _backstage_frontend_plugin_api.ExtensionDataRef<string, "catalog.entity-filter-expression", {
|
|
80
72
|
optional: true;
|
|
81
|
-
}> | _backstage_frontend_plugin_api.
|
|
73
|
+
}> | _backstage_frontend_plugin_api.ExtensionDataRef<string, "catalog.entity-content-title", {}> | _backstage_frontend_plugin_api.ExtensionDataRef<string, "catalog.entity-content-group", {
|
|
82
74
|
optional: true;
|
|
83
75
|
}>;
|
|
84
76
|
inputs: {};
|
|
85
77
|
params: {
|
|
78
|
+
defaultPath?: [Error: `Use the 'path' param instead`];
|
|
79
|
+
path: string;
|
|
80
|
+
defaultTitle?: [Error: `Use the 'title' param instead`];
|
|
81
|
+
title: string;
|
|
82
|
+
defaultGroup?: [Error: `Use the 'group' param instead`];
|
|
83
|
+
group?: keyof typeof _backstage_plugin_catalog_react_alpha.defaultEntityContentGroups | (string & {});
|
|
86
84
|
loader: () => Promise<JSX.Element>;
|
|
87
|
-
defaultPath: string;
|
|
88
|
-
defaultTitle: string;
|
|
89
|
-
defaultGroup?: keyof typeof _backstage_plugin_catalog_react_alpha.defaultEntityContentGroups | (string & {});
|
|
90
85
|
routeRef?: _backstage_frontend_plugin_api.RouteRef;
|
|
91
86
|
filter?: string | _backstage_plugin_catalog_react_alpha.EntityPredicate | ((entity: _backstage_catalog_model.Entity) => boolean);
|
|
92
87
|
};
|
|
@@ -100,12 +95,13 @@ declare const _default: _backstage_frontend_plugin_api.FrontendPlugin<{
|
|
|
100
95
|
configInput: {
|
|
101
96
|
path?: string | undefined;
|
|
102
97
|
};
|
|
103
|
-
output: _backstage_frontend_plugin_api.
|
|
98
|
+
output: _backstage_frontend_plugin_api.ExtensionDataRef<string, "core.routing.path", {}> | _backstage_frontend_plugin_api.ExtensionDataRef<react.JSX.Element, "core.reactElement", {}> | _backstage_frontend_plugin_api.ExtensionDataRef<_backstage_frontend_plugin_api.RouteRef<_backstage_frontend_plugin_api.AnyRouteRefParams>, "core.routing.ref", {
|
|
104
99
|
optional: true;
|
|
105
100
|
}>;
|
|
106
101
|
inputs: {};
|
|
107
102
|
params: {
|
|
108
|
-
defaultPath:
|
|
103
|
+
defaultPath?: [Error: `Use the 'path' param instead`];
|
|
104
|
+
path: string;
|
|
109
105
|
loader: () => Promise<JSX.Element>;
|
|
110
106
|
routeRef?: _backstage_frontend_plugin_api.RouteRef;
|
|
111
107
|
};
|
package/dist/package.json.esm.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-kubernetes",
|
|
3
|
-
"version": "0.12.10-next.
|
|
3
|
+
"version": "0.12.10-next.2",
|
|
4
4
|
"description": "A Backstage plugin that integrates towards Kubernetes",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "frontend-plugin",
|
|
@@ -71,13 +71,13 @@
|
|
|
71
71
|
},
|
|
72
72
|
"dependencies": {
|
|
73
73
|
"@backstage/catalog-model": "1.7.5",
|
|
74
|
-
"@backstage/core-compat-api": "0.
|
|
75
|
-
"@backstage/core-components": "0.17.
|
|
74
|
+
"@backstage/core-compat-api": "0.5.0-next.2",
|
|
75
|
+
"@backstage/core-components": "0.17.5-next.1",
|
|
76
76
|
"@backstage/core-plugin-api": "1.10.9",
|
|
77
|
-
"@backstage/frontend-plugin-api": "0.
|
|
78
|
-
"@backstage/plugin-catalog-react": "1.
|
|
77
|
+
"@backstage/frontend-plugin-api": "0.11.0-next.1",
|
|
78
|
+
"@backstage/plugin-catalog-react": "1.20.0-next.2",
|
|
79
79
|
"@backstage/plugin-kubernetes-common": "0.9.6",
|
|
80
|
-
"@backstage/plugin-kubernetes-react": "0.5.
|
|
80
|
+
"@backstage/plugin-kubernetes-react": "0.5.10-next.0",
|
|
81
81
|
"@backstage/plugin-permission-react": "0.4.36",
|
|
82
82
|
"@kubernetes-models/apimachinery": "^2.0.0",
|
|
83
83
|
"@kubernetes-models/base": "^5.0.0",
|
|
@@ -93,9 +93,9 @@
|
|
|
93
93
|
"luxon": "^3.0.0"
|
|
94
94
|
},
|
|
95
95
|
"devDependencies": {
|
|
96
|
-
"@backstage/cli": "0.
|
|
97
|
-
"@backstage/dev-utils": "1.1.13-next.
|
|
98
|
-
"@backstage/test-utils": "1.7.
|
|
96
|
+
"@backstage/cli": "0.34.0-next.1",
|
|
97
|
+
"@backstage/dev-utils": "1.1.13-next.1",
|
|
98
|
+
"@backstage/test-utils": "1.7.11-next.0",
|
|
99
99
|
"@testing-library/dom": "^10.0.0",
|
|
100
100
|
"@testing-library/jest-dom": "^6.0.0",
|
|
101
101
|
"@testing-library/react": "^16.0.0",
|