@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.
@@ -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: "M18 0.5C8.33594 0.5 0.5 8.33594 0.5 18C0.5 27.6641 8.33594 35.5 18 35.5C27.6641 35.5 35.5 27.6641 35.5 18C35.5 8.33594 27.6641 0.5 18 0.5ZM23.6289 18.2695L15.0977 24.4766C15.0509 24.5102 14.9958 24.5302 14.9383 24.5346C14.8809 24.5389 14.8234 24.5273 14.7721 24.501C14.7208 24.4748 14.6778 24.4349 14.6477 24.3858C14.6176 24.3367 14.6017 24.2803 14.6016 24.2227V11.8164C14.6014 11.7587 14.6172 11.7021 14.6472 11.6528C14.6772 11.6035 14.7203 11.5635 14.7717 11.5372C14.8231 11.5109 14.8807 11.4994 14.9382 11.5038C14.9958 11.5083 15.051 11.5286 15.0977 11.5625L23.6289 17.7656C23.6692 17.7941 23.7021 17.8319 23.7248 17.8757C23.7475 17.9196 23.7593 17.9682 23.7593 18.0176C23.7593 18.0669 23.7475 18.1156 23.7248 18.1594C23.7021 18.2033 23.6692 18.241 23.6289 18.2695Z",
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: containers.map((container) => ({ value: container, label: container })),
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) => (pod.status?.containerStatuses ?? []).filter((st) => Boolean(st.state?.running)).map((st) => st.name);
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,