@prorobotech/openapi-k8s-toolkit 0.0.1-alpha.77 → 0.0.1-alpha.78
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/dist/openapi-k8s-toolkit.es.js +29 -4
- package/dist/openapi-k8s-toolkit.es.js.map +1 -1
- package/dist/openapi-k8s-toolkit.umd.js +29 -4
- package/dist/openapi-k8s-toolkit.umd.js.map +1 -1
- package/dist/types/components/molecules/Terminals/PodLogsMonaco/PodLogsMonaco.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PodLogs/utils.d.ts +7 -1
- package/package.json +1 -1
|
@@ -8405,7 +8405,7 @@ const ResumeCircleIcon = () => {
|
|
|
8405
8405
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("svg", { width: "35", height: "35", viewBox: "0 0 35 35", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
8406
8406
|
"path",
|
|
8407
8407
|
{
|
|
8408
|
-
d: "
|
|
8408
|
+
d: "M17.5 0C7.83594 0 0 7.83594 0 17.5C0 27.1641 7.83594 35 17.5 35C27.1641 35 35 27.1641 35 17.5C35 7.83594 27.1641 0 17.5 0ZM23.1289 17.7695L14.5977 23.9766C14.5509 24.0102 14.4958 24.0302 14.4383 24.0346C14.3809 24.0389 14.3234 24.0273 14.2721 24.001C14.2208 23.9748 14.1778 23.9349 14.1477 23.8858C14.1176 23.8367 14.1017 23.7803 14.1016 23.7227V11.3164C14.1014 11.2587 14.1172 11.2021 14.1472 11.1528C14.1772 11.1035 14.2203 11.0635 14.2717 11.0372C14.3231 11.0109 14.3807 10.9994 14.4382 11.0038C14.4958 11.0083 14.551 11.0286 14.5977 11.0625L23.1289 17.2656C23.1692 17.2941 23.2021 17.3319 23.2248 17.3757C23.2475 17.4196 23.2593 17.4682 23.2593 17.5176C23.2593 17.5669 23.2475 17.6156 23.2248 17.6594C23.2021 17.7033 23.1692 17.741 23.1289 17.7695Z",
|
|
8409
8409
|
fill: token.colorText,
|
|
8410
8410
|
fillOpacity: "0.88"
|
|
8411
8411
|
}
|
|
@@ -45496,6 +45496,7 @@ const VisibilityContainer = st.div`
|
|
|
45496
45496
|
`;
|
|
45497
45497
|
const CursorPointerDiv = st.div`
|
|
45498
45498
|
cursor: pointer;
|
|
45499
|
+
user-select: none;
|
|
45499
45500
|
`;
|
|
45500
45501
|
const Styled$1 = {
|
|
45501
45502
|
FullWidthDiv,
|
|
@@ -45640,6 +45641,7 @@ const PodLogsMonaco = ({
|
|
|
45640
45641
|
namespace,
|
|
45641
45642
|
podName,
|
|
45642
45643
|
containers,
|
|
45644
|
+
initContainers,
|
|
45643
45645
|
theme,
|
|
45644
45646
|
substractHeight,
|
|
45645
45647
|
rawPodInfo
|
|
@@ -45656,13 +45658,31 @@ const PodLogsMonaco = ({
|
|
|
45656
45658
|
{ value: "current", label: "Current log" },
|
|
45657
45659
|
{ value: "previous", label: "Previous log" }
|
|
45658
45660
|
] : [{ value: "current", label: "Current log" }];
|
|
45661
|
+
const options = initContainers.length > 0 ? [
|
|
45662
|
+
{
|
|
45663
|
+
label: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: "Containers" }),
|
|
45664
|
+
title: "Containers",
|
|
45665
|
+
options: containers.map((container) => ({ value: container, label: container }))
|
|
45666
|
+
},
|
|
45667
|
+
{
|
|
45668
|
+
label: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: "Init Containers" }),
|
|
45669
|
+
title: "Init Containers",
|
|
45670
|
+
options: initContainers.map((container) => ({ value: container, label: container }))
|
|
45671
|
+
}
|
|
45672
|
+
] : [
|
|
45673
|
+
{
|
|
45674
|
+
label: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: "Containers" }),
|
|
45675
|
+
title: "Containers",
|
|
45676
|
+
options: containers.map((container) => ({ value: container, label: container }))
|
|
45677
|
+
}
|
|
45678
|
+
];
|
|
45659
45679
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
45660
45680
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled.TopRowContent, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { gap: 16, children: [
|
|
45661
45681
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled.CustomSelect, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
45662
45682
|
Select,
|
|
45663
45683
|
{
|
|
45664
45684
|
placeholder: "Select container",
|
|
45665
|
-
options
|
|
45685
|
+
options,
|
|
45666
45686
|
filterOption: filterSelectOptions,
|
|
45667
45687
|
disabled: containers.length === 0,
|
|
45668
45688
|
showSearch: true,
|
|
@@ -46392,7 +46412,11 @@ const parseMutliqueryText$1 = ({ text, multiQueryData }) => {
|
|
|
46392
46412
|
}
|
|
46393
46413
|
});
|
|
46394
46414
|
};
|
|
46395
|
-
const getRunningContainerNames = (pod) =>
|
|
46415
|
+
const getRunningContainerNames = (pod) => {
|
|
46416
|
+
const containers = (pod.status?.containerStatuses ?? []).filter((st) => Boolean(st.state?.running)).map((st) => st.name);
|
|
46417
|
+
const initContainers = (pod.status?.initContainerStatuses ?? []).map((st) => st.name);
|
|
46418
|
+
return { containers, initContainers };
|
|
46419
|
+
};
|
|
46396
46420
|
|
|
46397
46421
|
const PodLogs = ({
|
|
46398
46422
|
data,
|
|
@@ -46452,7 +46476,7 @@ const PodLogs = ({
|
|
|
46452
46476
|
if (!podInfo) {
|
|
46453
46477
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: "No Pod Info" });
|
|
46454
46478
|
}
|
|
46455
|
-
const containers = getRunningContainerNames(podInfo);
|
|
46479
|
+
const { containers, initContainers } = getRunningContainerNames(podInfo);
|
|
46456
46480
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
46457
46481
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
46458
46482
|
PodLogsMonaco,
|
|
@@ -46461,6 +46485,7 @@ const PodLogs = ({
|
|
|
46461
46485
|
namespace: namespacePrepared,
|
|
46462
46486
|
podName: podNamePrepared,
|
|
46463
46487
|
containers,
|
|
46488
|
+
initContainers,
|
|
46464
46489
|
theme,
|
|
46465
46490
|
substractHeight: substractHeight || 340 + 35 + 8,
|
|
46466
46491
|
rawPodInfo: podInfo,
|