@dovetail-v2/refine 0.1.11-alpha.2 → 0.1.12
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/{MonacoYamlDiffEditor-42ab72d2.js → MonacoYamlDiffEditor-ae1a891e.js} +1 -1
- package/dist/{index-8ae38abf.js → index-90c4694a.js} +709 -322
- package/dist/refine.js +175 -172
- package/dist/refine.umd.cjs +535 -148
- package/dist/style.css +185 -0
- package/lib/components/DropdownMenuItems/index.d.ts +1 -0
- package/lib/components/EditField/index.d.ts +3 -0
- package/lib/components/EditMetadataForm/KeyValueTableForm.d.ts +15 -0
- package/lib/components/EditMetadataForm/LabelFormatPopover.d.ts +3 -0
- package/lib/components/Form/useYamlForm.d.ts +1 -1
- package/lib/i18n.d.ts +26 -0
- package/lib/locales/zh-CN/index.d.ts +26 -0
- package/lib/types/resource.d.ts +1 -1
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/schema-store.d.ts +13 -0
- package/lib/utils/validation.d.ts +8 -0
- package/package.json +7 -7
- package/lib/components/CronJobDropdown/index.d.ts +0 -9
- package/lib/components/K8sDropdown/index.d.ts +0 -9
- package/lib/components/PodDropdown/index.d.ts +0 -9
- package/lib/components/ReplicasDropdown/index.d.ts +0 -9
- package/lib/components/Table/TableToolBar.d.ts +0 -9
- package/lib/components/Table/TableWidgets.d.ts +0 -6
- package/lib/components/WorkloadDropdown/index.d.ts +0 -9
- package/lib/src/App.d.ts +0 -3
- package/lib/src/Dovetail.d.ts +0 -18
- package/lib/src/components/Breadcrumb/index.d.ts +0 -6
- package/lib/src/components/ConditionsTable/ConditionsTable.d.ts +0 -7
- package/lib/src/components/ConditionsTable/index.d.ts +0 -1
- package/lib/src/components/CreateButton/index.d.ts +0 -2
- package/lib/src/components/CronJobDropdown/index.d.ts +0 -9
- package/lib/src/components/CronjobJobsTable/index.d.ts +0 -8
- package/lib/src/components/DeleteButton/index.d.ts +0 -2
- package/lib/src/components/DeleteManyButton/index.d.ts +0 -4
- package/lib/src/components/DrawerShow/DrawerShow.d.ts +0 -9
- package/lib/src/components/DrawerShow/index.d.ts +0 -1
- package/lib/src/components/DurationTime/index.d.ts +0 -6
- package/lib/src/components/EditButton/index.d.ts +0 -2
- package/lib/src/components/EditField/index.d.ts +0 -15
- package/lib/src/components/ErrorContent/index.d.ts +0 -17
- package/lib/src/components/EventsTable/EventsTable.d.ts +0 -6
- package/lib/src/components/EventsTable/index.d.ts +0 -1
- package/lib/src/components/Form/FormModal.d.ts +0 -9
- package/lib/src/components/Form/RefineFormContent.d.ts +0 -12
- package/lib/src/components/Form/RefineFormPage.d.ts +0 -7
- package/lib/src/components/Form/YamlForm.d.ts +0 -29
- package/lib/src/components/Form/index.d.ts +0 -7
- package/lib/src/components/Form/type.d.ts +0 -17
- package/lib/src/components/Form/useFieldsConfig.d.ts +0 -4
- package/lib/src/components/Form/useReactHookForm.d.ts +0 -30
- package/lib/src/components/Form/useRefineForm.d.ts +0 -13
- package/lib/src/components/Form/useYamlForm.d.ts +0 -50
- package/lib/src/components/FormErrorAlert/index.d.ts +0 -9
- package/lib/src/components/FormLayout/index.d.ts +0 -7
- package/lib/src/components/FormWidgets/KeyValueListWidget.d.ts +0 -6
- package/lib/src/components/FormWidgets/MetadataForm.d.ts +0 -2
- package/lib/src/components/FormWidgets/NameInputWidget.d.ts +0 -51
- package/lib/src/components/FormWidgets/NamespaceSelectWidget.d.ts +0 -9
- package/lib/src/components/FormWidgets/index.d.ts +0 -4
- package/lib/src/components/FormWidgets/widget.d.ts +0 -5
- package/lib/src/components/ImageNames/index.d.ts +0 -5
- package/lib/src/components/IngressRulesComponent/index.d.ts +0 -5
- package/lib/src/components/IngressRulesTable/IngressRulesTable.d.ts +0 -7
- package/lib/src/components/IngressRulesTable/index.d.ts +0 -1
- package/lib/src/components/K8sDropdown/index.d.ts +0 -9
- package/lib/src/components/KeyValue/KeyValue.d.ts +0 -7
- package/lib/src/components/KeyValue/KeyValueAnnotation.d.ts +0 -6
- package/lib/src/components/KeyValue/KeyValueSecret.d.ts +0 -5
- package/lib/src/components/KeyValue/index.d.ts +0 -3
- package/lib/src/components/Layout/index.d.ts +0 -3
- package/lib/src/components/LinkFallback/index.d.ts +0 -4
- package/lib/src/components/ListPage/index.d.ts +0 -10
- package/lib/src/components/Menu/index.d.ts +0 -2
- package/lib/src/components/NamespacesFilter/index.d.ts +0 -11
- package/lib/src/components/NetworkPolicyRulesViewer/NetworkPolicyRulesViewer.d.ts +0 -8
- package/lib/src/components/NetworkPolicyRulesViewer/index.d.ts +0 -1
- package/lib/src/components/PVCDistributeStorage/index.d.ts +0 -16
- package/lib/src/components/PageShow/PageShow.d.ts +0 -12
- package/lib/src/components/PageShow/index.d.ts +0 -1
- package/lib/src/components/PodContainersTable/PodContainersTable.d.ts +0 -8
- package/lib/src/components/PodContainersTable/index.d.ts +0 -1
- package/lib/src/components/PodDropdown/index.d.ts +0 -9
- package/lib/src/components/PodLog/index.d.ts +0 -6
- package/lib/src/components/PodSelectorTable/index.d.ts +0 -6
- package/lib/src/components/PodShellModal/PodShell.d.ts +0 -18
- package/lib/src/components/PodShellModal/index.d.ts +0 -10
- package/lib/src/components/PortsTable/index.d.ts +0 -7
- package/lib/src/components/ReferenceLink/index.d.ts +0 -8
- package/lib/src/components/ReplicasDropdown/index.d.ts +0 -9
- package/lib/src/components/ResourceCRUD/ResourceCRUD.d.ts +0 -8
- package/lib/src/components/ResourceCRUD/create/index.d.ts +0 -8
- package/lib/src/components/ResourceCRUD/index.d.ts +0 -4
- package/lib/src/components/ResourceCRUD/list/index.d.ts +0 -9
- package/lib/src/components/ResourceCRUD/show/index.d.ts +0 -9
- package/lib/src/components/ResourceFiledDisplays.d.ts +0 -7
- package/lib/src/components/ResourceLink/index.d.ts +0 -8
- package/lib/src/components/ResourceSelect/index.d.ts +0 -12
- package/lib/src/components/ResourceTable/index.d.ts +0 -9
- package/lib/src/components/ResourceUsageBar/index.d.ts +0 -8
- package/lib/src/components/Separator/index.d.ts +0 -2
- package/lib/src/components/ServiceComponents/index.d.ts +0 -10
- package/lib/src/components/Shell/ShellToolbar.d.ts +0 -16
- package/lib/src/components/Shell/index.d.ts +0 -74
- package/lib/src/components/ShowContent/ShowContent.d.ts +0 -18
- package/lib/src/components/ShowContent/fields.d.ts +0 -76
- package/lib/src/components/ShowContent/groups.d.ts +0 -24
- package/lib/src/components/ShowContent/index.d.ts +0 -4
- package/lib/src/components/ShowContent/tabs.d.ts +0 -5
- package/lib/src/components/StateTag/StateTag.d.ts +0 -10
- package/lib/src/components/StateTag/index.d.ts +0 -1
- package/lib/src/components/Table/TableToolBar.d.ts +0 -8
- package/lib/src/components/Table/TableWidgets.d.ts +0 -6
- package/lib/src/components/Table/index.d.ts +0 -43
- package/lib/src/components/Tabs/index.d.ts +0 -10
- package/lib/src/components/Tags/index.d.ts +0 -6
- package/lib/src/components/TextTags/index.d.ts +0 -6
- package/lib/src/components/Time/index.d.ts +0 -8
- package/lib/src/components/ValueDisplay/index.d.ts +0 -9
- package/lib/src/components/WorkloadDropdown/index.d.ts +0 -9
- package/lib/src/components/WorkloadPodsTable/WorkloadPodsTable.d.ts +0 -9
- package/lib/src/components/WorkloadPodsTable/index.d.ts +0 -1
- package/lib/src/components/WorkloadReplicas/index.d.ts +0 -17
- package/lib/src/components/YamlEditor/MonacoYamlDiffEditor.d.ts +0 -9
- package/lib/src/components/YamlEditor/MonacoYamlEditor.d.ts +0 -19
- package/lib/src/components/YamlEditor/YamlEditorComponent.d.ts +0 -27
- package/lib/src/components/YamlEditor/index.d.ts +0 -1
- package/lib/src/components/YamlEditor/style.d.ts +0 -11
- package/lib/src/components/YamlEditor/yaml.worker.d.ts +0 -1
- package/lib/src/components/index.d.ts +0 -49
- package/lib/src/constants/auth.d.ts +0 -5
- package/lib/src/constants/index.d.ts +0 -3
- package/lib/src/constants/k8s.d.ts +0 -522
- package/lib/src/constants/state.d.ts +0 -15
- package/lib/src/contexts/component.d.ts +0 -8
- package/lib/src/contexts/configs.d.ts +0 -4
- package/lib/src/contexts/global-store.d.ts +0 -6
- package/lib/src/contexts/index.d.ts +0 -3
- package/lib/src/hooks/index.d.ts +0 -8
- package/lib/src/hooks/useDeleteModal/index.d.ts +0 -1
- package/lib/src/hooks/useDeleteModal/useDeleteManyModal.d.ts +0 -8
- package/lib/src/hooks/useDeleteModal/useDeleteModal.d.ts +0 -7
- package/lib/src/hooks/useDownloadYAML.d.ts +0 -7
- package/lib/src/hooks/useEagleTable/columns.d.ts +0 -47
- package/lib/src/hooks/useEagleTable/index.d.ts +0 -2
- package/lib/src/hooks/useEagleTable/useEagleTable.d.ts +0 -56
- package/lib/src/hooks/useEdit.d.ts +0 -4
- package/lib/src/hooks/useGlobalStore.d.ts +0 -3
- package/lib/src/hooks/useK8sYamlEditor.d.ts +0 -5
- package/lib/src/hooks/useNamespaceRefineFilter.d.ts +0 -5
- package/lib/src/hooks/useOpenForm.d.ts +0 -8
- package/lib/src/hooks/useSchema.d.ts +0 -21
- package/lib/src/hooks/useSubmitForm.d.ts +0 -14
- package/lib/src/hooks/useTableData.d.ts +0 -20
- package/lib/src/i18n.d.ts +0 -371
- package/lib/src/index.d.ts +0 -12
- package/lib/src/locales/en-US/index.d.ts +0 -175
- package/lib/src/locales/index.d.ts +0 -2
- package/lib/src/locales/zh-CN/index.d.ts +0 -193
- package/lib/src/main.d.ts +0 -3
- package/lib/src/models/cronjob-model.d.ts +0 -15
- package/lib/src/models/daemonset-model.d.ts +0 -15
- package/lib/src/models/deployment-model.d.ts +0 -13
- package/lib/src/models/event-model.d.ts +0 -7
- package/lib/src/models/index.d.ts +0 -19
- package/lib/src/models/ingress-model.d.ts +0 -20
- package/lib/src/models/job-model.d.ts +0 -20
- package/lib/src/models/network-policy-model.d.ts +0 -9
- package/lib/src/models/node-model.d.ts +0 -17
- package/lib/src/models/persistent-volume-claim.d.ts +0 -13
- package/lib/src/models/persistent-volume.d.ts +0 -13
- package/lib/src/models/pod-metrics-model.d.ts +0 -8
- package/lib/src/models/pod-model.d.ts +0 -20
- package/lib/src/models/resource-model.d.ts +0 -21
- package/lib/src/models/service-model.d.ts +0 -24
- package/lib/src/models/statefulset-model.d.ts +0 -13
- package/lib/src/models/storage-class.d.ts +0 -16
- package/lib/src/models/types/index.d.ts +0 -1
- package/lib/src/models/types/metric.d.ts +0 -25
- package/lib/src/models/workload-base-model.d.ts +0 -12
- package/lib/src/models/workload-model.d.ts +0 -18
- package/lib/src/pages/configmaps/index.d.ts +0 -4
- package/lib/src/pages/cronjobs/create/index.d.ts +0 -3
- package/lib/src/pages/cronjobs/index.d.ts +0 -3
- package/lib/src/pages/cronjobs/list/index.d.ts +0 -3
- package/lib/src/pages/cronjobs/show/index.d.ts +0 -3
- package/lib/src/pages/daemonsets/create/index.d.ts +0 -3
- package/lib/src/pages/daemonsets/index.d.ts +0 -3
- package/lib/src/pages/daemonsets/list/index.d.ts +0 -3
- package/lib/src/pages/daemonsets/show/index.d.ts +0 -3
- package/lib/src/pages/deployments/index.d.ts +0 -2
- package/lib/src/pages/deployments/list/index.d.ts +0 -3
- package/lib/src/pages/deployments/show/index.d.ts +0 -3
- package/lib/src/pages/ingresses/index.d.ts +0 -4
- package/lib/src/pages/jobs/index.d.ts +0 -4
- package/lib/src/pages/networkPolicies/index.d.ts +0 -4
- package/lib/src/pages/nodes/index.d.ts +0 -2
- package/lib/src/pages/nodes/list/index.d.ts +0 -3
- package/lib/src/pages/nodes/show/index.d.ts +0 -3
- package/lib/src/pages/persistentvolumeclaims/index.d.ts +0 -4
- package/lib/src/pages/persistentvolumes/index.d.ts +0 -4
- package/lib/src/pages/pods/create/index.d.ts +0 -3
- package/lib/src/pages/pods/index.d.ts +0 -3
- package/lib/src/pages/pods/list/index.d.ts +0 -3
- package/lib/src/pages/pods/show/index.d.ts +0 -3
- package/lib/src/pages/secrets/index.d.ts +0 -4
- package/lib/src/pages/services/index.d.ts +0 -4
- package/lib/src/pages/statefulsets/index.d.ts +0 -4
- package/lib/src/pages/storageclasses/form/index.d.ts +0 -9
- package/lib/src/pages/storageclasses/index.d.ts +0 -48
- package/lib/src/plugins/index.d.ts +0 -4
- package/lib/src/plugins/model-plugin.d.ts +0 -13
- package/lib/src/plugins/relation-plugin.d.ts +0 -26
- package/lib/src/plugins/type.d.ts +0 -8
- package/lib/src/providers/index.d.ts +0 -1
- package/lib/src/providers/router-provider/index.d.ts +0 -21
- package/lib/src/styles/button.d.ts +0 -1
- package/lib/src/styles/modal.d.ts +0 -1
- package/lib/src/types/index.d.ts +0 -1
- package/lib/src/types/resource.d.ts +0 -62
- package/lib/src/utils/addId.d.ts +0 -3
- package/lib/src/utils/download.d.ts +0 -1
- package/lib/src/utils/error.d.ts +0 -20
- package/lib/src/utils/form.d.ts +0 -3
- package/lib/src/utils/index.d.ts +0 -1
- package/lib/src/utils/k8s.d.ts +0 -3
- package/lib/src/utils/labels.d.ts +0 -9
- package/lib/src/utils/match-selector.d.ts +0 -3
- package/lib/src/utils/openapi.d.ts +0 -40
- package/lib/src/utils/schema.d.ts +0 -18
- package/lib/src/utils/selector.d.ts +0 -3
- package/lib/src/utils/shell.d.ts +0 -16
- package/lib/src/utils/storage.d.ts +0 -13
- package/lib/src/utils/string.d.ts +0 -1
- package/lib/src/utils/time.d.ts +0 -13
- package/lib/src/utils/unit.d.ts +0 -12
- package/lib/src/utils/yaml.d.ts +0 -2
- package/lib/vite.config.d.ts +0 -2
|
@@ -10,8 +10,8 @@ import React__default, { createElement, isValidElement, cloneElement, Children,
|
|
|
10
10
|
import { ResourceContext, matchResourceFromRoute, useResource, useDelete, useNavigation, useBreadcrumb, useList, CanAccess, useUpdate, useParsed, useGo, useCan, useTable, useDeleteMany, useShow, useDataProvider, useRefineContext, useTranslate, useWarnAboutChange, useForm as useForm$2, flattenObjectKeys, pickNotDeprecated, useMenu, Refine } from "@refinedev/core";
|
|
11
11
|
import { parse, stringify } from "qs";
|
|
12
12
|
import { useLocation, useHistory, useParams, matchPath, Link, Route, NavLink, Router } from "react-router-dom";
|
|
13
|
-
import { Typo, Tag, Input, Select, AntdOption, Button, Form, Space, TextArea, kitContext, Loading, Table as Table$2, Pagination, Alert, usePopModal, Modal, usePushModal, Fields, Units, OverflowTooltip, Tooltip, StatusCapsule, Dropdown, Menu as Menu$1, Icon as Icon$1, Divider, Link as Link$1, Tabs as Tabs$1, TabsTabPane, Row, Col, DonutChart, SegmentControl, Checkbox, DropdownMenu, SearchInput, Token, AntdSelectOptGroup, TableForm, MenuItemGroup, Layout as Layout$1, Time as Time$1, useMessage, ModalStack, KitStoreProvider, ConfigProvider } from "@cloudtower/eagle";
|
|
14
|
-
import { EditPen16PrimaryIcon, Download16GradientBlueIcon, TrashBinDelete16Icon, MoreEllipsis324BoldSecondaryIcon, MoreEllipsis324BoldBlueIcon, MoreEllipsis316BoldBlueIcon, PlusAddCreateNew16BoldOntintIcon, ArrowChevronLeft16BoldTertiaryIcon, ArrowChevronLeftSmall16BoldBlueIcon, ViewEye16GradientGrayIcon, EntityFilterIgnoreGradient16GrayIcon, RecoverContinue16GradientBlueIcon, SuspendedPause16GradientBlueIcon, Retry16GradientBlueIcon, FontSize16GrayIcon, FontSize16BlueIcon, LogCollection16GrayIcon, LogCollection16GradientBlueIcon, TrashBinDeletePermanently16GrayIcon, TrashBinDeletePermanently16BlueIcon, Loading24GradientBlueIcon, OpenTerminal16GradientBlueIcon, HierarchyTriangleRight16GrayIcon, HierarchyTriangleRight16BlueIcon, ClipboardCopy16GradientGrayIcon, ClipboardCopy16GradientBlueIcon, Retry16GradientGrayIcon, EditPen16GradientGrayIcon, EditPen16GradientBlueIcon, Showdiff16GradientGrayIcon, Showdiff16GradientBlueIcon, XmarkFailedSeriousWarningFill16RedIcon, ExclamationErrorCircleFill16RedIcon, Pause16GradientBlueIcon, EditPen16BlueIcon } from "@cloudtower/icons-react";
|
|
13
|
+
import { Typo, Tag, Input, Select, AntdOption, Button, Form, Space, TextArea, kitContext, Loading, Table as Table$2, Pagination, Alert, usePopModal, Modal, usePushModal, Fields, Units, OverflowTooltip, Tooltip, StatusCapsule, Dropdown, Menu as Menu$1, Icon as Icon$1, Divider, Link as Link$1, Tabs as Tabs$1, TabsTabPane, Row, Col, DonutChart, SegmentControl, Checkbox, DropdownMenu, SearchInput, Token, AntdSelectOptGroup, Popover, AntdTable, TableForm, getOptions, MenuItemGroup, Layout as Layout$1, Time as Time$1, useMessage, ModalStack, KitStoreProvider, ConfigProvider } from "@cloudtower/eagle";
|
|
14
|
+
import { EditPen16PrimaryIcon, Download16GradientBlueIcon, TrashBinDelete16Icon, MoreEllipsis324BoldSecondaryIcon, MoreEllipsis324BoldBlueIcon, MoreEllipsis316BoldBlueIcon, PlusAddCreateNew16BoldOntintIcon, ArrowChevronLeft16BoldTertiaryIcon, ArrowChevronLeftSmall16BoldBlueIcon, ViewEye16GradientGrayIcon, EntityFilterIgnoreGradient16GrayIcon, RecoverContinue16GradientBlueIcon, SuspendedPause16GradientBlueIcon, Retry16GradientBlueIcon, FontSize16GrayIcon, FontSize16BlueIcon, LogCollection16GrayIcon, LogCollection16GradientBlueIcon, TrashBinDeletePermanently16GrayIcon, TrashBinDeletePermanently16BlueIcon, Loading24GradientBlueIcon, OpenTerminal16GradientBlueIcon, HierarchyTriangleRight16GrayIcon, HierarchyTriangleRight16BlueIcon, ClipboardCopy16GradientGrayIcon, ClipboardCopy16GradientBlueIcon, Retry16GradientGrayIcon, EditPen16GradientGrayIcon, EditPen16GradientBlueIcon, Showdiff16GradientGrayIcon, Showdiff16GradientBlueIcon, XmarkFailedSeriousWarningFill16RedIcon, ExclamationErrorCircleFill16RedIcon, Pause16GradientBlueIcon, EditPen16BlueIcon, InfoICircleFill16GrayIcon, InfoICircleFill16Gray70Icon } from "@cloudtower/icons-react";
|
|
15
15
|
import { first, cloneDeep, set as set$1, omit as omit$1, merge, get as get$3, debounce, last, isObject as isObject$4, uniq, keyBy } from "lodash-es";
|
|
16
16
|
import yaml$1 from "js-yaml";
|
|
17
17
|
import { paginateData, sortData, dataProvider, liveProvider } from "k8s-api-provider";
|
|
@@ -1449,6 +1449,7 @@ const node_port = "NodePort";
|
|
|
1449
1449
|
const protocol = "协议";
|
|
1450
1450
|
const key = "键";
|
|
1451
1451
|
const value = "值";
|
|
1452
|
+
const value_optional = "值(选填)";
|
|
1452
1453
|
const effect = "效果";
|
|
1453
1454
|
const show_data_value = "显示数值";
|
|
1454
1455
|
const hide_data_value = "隐藏数值";
|
|
@@ -1549,6 +1550,31 @@ const change_form_mode_alert = "从编辑 YAML 切回表单编辑,将无法保
|
|
|
1549
1550
|
const pvc_storage_required = "请填写分配量。";
|
|
1550
1551
|
const pvc_storage_min = "请输入正整数。";
|
|
1551
1552
|
const pvc_storage_reduce_limit = "输入值不得小于当前数值。";
|
|
1553
|
+
const key_empty_text = "请填写键。";
|
|
1554
|
+
const format_error = "格式错误。";
|
|
1555
|
+
const taint_effect_empty_text = "请选择效果。";
|
|
1556
|
+
const add_label = "添加标签";
|
|
1557
|
+
const add_annotation = "添加注解";
|
|
1558
|
+
const add_taint = "添加污点";
|
|
1559
|
+
const look_format_requirement = "查看格式要求";
|
|
1560
|
+
const yes = "是";
|
|
1561
|
+
const no = "否";
|
|
1562
|
+
const contains = "包含";
|
|
1563
|
+
const optional = "是否必填";
|
|
1564
|
+
const format_requirements = "格式要求";
|
|
1565
|
+
const suffix = "前缀";
|
|
1566
|
+
const suffix_format_rule_1 = "DNS 子域:由点 (.) 分隔的一系列 DNS 标签";
|
|
1567
|
+
const suffix_format_rule_2 = "不超过 253 个字符";
|
|
1568
|
+
const suffix_format_rule_3 = "后跟斜杠 (/),即第一个 (/) 前的内容是前缀。如有 (/) ,前缀不可为空";
|
|
1569
|
+
const name_format_rule_1 = "由字母、数字、连字符 (-)、下划线(_) 或点 (.) 组成";
|
|
1570
|
+
const name_format_rule_2 = "以字母或数字开头和结尾";
|
|
1571
|
+
const name_format_rule_3 = "不超过 63 个字符";
|
|
1572
|
+
const taint_effect_NoSchedule_tooltip_1 = "正在节点上运行的 Pod 不会被驱逐。";
|
|
1573
|
+
const taint_effect_NoSchedule_tooltip_2 = "新 Pod 不会调度到污点节点,除非有匹配的容忍度。";
|
|
1574
|
+
const taint_effect_PreferNoSchedule_tooltip_1 = "不容忍污点的 Pod 将被立即驱逐。";
|
|
1575
|
+
const taint_effect_PreferNoSchedule_tooltip_2 = "容忍污点但未设置容忍时长的 Pod 将继续运行。";
|
|
1576
|
+
const taint_effect_PreferNoSchedule_tooltip_3 = "容忍污点并设置了容忍时长的 Pod 将按指定时间运行,时间结束后被驱逐。";
|
|
1577
|
+
const taint_effect_NoExecute_tooltip_3 = "控制平面将尝试避免将不能容忍污点的 Pod 调度到节点上,但无法保证完全避免。";
|
|
1552
1578
|
const dovetail = {
|
|
1553
1579
|
copy: copy$1,
|
|
1554
1580
|
reset_arguments,
|
|
@@ -1655,6 +1681,7 @@ const dovetail = {
|
|
|
1655
1681
|
protocol,
|
|
1656
1682
|
key,
|
|
1657
1683
|
value,
|
|
1684
|
+
value_optional,
|
|
1658
1685
|
effect,
|
|
1659
1686
|
show_data_value,
|
|
1660
1687
|
hide_data_value,
|
|
@@ -1756,7 +1783,32 @@ const dovetail = {
|
|
|
1756
1783
|
change_form_mode_alert,
|
|
1757
1784
|
pvc_storage_required,
|
|
1758
1785
|
pvc_storage_min,
|
|
1759
|
-
pvc_storage_reduce_limit
|
|
1786
|
+
pvc_storage_reduce_limit,
|
|
1787
|
+
key_empty_text,
|
|
1788
|
+
format_error,
|
|
1789
|
+
taint_effect_empty_text,
|
|
1790
|
+
add_label,
|
|
1791
|
+
add_annotation,
|
|
1792
|
+
add_taint,
|
|
1793
|
+
look_format_requirement,
|
|
1794
|
+
yes,
|
|
1795
|
+
no,
|
|
1796
|
+
contains,
|
|
1797
|
+
optional,
|
|
1798
|
+
format_requirements,
|
|
1799
|
+
suffix,
|
|
1800
|
+
suffix_format_rule_1,
|
|
1801
|
+
suffix_format_rule_2,
|
|
1802
|
+
suffix_format_rule_3,
|
|
1803
|
+
name_format_rule_1,
|
|
1804
|
+
name_format_rule_2,
|
|
1805
|
+
name_format_rule_3,
|
|
1806
|
+
taint_effect_NoSchedule_tooltip_1,
|
|
1807
|
+
taint_effect_NoSchedule_tooltip_2,
|
|
1808
|
+
taint_effect_PreferNoSchedule_tooltip_1,
|
|
1809
|
+
taint_effect_PreferNoSchedule_tooltip_2,
|
|
1810
|
+
taint_effect_PreferNoSchedule_tooltip_3,
|
|
1811
|
+
taint_effect_NoExecute_tooltip_3
|
|
1760
1812
|
};
|
|
1761
1813
|
const ZH = {
|
|
1762
1814
|
dovetail
|
|
@@ -8149,6 +8201,9 @@ class K8sOpenAPI {
|
|
|
8149
8201
|
}
|
|
8150
8202
|
// Fetch and process OpenAPI schemas
|
|
8151
8203
|
async fetch() {
|
|
8204
|
+
if (this.schemas) {
|
|
8205
|
+
return this.schemas;
|
|
8206
|
+
}
|
|
8152
8207
|
try {
|
|
8153
8208
|
const response = await fetch(
|
|
8154
8209
|
`${this.pathPrefix}${this.resourceBasePath}`
|
|
@@ -8196,6 +8251,24 @@ class K8sOpenAPI {
|
|
|
8196
8251
|
});
|
|
8197
8252
|
}
|
|
8198
8253
|
}
|
|
8254
|
+
class SchemaStore {
|
|
8255
|
+
constructor() {
|
|
8256
|
+
__publicField(this, "openapiMap", {});
|
|
8257
|
+
}
|
|
8258
|
+
async fetchSchemas(resourceBasePath, pathPrefix) {
|
|
8259
|
+
const openapi = this.openapiMap[`${resourceBasePath}-${pathPrefix}`] || new K8sOpenAPI(resourceBasePath, pathPrefix);
|
|
8260
|
+
this.openapiMap[`${resourceBasePath}-${pathPrefix}`] = openapi;
|
|
8261
|
+
const schemas = await openapi.fetch();
|
|
8262
|
+
return schemas;
|
|
8263
|
+
}
|
|
8264
|
+
async fetchSchema(resourceBasePath, pathPrefix, kind) {
|
|
8265
|
+
const openapi = this.openapiMap[`${resourceBasePath}-${pathPrefix}`] || new K8sOpenAPI(resourceBasePath, pathPrefix);
|
|
8266
|
+
this.openapiMap[`${resourceBasePath}-${pathPrefix}`] = openapi;
|
|
8267
|
+
await openapi.fetch();
|
|
8268
|
+
return openapi.findSchema(kind);
|
|
8269
|
+
}
|
|
8270
|
+
}
|
|
8271
|
+
const schemaStore = new SchemaStore();
|
|
8199
8272
|
const ConstantsContext = createContext({
|
|
8200
8273
|
schemaUrlPrefix: ""
|
|
8201
8274
|
});
|
|
@@ -8214,8 +8287,7 @@ function useApiGroupSchema() {
|
|
|
8214
8287
|
if (state2.schemasMap[apiGroup]) {
|
|
8215
8288
|
return { apiGroup, schemas: state2.schemasMap[apiGroup] };
|
|
8216
8289
|
}
|
|
8217
|
-
const
|
|
8218
|
-
const groupSchemas = await openapi.fetch();
|
|
8290
|
+
const groupSchemas = await schemaStore.fetchSchemas(apiGroup, schemaUrlPrefix);
|
|
8219
8291
|
return { apiGroup, schemas: groupSchemas || [] };
|
|
8220
8292
|
})
|
|
8221
8293
|
);
|
|
@@ -8244,20 +8316,12 @@ function useSchema(options) {
|
|
|
8244
8316
|
const useResourceResult = useResource();
|
|
8245
8317
|
const resource = (options == null ? void 0 : options.resource) || useResourceResult.resource;
|
|
8246
8318
|
const { schemaUrlPrefix } = useContext(ConstantsContext);
|
|
8247
|
-
const openapi = useMemo(
|
|
8248
|
-
() => {
|
|
8249
|
-
var _a2;
|
|
8250
|
-
return new K8sOpenAPI((_a2 = resource == null ? void 0 : resource.meta) == null ? void 0 : _a2.resourceBasePath, schemaUrlPrefix);
|
|
8251
|
-
},
|
|
8252
|
-
[(_a = resource == null ? void 0 : resource.meta) == null ? void 0 : _a.resourceBasePath, schemaUrlPrefix]
|
|
8253
|
-
);
|
|
8254
8319
|
const fetchSchema = useCallback(async () => {
|
|
8255
|
-
var _a2;
|
|
8320
|
+
var _a2, _b2;
|
|
8256
8321
|
setLoading(true);
|
|
8257
8322
|
setError(null);
|
|
8258
8323
|
try {
|
|
8259
|
-
await
|
|
8260
|
-
const schema2 = await openapi.findSchema((_a2 = resource == null ? void 0 : resource.meta) == null ? void 0 : _a2.kind);
|
|
8324
|
+
const schema2 = await schemaStore.fetchSchema((_a2 = resource == null ? void 0 : resource.meta) == null ? void 0 : _a2.resourceBasePath, schemaUrlPrefix, (_b2 = resource == null ? void 0 : resource.meta) == null ? void 0 : _b2.kind);
|
|
8261
8325
|
setSchema(schema2 || null);
|
|
8262
8326
|
setError(null);
|
|
8263
8327
|
} catch (e2) {
|
|
@@ -8265,7 +8329,7 @@ function useSchema(options) {
|
|
|
8265
8329
|
} finally {
|
|
8266
8330
|
setLoading(false);
|
|
8267
8331
|
}
|
|
8268
|
-
}, [(_b = resource == null ? void 0 : resource.meta) == null ? void 0 : _b.
|
|
8332
|
+
}, [(_a = resource == null ? void 0 : resource.meta) == null ? void 0 : _a.kind, (_b = resource == null ? void 0 : resource.meta) == null ? void 0 : _b.resourceBasePath, schemaUrlPrefix]);
|
|
8269
8333
|
useEffect(() => {
|
|
8270
8334
|
if (options == null ? void 0 : options.skip)
|
|
8271
8335
|
return;
|
|
@@ -8890,11 +8954,6 @@ function Table$1(props) {
|
|
|
8890
8954
|
} = props;
|
|
8891
8955
|
const auxiliaryLineRef = useRef(null);
|
|
8892
8956
|
const wrapperRef = useRef(null);
|
|
8893
|
-
useMemo(() => ({
|
|
8894
|
-
current: currentPage,
|
|
8895
|
-
pageSize: defaultSize,
|
|
8896
|
-
onChange: onPageChange
|
|
8897
|
-
}), [currentPage, defaultSize, onPageChange]);
|
|
8898
8957
|
const finalColumns = useMemo(() => {
|
|
8899
8958
|
if (RowMenu) {
|
|
8900
8959
|
const actionColumn = {
|
|
@@ -9356,7 +9415,7 @@ const FRACTIONAL = ["", "m", "u", "n", "p", "f"];
|
|
|
9356
9415
|
function formatSi(inValue, options) {
|
|
9357
9416
|
const {
|
|
9358
9417
|
increment = 1e3,
|
|
9359
|
-
suffix = null,
|
|
9418
|
+
suffix: suffix2 = null,
|
|
9360
9419
|
firstSuffix = null,
|
|
9361
9420
|
startingExponent = 0,
|
|
9362
9421
|
minExponent = 0,
|
|
@@ -9384,7 +9443,7 @@ function formatSi(inValue, options) {
|
|
|
9384
9443
|
if (exp === 0 && firstSuffix !== null) {
|
|
9385
9444
|
outStr += `${firstSuffix}`;
|
|
9386
9445
|
} else {
|
|
9387
|
-
outStr += `${UNITS[exp]}${
|
|
9446
|
+
outStr += `${UNITS[exp]}${suffix2}` || "";
|
|
9388
9447
|
}
|
|
9389
9448
|
return outStr;
|
|
9390
9449
|
}
|
|
@@ -9492,10 +9551,8 @@ const DistributeStorageForm = React__default.forwardRef(function DistributeStora
|
|
|
9492
9551
|
distributeStorage: validators.distributeStorage(v)
|
|
9493
9552
|
});
|
|
9494
9553
|
},
|
|
9495
|
-
onBlur: () =>
|
|
9496
|
-
|
|
9497
|
-
onFocus: () => {
|
|
9498
|
-
}
|
|
9554
|
+
onBlur: () => void 0,
|
|
9555
|
+
onFocus: () => void 0
|
|
9499
9556
|
},
|
|
9500
9557
|
min: 1,
|
|
9501
9558
|
meta: {},
|
|
@@ -11517,7 +11574,7 @@ const EventsTable = ({ uid }) => {
|
|
|
11517
11574
|
width: 120,
|
|
11518
11575
|
render(value2) {
|
|
11519
11576
|
const colorMap = {
|
|
11520
|
-
"Warning": "
|
|
11577
|
+
"Warning": "warning",
|
|
11521
11578
|
"Normal": "green"
|
|
11522
11579
|
};
|
|
11523
11580
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(StatusCapsule, { color: colorMap[value2], className: cx_default(StateTagStyle, "no-background"), children: i18n2.t(`dovetail.${value2.toLowerCase()}`) });
|
|
@@ -18566,7 +18623,6 @@ const PodLog = ({
|
|
|
18566
18623
|
const [currentItemCount, setCurrentItemCount] = useState(0);
|
|
18567
18624
|
const [paused, setPaused] = useState(false);
|
|
18568
18625
|
const [wrap, setWrap] = useState(false);
|
|
18569
|
-
const [linesBehind, setLinesBehind] = useState(0);
|
|
18570
18626
|
const logViewerRef = useRef(null);
|
|
18571
18627
|
const abortControllerRef = useRef(null);
|
|
18572
18628
|
const dataProvider2 = useDataProvider();
|
|
@@ -18580,10 +18636,6 @@ const PodLog = ({
|
|
|
18580
18636
|
if (logViewerRef && logViewerRef.current) {
|
|
18581
18637
|
logViewerRef.current.scrollToBottom();
|
|
18582
18638
|
}
|
|
18583
|
-
} else if (logs.length !== currentItemCount) {
|
|
18584
|
-
setLinesBehind(logs.length - currentItemCount);
|
|
18585
|
-
} else {
|
|
18586
|
-
setLinesBehind(0);
|
|
18587
18639
|
}
|
|
18588
18640
|
}, [paused, logs, currentItemCount]);
|
|
18589
18641
|
const onScroll = (params) => {
|
|
@@ -18702,7 +18754,6 @@ const PodLog = ({
|
|
|
18702
18754
|
setSelectedContainer(newValue);
|
|
18703
18755
|
setLogs([]);
|
|
18704
18756
|
setPaused(false);
|
|
18705
|
-
setLinesBehind(0);
|
|
18706
18757
|
},
|
|
18707
18758
|
value: selectedContainer
|
|
18708
18759
|
},
|
|
@@ -35478,7 +35529,6 @@ function ListPage(props) {
|
|
|
35478
35529
|
tableProps,
|
|
35479
35530
|
contentClassName
|
|
35480
35531
|
} = props;
|
|
35481
|
-
useTranslation();
|
|
35482
35532
|
const {
|
|
35483
35533
|
resource
|
|
35484
35534
|
} = useResource();
|
|
@@ -37958,7 +38008,7 @@ const Separator = () => {
|
|
|
37958
38008
|
});
|
|
37959
38009
|
};
|
|
37960
38010
|
const MonacoYamlEditor = React__default.lazy(() => Promise.resolve().then(() => MonacoYamlEditor$2));
|
|
37961
|
-
const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-
|
|
38011
|
+
const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-ae1a891e.js"));
|
|
37962
38012
|
const YamlEditorComponent = forwardRef(
|
|
37963
38013
|
function YamlEditorComponent2(props, ref) {
|
|
37964
38014
|
const {
|
|
@@ -39017,83 +39067,270 @@ function CronJobDropdown(props) {
|
|
|
39017
39067
|
}
|
|
39018
39068
|
) : null });
|
|
39019
39069
|
}
|
|
39070
|
+
function validateLabelKey(key2) {
|
|
39071
|
+
const labelPrefixRegex = /(^[a-zA-Z0-9]$)|(^[a-zA-Z0-9][a-zA-Z0-9\.]*[a-zA-Z0-9]$)/;
|
|
39072
|
+
const labelNameRegex = /(^[a-zA-Z0-9]$)|(^[a-zA-Z0-9][a-zA-Z0-9\.\-]*[a-zA-Z0-9]$)/;
|
|
39073
|
+
let prefix, name2;
|
|
39074
|
+
const splitResult = key2.split("/");
|
|
39075
|
+
if (splitResult.length === 1) {
|
|
39076
|
+
name2 = splitResult[0];
|
|
39077
|
+
} else {
|
|
39078
|
+
prefix = splitResult[0];
|
|
39079
|
+
name2 = splitResult[1];
|
|
39080
|
+
}
|
|
39081
|
+
if (prefix === "") {
|
|
39082
|
+
return { isValid: false, errorMessage: "EMPTY_PREFIX" };
|
|
39083
|
+
}
|
|
39084
|
+
if (prefix && !labelPrefixRegex.test(prefix)) {
|
|
39085
|
+
return { isValid: false, errorMessage: "INVALID_PREFIX" };
|
|
39086
|
+
}
|
|
39087
|
+
if (!labelNameRegex.test(name2)) {
|
|
39088
|
+
return { isValid: false, errorMessage: "INVALID_NAME" };
|
|
39089
|
+
}
|
|
39090
|
+
if (prefix && prefix.length > 253) {
|
|
39091
|
+
return { isValid: false, errorMessage: "MAX_253" };
|
|
39092
|
+
}
|
|
39093
|
+
if (name2 && name2.length > 63) {
|
|
39094
|
+
return { isValid: false, errorMessage: "MAX_63" };
|
|
39095
|
+
}
|
|
39096
|
+
return { isValid: true };
|
|
39097
|
+
}
|
|
39098
|
+
function validateLabelValue(value2) {
|
|
39099
|
+
const labelValueRegex = /(^[a-zA-Z0-9]$)|(^[a-zA-Z0-9][a-zA-Z0-9\.\-]*[a-zA-Z0-9]$)/;
|
|
39100
|
+
if (value2 === "") {
|
|
39101
|
+
return { isValid: true };
|
|
39102
|
+
}
|
|
39103
|
+
if (value2.length > 63) {
|
|
39104
|
+
return { isValid: false, errorMessage: "MAX_63" };
|
|
39105
|
+
}
|
|
39106
|
+
if (!labelValueRegex.test(value2)) {
|
|
39107
|
+
return { isValid: false, errorMessage: "INVALID_VALUE" };
|
|
39108
|
+
}
|
|
39109
|
+
return { isValid: true };
|
|
39110
|
+
}
|
|
39111
|
+
const LabelFormatPopover_105yfzn = "";
|
|
39112
|
+
const PodLabelFormatRulePopoverStyle = "p5jt6nm";
|
|
39113
|
+
const LabelFormatPopover = () => {
|
|
39114
|
+
const {
|
|
39115
|
+
t: t2
|
|
39116
|
+
} = useTranslation();
|
|
39117
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Popover, {
|
|
39118
|
+
overlayClassName: PodLabelFormatRulePopoverStyle,
|
|
39119
|
+
placement: "bottomRight",
|
|
39120
|
+
content: /* @__PURE__ */ jsxRuntimeExports.jsx(AntdTable, {
|
|
39121
|
+
bordered: true,
|
|
39122
|
+
dataSource: [{
|
|
39123
|
+
object: t2("dovetail.key"),
|
|
39124
|
+
contains: t2("dovetail.suffix"),
|
|
39125
|
+
optional: t2("dovetail.no"),
|
|
39126
|
+
rule: [t2("dovetail.suffix_format_rule_1"), t2("dovetail.suffix_format_rule_2"), t2("dovetail.suffix_format_rule_3")]
|
|
39127
|
+
}, {
|
|
39128
|
+
object: t2("dovetail.key"),
|
|
39129
|
+
contains: t2("dovetail.name"),
|
|
39130
|
+
optional: t2("dovetail.yes"),
|
|
39131
|
+
rule: [t2("dovetail.name_format_rule_1"), t2("dovetail.name_format_rule_2"), t2("dovetail.name_format_rule_3")]
|
|
39132
|
+
}, {
|
|
39133
|
+
object: t2("dovetail.value"),
|
|
39134
|
+
contains: t2("dovetail.name"),
|
|
39135
|
+
optional: t2("dovetail.no"),
|
|
39136
|
+
rule: [t2("dovetail.name_format_rule_1"), t2("dovetail.name_format_rule_2"), t2("dovetail.name_format_rule_3")]
|
|
39137
|
+
}],
|
|
39138
|
+
columns: [{
|
|
39139
|
+
key: "object",
|
|
39140
|
+
title: t2("dovetail.object"),
|
|
39141
|
+
dataIndex: "object",
|
|
39142
|
+
render: (cell, record, index2) => {
|
|
39143
|
+
return {
|
|
39144
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", {
|
|
39145
|
+
className: Typo.Label.l4_bold,
|
|
39146
|
+
children: cell
|
|
39147
|
+
}),
|
|
39148
|
+
props: {
|
|
39149
|
+
rowSpan: index2 === 0 ? 2 : index2 === 1 ? 0 : 1
|
|
39150
|
+
}
|
|
39151
|
+
};
|
|
39152
|
+
}
|
|
39153
|
+
}, {
|
|
39154
|
+
key: "contains",
|
|
39155
|
+
title: t2("dovetail.contains"),
|
|
39156
|
+
dataIndex: "contains"
|
|
39157
|
+
}, {
|
|
39158
|
+
key: "optional",
|
|
39159
|
+
title: t2("dovetail.optional"),
|
|
39160
|
+
dataIndex: "optional"
|
|
39161
|
+
}, {
|
|
39162
|
+
key: "rule",
|
|
39163
|
+
title: t2("dovetail.format_requirements"),
|
|
39164
|
+
dataIndex: "rule",
|
|
39165
|
+
render: (cell) => {
|
|
39166
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("ul", {
|
|
39167
|
+
className: "rule-list",
|
|
39168
|
+
children: cell.map((rule2, index2) => /* @__PURE__ */ jsxRuntimeExports.jsx("li", {
|
|
39169
|
+
children: rule2
|
|
39170
|
+
}, index2))
|
|
39171
|
+
});
|
|
39172
|
+
}
|
|
39173
|
+
}],
|
|
39174
|
+
pagination: false
|
|
39175
|
+
}),
|
|
39176
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Button, {
|
|
39177
|
+
size: "small",
|
|
39178
|
+
type: "link",
|
|
39179
|
+
children: t2("dovetail.look_format_requirement")
|
|
39180
|
+
})
|
|
39181
|
+
});
|
|
39182
|
+
};
|
|
39183
|
+
const KeyValueTableForm_1eydq7y = "";
|
|
39184
|
+
function _KeyValueTableFormForm(props, ref) {
|
|
39185
|
+
const {
|
|
39186
|
+
defaultValue,
|
|
39187
|
+
onSubmit,
|
|
39188
|
+
extraColumns,
|
|
39189
|
+
addButtonText
|
|
39190
|
+
} = props;
|
|
39191
|
+
const {
|
|
39192
|
+
t: t2
|
|
39193
|
+
} = useTranslation();
|
|
39194
|
+
const [value2, setValue] = useState([]);
|
|
39195
|
+
const tableFormRef = useRef(null);
|
|
39196
|
+
useImperativeHandle(ref, () => ({
|
|
39197
|
+
submit: () => {
|
|
39198
|
+
return new Promise((res, rej) => {
|
|
39199
|
+
var _a;
|
|
39200
|
+
(_a = tableFormRef.current) == null ? void 0 : _a.validateWholeFields();
|
|
39201
|
+
setTimeout(() => {
|
|
39202
|
+
var _a2;
|
|
39203
|
+
const isValid = (_a2 = tableFormRef.current) == null ? void 0 : _a2.isValid();
|
|
39204
|
+
if (isValid) {
|
|
39205
|
+
res(onSubmit(value2));
|
|
39206
|
+
} else {
|
|
39207
|
+
rej();
|
|
39208
|
+
}
|
|
39209
|
+
}, 0);
|
|
39210
|
+
});
|
|
39211
|
+
}
|
|
39212
|
+
}), [onSubmit, value2]);
|
|
39213
|
+
const renderTextAreaFunc = ({
|
|
39214
|
+
value: value22,
|
|
39215
|
+
onChange
|
|
39216
|
+
}) => {
|
|
39217
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(TextArea, {
|
|
39218
|
+
autoSize: true,
|
|
39219
|
+
className: "clsjtk2",
|
|
39220
|
+
size: "small",
|
|
39221
|
+
value: value22,
|
|
39222
|
+
onChange: (e2) => {
|
|
39223
|
+
onChange(e2.target.value);
|
|
39224
|
+
}
|
|
39225
|
+
});
|
|
39226
|
+
};
|
|
39227
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Space, {
|
|
39228
|
+
size: 8,
|
|
39229
|
+
direction: "vertical",
|
|
39230
|
+
className: "cq3mbby",
|
|
39231
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(TableForm, {
|
|
39232
|
+
ref: tableFormRef,
|
|
39233
|
+
onBodyChange: (value22) => {
|
|
39234
|
+
setValue(value22);
|
|
39235
|
+
},
|
|
39236
|
+
columns: [{
|
|
39237
|
+
key: "key",
|
|
39238
|
+
title: t2("dovetail.key"),
|
|
39239
|
+
type: "input",
|
|
39240
|
+
validator: ({
|
|
39241
|
+
value: value22
|
|
39242
|
+
}) => {
|
|
39243
|
+
if (!value22)
|
|
39244
|
+
return t2("dovetail.key_empty_text");
|
|
39245
|
+
const {
|
|
39246
|
+
isValid
|
|
39247
|
+
} = validateLabelKey(value22 || "");
|
|
39248
|
+
if (!isValid)
|
|
39249
|
+
return t2("dovetail.format_error");
|
|
39250
|
+
},
|
|
39251
|
+
render: renderTextAreaFunc
|
|
39252
|
+
}, {
|
|
39253
|
+
key: "value",
|
|
39254
|
+
title: t2("dovetail.value_optional"),
|
|
39255
|
+
type: "input",
|
|
39256
|
+
validator: ({
|
|
39257
|
+
value: value22
|
|
39258
|
+
}) => {
|
|
39259
|
+
const {
|
|
39260
|
+
isValid
|
|
39261
|
+
} = validateLabelValue(value22 || "");
|
|
39262
|
+
if (!isValid)
|
|
39263
|
+
return t2("dovetail.format_error");
|
|
39264
|
+
},
|
|
39265
|
+
render: renderTextAreaFunc
|
|
39266
|
+
}, ...extraColumns || []],
|
|
39267
|
+
disableBatchFilling: true,
|
|
39268
|
+
hideEmptyTable: true,
|
|
39269
|
+
rowAddConfig: {
|
|
39270
|
+
addible: true,
|
|
39271
|
+
text: () => addButtonText
|
|
39272
|
+
},
|
|
39273
|
+
defaultData: defaultValue,
|
|
39274
|
+
row: {
|
|
39275
|
+
deletable: true
|
|
39276
|
+
}
|
|
39277
|
+
}), /* @__PURE__ */ jsxRuntimeExports.jsx(LabelFormatPopover, {})]
|
|
39278
|
+
});
|
|
39279
|
+
}
|
|
39280
|
+
const KeyValueTableFormForm = React__default.forwardRef(_KeyValueTableFormForm);
|
|
39020
39281
|
const EditLabelForm = React__default.forwardRef(
|
|
39021
39282
|
function EditLabelForm2(props, ref) {
|
|
39022
39283
|
var _a;
|
|
39023
39284
|
const { resourceModel } = props;
|
|
39024
39285
|
const { mutateAsync } = useUpdate();
|
|
39025
39286
|
const { t: t2 } = useTranslation();
|
|
39026
|
-
const [value2, setValue] = useState([]);
|
|
39027
39287
|
const defaultValue = useMemo(() => {
|
|
39028
39288
|
var _a2;
|
|
39029
39289
|
return Object.keys(((_a2 = resourceModel.metadata) == null ? void 0 : _a2.labels) || {}).map((key2) => {
|
|
39030
39290
|
var _a3, _b;
|
|
39031
|
-
return { key: key2, value: (_b = (_a3 = resourceModel.metadata) == null ? void 0 : _a3.labels) == null ? void 0 : _b[key2] };
|
|
39291
|
+
return { key: key2, value: ((_b = (_a3 = resourceModel.metadata) == null ? void 0 : _a3.labels) == null ? void 0 : _b[key2]) || "" };
|
|
39032
39292
|
});
|
|
39033
39293
|
}, [(_a = resourceModel.metadata) == null ? void 0 : _a.labels]);
|
|
39034
|
-
const
|
|
39035
|
-
|
|
39036
|
-
|
|
39037
|
-
|
|
39038
|
-
|
|
39039
|
-
|
|
39040
|
-
|
|
39041
|
-
|
|
39042
|
-
|
|
39043
|
-
|
|
39044
|
-
|
|
39045
|
-
|
|
39046
|
-
|
|
39047
|
-
|
|
39048
|
-
|
|
39049
|
-
|
|
39050
|
-
|
|
39051
|
-
|
|
39052
|
-
|
|
39053
|
-
|
|
39054
|
-
|
|
39055
|
-
|
|
39056
|
-
|
|
39057
|
-
|
|
39058
|
-
|
|
39059
|
-
|
|
39060
|
-
|
|
39061
|
-
|
|
39062
|
-
|
|
39063
|
-
|
|
39064
|
-
|
|
39065
|
-
|
|
39066
|
-
() => ({
|
|
39067
|
-
submit
|
|
39068
|
-
}),
|
|
39069
|
-
[submit]
|
|
39294
|
+
const onSubmit = useCallback(
|
|
39295
|
+
(value2) => {
|
|
39296
|
+
const newLabels = {};
|
|
39297
|
+
value2.forEach(({ key: key2, value: value22 }) => {
|
|
39298
|
+
newLabels[key2] = value22 || "";
|
|
39299
|
+
});
|
|
39300
|
+
const newYaml = resourceModel.updateLabel(newLabels);
|
|
39301
|
+
pruneBeforeEdit(newYaml);
|
|
39302
|
+
return mutateAsync({
|
|
39303
|
+
id: resourceModel.id,
|
|
39304
|
+
resource: resourceModel.name || "",
|
|
39305
|
+
values: newYaml,
|
|
39306
|
+
meta: {
|
|
39307
|
+
resourceBasePath: resourceModel.apiVersion,
|
|
39308
|
+
kind: resourceModel.kind
|
|
39309
|
+
},
|
|
39310
|
+
successNotification() {
|
|
39311
|
+
return {
|
|
39312
|
+
message: t2("dovetail.edit_label_success_toast", {
|
|
39313
|
+
kind: resourceModel.kind,
|
|
39314
|
+
name: resourceModel.metadata.name,
|
|
39315
|
+
interpolation: {
|
|
39316
|
+
escapeValue: false
|
|
39317
|
+
}
|
|
39318
|
+
}),
|
|
39319
|
+
type: "success"
|
|
39320
|
+
};
|
|
39321
|
+
},
|
|
39322
|
+
errorNotification: false
|
|
39323
|
+
});
|
|
39324
|
+
},
|
|
39325
|
+
[resourceModel, mutateAsync, t2]
|
|
39070
39326
|
);
|
|
39071
39327
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
39072
|
-
|
|
39328
|
+
KeyValueTableFormForm,
|
|
39073
39329
|
{
|
|
39074
|
-
|
|
39075
|
-
|
|
39076
|
-
|
|
39077
|
-
|
|
39078
|
-
{
|
|
39079
|
-
key: "key",
|
|
39080
|
-
title: t2("dovetail.key"),
|
|
39081
|
-
type: "input"
|
|
39082
|
-
},
|
|
39083
|
-
{
|
|
39084
|
-
key: "value",
|
|
39085
|
-
title: t2("dovetail.value"),
|
|
39086
|
-
type: "input"
|
|
39087
|
-
}
|
|
39088
|
-
],
|
|
39089
|
-
disableBatchFilling: true,
|
|
39090
|
-
rowAddConfig: {
|
|
39091
|
-
addible: true
|
|
39092
|
-
},
|
|
39093
|
-
defaultData: defaultValue,
|
|
39094
|
-
row: {
|
|
39095
|
-
deletable: true
|
|
39096
|
-
}
|
|
39330
|
+
ref,
|
|
39331
|
+
defaultValue,
|
|
39332
|
+
onSubmit,
|
|
39333
|
+
addButtonText: t2("dovetail.add_label")
|
|
39097
39334
|
}
|
|
39098
39335
|
);
|
|
39099
39336
|
}
|
|
@@ -39130,24 +39367,23 @@ function EditLabelDropdownMenuItem(props) {
|
|
|
39130
39367
|
}
|
|
39131
39368
|
);
|
|
39132
39369
|
}
|
|
39133
|
-
const EditAnnotationForm = React__default.forwardRef(
|
|
39134
|
-
|
|
39135
|
-
|
|
39136
|
-
|
|
39137
|
-
|
|
39138
|
-
|
|
39139
|
-
|
|
39140
|
-
|
|
39141
|
-
var
|
|
39142
|
-
return
|
|
39143
|
-
|
|
39144
|
-
|
|
39145
|
-
|
|
39146
|
-
|
|
39147
|
-
const submit = useCallback(() => {
|
|
39370
|
+
const EditAnnotationForm = React__default.forwardRef(function EditAnnotationForm2(props, ref) {
|
|
39371
|
+
var _a;
|
|
39372
|
+
const { resourceModel } = props;
|
|
39373
|
+
const { mutateAsync } = useUpdate();
|
|
39374
|
+
const { t: t2 } = useTranslation();
|
|
39375
|
+
const defaultValue = useMemo(() => {
|
|
39376
|
+
var _a2;
|
|
39377
|
+
return Object.keys(((_a2 = resourceModel.metadata) == null ? void 0 : _a2.annotations) || {}).map((key2) => {
|
|
39378
|
+
var _a3, _b;
|
|
39379
|
+
return { key: key2, value: ((_b = (_a3 = resourceModel.metadata) == null ? void 0 : _a3.annotations) == null ? void 0 : _b[key2]) || "" };
|
|
39380
|
+
});
|
|
39381
|
+
}, [(_a = resourceModel.metadata) == null ? void 0 : _a.annotations]);
|
|
39382
|
+
const onSubmit = useCallback(
|
|
39383
|
+
(value2) => {
|
|
39148
39384
|
const newAnnotations = {};
|
|
39149
39385
|
value2.forEach(({ key: key2, value: value22 }) => {
|
|
39150
|
-
newAnnotations[key2] = value22;
|
|
39386
|
+
newAnnotations[key2] = value22 || "";
|
|
39151
39387
|
});
|
|
39152
39388
|
const newYaml = resourceModel.updateAnnotation(newAnnotations);
|
|
39153
39389
|
pruneBeforeEdit(newYaml);
|
|
@@ -39173,44 +39409,19 @@ const EditAnnotationForm = React__default.forwardRef(
|
|
|
39173
39409
|
},
|
|
39174
39410
|
errorNotification: false
|
|
39175
39411
|
});
|
|
39176
|
-
},
|
|
39177
|
-
|
|
39412
|
+
},
|
|
39413
|
+
[resourceModel, mutateAsync, t2]
|
|
39414
|
+
);
|
|
39415
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
39416
|
+
KeyValueTableFormForm,
|
|
39417
|
+
{
|
|
39178
39418
|
ref,
|
|
39179
|
-
|
|
39180
|
-
|
|
39181
|
-
|
|
39182
|
-
|
|
39183
|
-
|
|
39184
|
-
|
|
39185
|
-
TableForm,
|
|
39186
|
-
{
|
|
39187
|
-
onBodyChange: (value22) => {
|
|
39188
|
-
setValue(value22);
|
|
39189
|
-
},
|
|
39190
|
-
columns: [
|
|
39191
|
-
{
|
|
39192
|
-
key: "key",
|
|
39193
|
-
title: t2("dovetail.key"),
|
|
39194
|
-
type: "input"
|
|
39195
|
-
},
|
|
39196
|
-
{
|
|
39197
|
-
key: "value",
|
|
39198
|
-
title: t2("dovetail.value"),
|
|
39199
|
-
type: "input"
|
|
39200
|
-
}
|
|
39201
|
-
],
|
|
39202
|
-
disableBatchFilling: true,
|
|
39203
|
-
rowAddConfig: {
|
|
39204
|
-
addible: true
|
|
39205
|
-
},
|
|
39206
|
-
defaultData: defaultValue,
|
|
39207
|
-
row: {
|
|
39208
|
-
deletable: true
|
|
39209
|
-
}
|
|
39210
|
-
}
|
|
39211
|
-
);
|
|
39212
|
-
}
|
|
39213
|
-
);
|
|
39419
|
+
defaultValue,
|
|
39420
|
+
onSubmit,
|
|
39421
|
+
addButtonText: t2("dovetail.add_annotation")
|
|
39422
|
+
}
|
|
39423
|
+
);
|
|
39424
|
+
});
|
|
39214
39425
|
function EditAnnotationDropdownMenuItem(props) {
|
|
39215
39426
|
const { formRef, resourceModel } = props;
|
|
39216
39427
|
const { t: t2 } = useTranslation();
|
|
@@ -39243,6 +39454,179 @@ function EditAnnotationDropdownMenuItem(props) {
|
|
|
39243
39454
|
}
|
|
39244
39455
|
);
|
|
39245
39456
|
}
|
|
39457
|
+
const EditNodeTaintForm_cgov7z = "";
|
|
39458
|
+
const UlStyle = "u19jcs7t";
|
|
39459
|
+
const EditNodeTaintForm = React__default.forwardRef(function EditNodeTaintForm2(props, ref) {
|
|
39460
|
+
const {
|
|
39461
|
+
nodeModel
|
|
39462
|
+
} = props;
|
|
39463
|
+
const {
|
|
39464
|
+
mutateAsync
|
|
39465
|
+
} = useUpdate();
|
|
39466
|
+
const {
|
|
39467
|
+
t: t2
|
|
39468
|
+
} = useTranslation();
|
|
39469
|
+
const defaultValue = useMemo(() => {
|
|
39470
|
+
var _a;
|
|
39471
|
+
return ((_a = nodeModel._rawYaml.spec) == null ? void 0 : _a.taints) || [];
|
|
39472
|
+
}, [nodeModel]);
|
|
39473
|
+
const onSubmit = useCallback((_value) => {
|
|
39474
|
+
const value2 = _value;
|
|
39475
|
+
const newYaml = nodeModel._globalStore.restoreItem(nodeModel);
|
|
39476
|
+
if (newYaml.spec) {
|
|
39477
|
+
newYaml.spec.taints = value2;
|
|
39478
|
+
}
|
|
39479
|
+
pruneBeforeEdit(newYaml);
|
|
39480
|
+
return mutateAsync({
|
|
39481
|
+
id: nodeModel.id,
|
|
39482
|
+
resource: nodeModel.name || "",
|
|
39483
|
+
values: newYaml,
|
|
39484
|
+
meta: {
|
|
39485
|
+
resourceBasePath: nodeModel.apiVersion,
|
|
39486
|
+
kind: nodeModel.kind
|
|
39487
|
+
},
|
|
39488
|
+
successNotification() {
|
|
39489
|
+
return {
|
|
39490
|
+
message: t2("dovetail.edit_node_taint_success_toast", {
|
|
39491
|
+
kind: nodeModel.kind,
|
|
39492
|
+
name: nodeModel.metadata.name,
|
|
39493
|
+
interpolation: {
|
|
39494
|
+
escapeValue: false
|
|
39495
|
+
}
|
|
39496
|
+
}),
|
|
39497
|
+
type: "success"
|
|
39498
|
+
};
|
|
39499
|
+
},
|
|
39500
|
+
errorNotification: false
|
|
39501
|
+
});
|
|
39502
|
+
}, [nodeModel, mutateAsync, t2]);
|
|
39503
|
+
const noScheduleTooltip = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
39504
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx("b", {
|
|
39505
|
+
children: "NoSchedule"
|
|
39506
|
+
}), /* @__PURE__ */ jsxRuntimeExports.jsxs("ul", {
|
|
39507
|
+
className: UlStyle,
|
|
39508
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx("li", {
|
|
39509
|
+
children: t2("dovetail.taint_effect_NoSchedule_tooltip_1")
|
|
39510
|
+
}), /* @__PURE__ */ jsxRuntimeExports.jsx("li", {
|
|
39511
|
+
children: t2("dovetail.taint_effect_NoSchedule_tooltip_2")
|
|
39512
|
+
})]
|
|
39513
|
+
})]
|
|
39514
|
+
});
|
|
39515
|
+
const preferNoScheduleTooltip = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
39516
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx("b", {
|
|
39517
|
+
children: "PreferNoSchedule"
|
|
39518
|
+
}), /* @__PURE__ */ jsxRuntimeExports.jsxs("ul", {
|
|
39519
|
+
className: UlStyle,
|
|
39520
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx("li", {
|
|
39521
|
+
children: t2("dovetail.taint_effect_PreferNoSchedule_tooltip_1")
|
|
39522
|
+
}), /* @__PURE__ */ jsxRuntimeExports.jsx("li", {
|
|
39523
|
+
children: t2("dovetail.taint_effect_PreferNoSchedule_tooltip_2")
|
|
39524
|
+
}), /* @__PURE__ */ jsxRuntimeExports.jsx("li", {
|
|
39525
|
+
children: t2("dovetail.taint_effect_PreferNoSchedule_tooltip_3")
|
|
39526
|
+
})]
|
|
39527
|
+
})]
|
|
39528
|
+
});
|
|
39529
|
+
const noExecuteTooltip = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
39530
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx("b", {
|
|
39531
|
+
children: "NoExecute"
|
|
39532
|
+
}), /* @__PURE__ */ jsxRuntimeExports.jsx("ul", {
|
|
39533
|
+
className: UlStyle,
|
|
39534
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx("li", {
|
|
39535
|
+
children: t2("dovetail.taint_effect_NoExecute_tooltip_3")
|
|
39536
|
+
})
|
|
39537
|
+
})]
|
|
39538
|
+
});
|
|
39539
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(KeyValueTableFormForm, {
|
|
39540
|
+
ref,
|
|
39541
|
+
defaultValue,
|
|
39542
|
+
onSubmit,
|
|
39543
|
+
addButtonText: t2("dovetail.add_taint"),
|
|
39544
|
+
extraColumns: [{
|
|
39545
|
+
key: "effect",
|
|
39546
|
+
title: t2("dovetail.effect"),
|
|
39547
|
+
render: ({
|
|
39548
|
+
value: value2,
|
|
39549
|
+
onChange
|
|
39550
|
+
}) => {
|
|
39551
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Select, {
|
|
39552
|
+
input: {},
|
|
39553
|
+
value: value2,
|
|
39554
|
+
onChange,
|
|
39555
|
+
size: "small",
|
|
39556
|
+
children: getOptions([{
|
|
39557
|
+
value: "NoSchedule",
|
|
39558
|
+
children: t2(`dovetail.node_taint_${"NoSchedule"}`),
|
|
39559
|
+
suffix: /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip, {
|
|
39560
|
+
title: noScheduleTooltip,
|
|
39561
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon$1, {
|
|
39562
|
+
src: InfoICircleFill16GrayIcon,
|
|
39563
|
+
hoverSrc: InfoICircleFill16Gray70Icon
|
|
39564
|
+
})
|
|
39565
|
+
})
|
|
39566
|
+
}, {
|
|
39567
|
+
value: "PreferNoSchedule",
|
|
39568
|
+
children: t2(`dovetail.node_taint_${"PreferNoSchedule"}`),
|
|
39569
|
+
suffix: /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip, {
|
|
39570
|
+
title: preferNoScheduleTooltip,
|
|
39571
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon$1, {
|
|
39572
|
+
src: InfoICircleFill16GrayIcon,
|
|
39573
|
+
hoverSrc: InfoICircleFill16Gray70Icon
|
|
39574
|
+
})
|
|
39575
|
+
})
|
|
39576
|
+
}, {
|
|
39577
|
+
value: "NoExecute",
|
|
39578
|
+
children: t2(`dovetail.node_taint_${"NoExecute"}`),
|
|
39579
|
+
suffix: /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip, {
|
|
39580
|
+
title: noExecuteTooltip,
|
|
39581
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon$1, {
|
|
39582
|
+
src: InfoICircleFill16GrayIcon,
|
|
39583
|
+
hoverSrc: InfoICircleFill16Gray70Icon
|
|
39584
|
+
})
|
|
39585
|
+
})
|
|
39586
|
+
}])
|
|
39587
|
+
});
|
|
39588
|
+
},
|
|
39589
|
+
validator: ({
|
|
39590
|
+
value: value2
|
|
39591
|
+
}) => {
|
|
39592
|
+
if (!value2)
|
|
39593
|
+
return t2("dovetail.taint_effect_empty_text");
|
|
39594
|
+
}
|
|
39595
|
+
}]
|
|
39596
|
+
});
|
|
39597
|
+
});
|
|
39598
|
+
function EditNodeTaintDropdownMenuItem(props) {
|
|
39599
|
+
const { formRef, resourceModel } = props;
|
|
39600
|
+
const { t: t2 } = useTranslation();
|
|
39601
|
+
const pushModal = usePushModal();
|
|
39602
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
39603
|
+
Menu$1.Item,
|
|
39604
|
+
{
|
|
39605
|
+
className: "ant-dropdown-menu-item",
|
|
39606
|
+
onClick: () => {
|
|
39607
|
+
const modalProps = {
|
|
39608
|
+
formRef,
|
|
39609
|
+
title: t2("dovetail.edit_node_taint"),
|
|
39610
|
+
fullscreen: true,
|
|
39611
|
+
renderContent() {
|
|
39612
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
39613
|
+
EditNodeTaintForm,
|
|
39614
|
+
{
|
|
39615
|
+
ref: formRef,
|
|
39616
|
+
nodeModel: resourceModel
|
|
39617
|
+
}
|
|
39618
|
+
);
|
|
39619
|
+
}
|
|
39620
|
+
};
|
|
39621
|
+
pushModal({
|
|
39622
|
+
component: EditFieldModal,
|
|
39623
|
+
props: modalProps
|
|
39624
|
+
});
|
|
39625
|
+
},
|
|
39626
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon$1, { src: EditPen16BlueIcon, children: t2("dovetail.edit_node_taint") })
|
|
39627
|
+
}
|
|
39628
|
+
);
|
|
39629
|
+
}
|
|
39246
39630
|
const index_sazpyf = "";
|
|
39247
39631
|
const WrapperStyle = "wfg6u6g";
|
|
39248
39632
|
const InnerBar = ({
|
|
@@ -40482,7 +40866,7 @@ export {
|
|
|
40482
40866
|
useGlobalStore as Z,
|
|
40483
40867
|
useOpenForm as _,
|
|
40484
40868
|
useApiGroupSchema as a,
|
|
40485
|
-
|
|
40869
|
+
PodSelectorField as a$,
|
|
40486
40870
|
WidgetErrorContent as a0,
|
|
40487
40871
|
Breadcrumb as a1,
|
|
40488
40872
|
NameInputWidget as a2,
|
|
@@ -40493,33 +40877,33 @@ export {
|
|
|
40493
40877
|
namespaceRules as a7,
|
|
40494
40878
|
KeyValueListWidget as a8,
|
|
40495
40879
|
MetadataForm as a9,
|
|
40496
|
-
|
|
40497
|
-
|
|
40498
|
-
|
|
40499
|
-
|
|
40500
|
-
|
|
40501
|
-
|
|
40502
|
-
|
|
40503
|
-
|
|
40504
|
-
|
|
40505
|
-
|
|
40506
|
-
|
|
40507
|
-
|
|
40508
|
-
|
|
40509
|
-
|
|
40510
|
-
|
|
40511
|
-
|
|
40512
|
-
|
|
40513
|
-
|
|
40514
|
-
|
|
40515
|
-
|
|
40516
|
-
|
|
40517
|
-
|
|
40518
|
-
|
|
40519
|
-
|
|
40520
|
-
|
|
40521
|
-
|
|
40522
|
-
|
|
40880
|
+
KeyValueSecret as aA,
|
|
40881
|
+
Separator as aB,
|
|
40882
|
+
YamlEditorComponent as aC,
|
|
40883
|
+
DeleteButton as aD,
|
|
40884
|
+
Layout as aE,
|
|
40885
|
+
AreaType as aF,
|
|
40886
|
+
ImageField as aG,
|
|
40887
|
+
ReplicaField as aH,
|
|
40888
|
+
ConditionsField as aI,
|
|
40889
|
+
NodeTaintsField as aJ,
|
|
40890
|
+
PodsField as aK,
|
|
40891
|
+
JobsField as aL,
|
|
40892
|
+
DataField as aM,
|
|
40893
|
+
SecretDataField as aN,
|
|
40894
|
+
StartTimeField as aO,
|
|
40895
|
+
ServiceTypeField as aP,
|
|
40896
|
+
ClusterIpField as aQ,
|
|
40897
|
+
SessionAffinityField as aR,
|
|
40898
|
+
ServicePodsField as aS,
|
|
40899
|
+
IngressRulesTableTabField as aT,
|
|
40900
|
+
EventsTableTabField as aU,
|
|
40901
|
+
NamespaceField as aV,
|
|
40902
|
+
AgeField as aW,
|
|
40903
|
+
LabelsField as aX,
|
|
40904
|
+
AnnotationsField as aY,
|
|
40905
|
+
ServiceInnerClusterAccessField as aZ,
|
|
40906
|
+
ServiceOutClusterAccessField as a_,
|
|
40523
40907
|
PageShow as aa,
|
|
40524
40908
|
Time as ab,
|
|
40525
40909
|
ConditionsTable as ac,
|
|
@@ -40539,152 +40923,155 @@ export {
|
|
|
40539
40923
|
K8sDropdown as aq,
|
|
40540
40924
|
EditLabelDropdownMenuItem as ar,
|
|
40541
40925
|
EditAnnotationDropdownMenuItem as as,
|
|
40542
|
-
|
|
40543
|
-
|
|
40544
|
-
|
|
40545
|
-
|
|
40546
|
-
|
|
40547
|
-
|
|
40548
|
-
|
|
40926
|
+
EditNodeTaintDropdownMenuItem as at,
|
|
40927
|
+
ResourceUsageBar as au,
|
|
40928
|
+
WorkloadReplicasForm as av,
|
|
40929
|
+
WorkloadReplicas as aw,
|
|
40930
|
+
CronjobJobsTable as ax,
|
|
40931
|
+
KeyValue as ay,
|
|
40932
|
+
KeyValueAnnotation as az,
|
|
40549
40933
|
useSchema as b,
|
|
40550
|
-
|
|
40551
|
-
|
|
40552
|
-
|
|
40553
|
-
|
|
40554
|
-
|
|
40555
|
-
|
|
40556
|
-
|
|
40557
|
-
|
|
40558
|
-
|
|
40559
|
-
|
|
40560
|
-
|
|
40561
|
-
|
|
40562
|
-
|
|
40563
|
-
|
|
40564
|
-
|
|
40565
|
-
|
|
40566
|
-
|
|
40567
|
-
|
|
40568
|
-
|
|
40569
|
-
|
|
40570
|
-
|
|
40571
|
-
|
|
40572
|
-
|
|
40573
|
-
|
|
40574
|
-
|
|
40575
|
-
|
|
40576
|
-
|
|
40577
|
-
|
|
40578
|
-
|
|
40579
|
-
|
|
40580
|
-
|
|
40581
|
-
|
|
40582
|
-
|
|
40583
|
-
|
|
40584
|
-
|
|
40585
|
-
|
|
40586
|
-
|
|
40587
|
-
|
|
40588
|
-
|
|
40589
|
-
|
|
40590
|
-
|
|
40591
|
-
|
|
40592
|
-
|
|
40593
|
-
|
|
40594
|
-
|
|
40595
|
-
|
|
40596
|
-
|
|
40597
|
-
|
|
40598
|
-
|
|
40599
|
-
|
|
40600
|
-
|
|
40601
|
-
|
|
40602
|
-
|
|
40603
|
-
|
|
40604
|
-
|
|
40605
|
-
|
|
40606
|
-
|
|
40607
|
-
|
|
40608
|
-
|
|
40609
|
-
|
|
40610
|
-
|
|
40611
|
-
|
|
40612
|
-
|
|
40613
|
-
|
|
40934
|
+
NetworkPolicyRulesViewer as b$,
|
|
40935
|
+
PortsTableField as b0,
|
|
40936
|
+
DurationField as b1,
|
|
40937
|
+
StorageClassProvisionerField as b2,
|
|
40938
|
+
StorageClassPvField as b3,
|
|
40939
|
+
PVCapacityField as b4,
|
|
40940
|
+
PVCStorageField as b5,
|
|
40941
|
+
PVRefField as b6,
|
|
40942
|
+
PVStorageClassField as b7,
|
|
40943
|
+
PVPhaseField as b8,
|
|
40944
|
+
PVVolumeModeField as b9,
|
|
40945
|
+
ResourceTableGroup as bA,
|
|
40946
|
+
ShowGroupComponent as bB,
|
|
40947
|
+
ShowContent as bC,
|
|
40948
|
+
DeleteManyButton as bD,
|
|
40949
|
+
ListPage as bE,
|
|
40950
|
+
StateTag as bF,
|
|
40951
|
+
DrawerShow as bG,
|
|
40952
|
+
Menu as bH,
|
|
40953
|
+
Table as bI,
|
|
40954
|
+
EditButton as bJ,
|
|
40955
|
+
ReferenceLink as bK,
|
|
40956
|
+
ResourceLink as bL,
|
|
40957
|
+
NS_STORE_KEY as bM,
|
|
40958
|
+
ALL_NS as bN,
|
|
40959
|
+
useNamespacesFilter as bO,
|
|
40960
|
+
NamespacesFilter as bP,
|
|
40961
|
+
FormModal as bQ,
|
|
40962
|
+
RefineFormContent as bR,
|
|
40963
|
+
RefineFormPage as bS,
|
|
40964
|
+
SchemaStrategy as bT,
|
|
40965
|
+
YamlForm as bU,
|
|
40966
|
+
useRefineForm as bV,
|
|
40967
|
+
ServiceInClusterAccessComponent as bW,
|
|
40968
|
+
ServiceOutClusterAccessComponent as bX,
|
|
40969
|
+
Tags as bY,
|
|
40970
|
+
TextTags as bZ,
|
|
40971
|
+
PodLog as b_,
|
|
40972
|
+
PVAccessModeField as ba,
|
|
40973
|
+
PVCPodsField as bb,
|
|
40974
|
+
PVCRefField as bc,
|
|
40975
|
+
PVCSIRefField as bd,
|
|
40976
|
+
IsDefaultSCField as be,
|
|
40977
|
+
SCReclaimPolicyField as bf,
|
|
40978
|
+
IsSCAllowVolumeExpansionField as bg,
|
|
40979
|
+
ResourceTableField as bh,
|
|
40980
|
+
EventsTab as bi,
|
|
40981
|
+
PodLogTab as bj,
|
|
40982
|
+
BasicGroup as bk,
|
|
40983
|
+
PodsGroup as bl,
|
|
40984
|
+
PodContainersGroup as bm,
|
|
40985
|
+
ServicePodsGroup as bn,
|
|
40986
|
+
PVCPodsGroup as bo,
|
|
40987
|
+
ConditionsGroup as bp,
|
|
40988
|
+
NodeTaintsGroup as bq,
|
|
40989
|
+
SecretDataGroup as br,
|
|
40990
|
+
JobsGroup as bs,
|
|
40991
|
+
IngressRulesGroup as bt,
|
|
40992
|
+
PodSelectorGroup as bu,
|
|
40993
|
+
PortsGroup as bv,
|
|
40994
|
+
DataGroup as bw,
|
|
40995
|
+
NetworkPolicyIngressRulesGroup as bx,
|
|
40996
|
+
NetworkPolicyEgressRulesGroup as by,
|
|
40997
|
+
StorageClassPvGroup as bz,
|
|
40614
40998
|
useDeleteModal as c,
|
|
40615
|
-
|
|
40616
|
-
|
|
40617
|
-
|
|
40618
|
-
|
|
40619
|
-
|
|
40620
|
-
|
|
40621
|
-
|
|
40622
|
-
|
|
40623
|
-
|
|
40624
|
-
|
|
40625
|
-
|
|
40626
|
-
|
|
40627
|
-
|
|
40628
|
-
|
|
40629
|
-
|
|
40630
|
-
|
|
40631
|
-
|
|
40632
|
-
|
|
40633
|
-
|
|
40634
|
-
|
|
40635
|
-
|
|
40636
|
-
|
|
40637
|
-
|
|
40638
|
-
|
|
40639
|
-
|
|
40640
|
-
|
|
40641
|
-
|
|
40642
|
-
|
|
40643
|
-
|
|
40644
|
-
|
|
40645
|
-
|
|
40646
|
-
|
|
40647
|
-
|
|
40648
|
-
|
|
40649
|
-
|
|
40650
|
-
|
|
40651
|
-
|
|
40652
|
-
|
|
40653
|
-
|
|
40654
|
-
|
|
40655
|
-
|
|
40656
|
-
|
|
40657
|
-
|
|
40658
|
-
|
|
40659
|
-
|
|
40660
|
-
|
|
40661
|
-
|
|
40662
|
-
|
|
40663
|
-
|
|
40664
|
-
|
|
40665
|
-
|
|
40666
|
-
|
|
40667
|
-
|
|
40668
|
-
|
|
40669
|
-
|
|
40670
|
-
|
|
40671
|
-
|
|
40672
|
-
|
|
40673
|
-
|
|
40674
|
-
|
|
40675
|
-
|
|
40676
|
-
|
|
40677
|
-
|
|
40678
|
-
|
|
40999
|
+
PersistentVolumeModel as c$,
|
|
41000
|
+
PVVolumeModeDisplay as c0,
|
|
41001
|
+
Tabs as c1,
|
|
41002
|
+
ResourceSelect as c2,
|
|
41003
|
+
SocketStatus as c3,
|
|
41004
|
+
Shell as c4,
|
|
41005
|
+
PodShellModal as c5,
|
|
41006
|
+
PodShell as c6,
|
|
41007
|
+
ResourceTable as c7,
|
|
41008
|
+
ErrorWrapper as c8,
|
|
41009
|
+
ErrorContentType as c9,
|
|
41010
|
+
PVC_INIT_VALUE as cA,
|
|
41011
|
+
ResourceState as cB,
|
|
41012
|
+
AccessControlAuth as cC,
|
|
41013
|
+
Dovetail as cD,
|
|
41014
|
+
RESOURCE_GROUP as cE,
|
|
41015
|
+
FormType as cF,
|
|
41016
|
+
ComponentContext as cG,
|
|
41017
|
+
GlobalStoreContext as cH,
|
|
41018
|
+
ConfigsContext as cI,
|
|
41019
|
+
IngressModel as cJ,
|
|
41020
|
+
NetworkPolicyModel as cK,
|
|
41021
|
+
JobModel as cL,
|
|
41022
|
+
WorkloadModel as cM,
|
|
41023
|
+
WorkloadBaseModel as cN,
|
|
41024
|
+
PodModel as cO,
|
|
41025
|
+
PodMetricsModel as cP,
|
|
41026
|
+
ResourceModel as cQ,
|
|
41027
|
+
CronJobModel as cR,
|
|
41028
|
+
EventModel as cS,
|
|
41029
|
+
DeploymentModel as cT,
|
|
41030
|
+
DaemonSetModel as cU,
|
|
41031
|
+
StatefulSetModel as cV,
|
|
41032
|
+
ServiceTypeEnum as cW,
|
|
41033
|
+
ServiceModel as cX,
|
|
41034
|
+
NodeRole as cY,
|
|
41035
|
+
NodeModel as cZ,
|
|
41036
|
+
StorageClassModel as c_,
|
|
41037
|
+
BASE_INIT_VALUE as ca,
|
|
41038
|
+
DEPLOYMENT_INIT_VALUE as cb,
|
|
41039
|
+
CRONJOB_INIT_VALUE as cc,
|
|
41040
|
+
DAEMONSET_INIT_VALUE as cd,
|
|
41041
|
+
JOB_INIT_VALUE as ce,
|
|
41042
|
+
STATEFULSET_INIT_VALUE as cf,
|
|
41043
|
+
POD_INIT_VALUE as cg,
|
|
41044
|
+
SERVICE_CLUSTER_IP_INIT_VALUE as ch,
|
|
41045
|
+
SERVICE_NODE_PORT_INIT_VALUE as ci,
|
|
41046
|
+
SERVICE_LOAD_BALANCER_INIT_VALUE as cj,
|
|
41047
|
+
SERVICE_EXTERNAL_NAME_INIT_VALUE as ck,
|
|
41048
|
+
SERVICE_HEADLESS_INIT_VALUE as cl,
|
|
41049
|
+
INGRESS_INIT_VALUE as cm,
|
|
41050
|
+
NETWORK_POLICY_INIT_VALUE as cn,
|
|
41051
|
+
CONFIG_MAP_INIT_VALUE as co,
|
|
41052
|
+
SERVER_INSTANCE_INIT_VALUE as cp,
|
|
41053
|
+
REDEPLOY_TIMESTAMP_KEY as cq,
|
|
41054
|
+
SECRET_OPAQUE_INIT_VALUE as cr,
|
|
41055
|
+
SECRET_IMAGE_REPO_INIT_VALUE as cs,
|
|
41056
|
+
SECRET_BASIC_AUTH_INIT_VALUE as ct,
|
|
41057
|
+
SECRET_SSH_AUTH_INIT_VALUE as cu,
|
|
41058
|
+
SECRET_TLS_INIT_VALUE as cv,
|
|
41059
|
+
SECRET_CUSTOM_INIT_VALUE as cw,
|
|
41060
|
+
NODE_INIT_VALUE as cx,
|
|
41061
|
+
STORAGE_CLASS_INIT_VALUE as cy,
|
|
41062
|
+
PV_INIT_VALUE as cz,
|
|
40679
41063
|
dovetailRefineI18n as d,
|
|
40680
|
-
|
|
40681
|
-
|
|
40682
|
-
|
|
40683
|
-
|
|
40684
|
-
|
|
40685
|
-
|
|
40686
|
-
|
|
40687
|
-
|
|
41064
|
+
PersistentVolumeClaimModel as d0,
|
|
41065
|
+
ProviderPlugins as d1,
|
|
41066
|
+
ModelPlugin as d2,
|
|
41067
|
+
modelPlugin as d3,
|
|
41068
|
+
RelationPlugin as d4,
|
|
41069
|
+
relationPlugin as d5,
|
|
41070
|
+
generateValueFromSchema as d6,
|
|
41071
|
+
generateSchemaTypeValue as d7,
|
|
41072
|
+
resolveRef as d8,
|
|
41073
|
+
getApiVersion as d9,
|
|
41074
|
+
pruneBeforeEdit as da,
|
|
40688
41075
|
NameSpaceColumnRenderer as e,
|
|
40689
41076
|
WorkloadRestartsColumnRenderer as f,
|
|
40690
41077
|
NodeNameColumnRenderer as g,
|