@dovetail-v2/refine 0.1.11 → 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-10d71161.js → MonacoYamlDiffEditor-ae1a891e.js} +1 -1
- package/dist/{index-bf5bacd7.js → index-90c4694a.js} +392 -208
- package/dist/refine.js +175 -174
- package/dist/refine.umd.cjs +216 -32
- package/dist/style.css +50 -0
- package/lib/components/DropdownMenuItems/index.d.ts +1 -0
- package/lib/components/Form/useYamlForm.d.ts +1 -1
- package/lib/i18n.d.ts +6 -0
- package/lib/locales/zh-CN/index.d.ts +6 -0
- package/lib/types/resource.d.ts +1 -1
- package/lib/utils/schema-store.d.ts +13 -0
- package/package.json +3 -3
|
@@ -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, Popover, AntdTable, 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";
|
|
@@ -1569,6 +1569,12 @@ const suffix_format_rule_3 = "后跟斜杠 (/),即第一个 (/) 前的内容
|
|
|
1569
1569
|
const name_format_rule_1 = "由字母、数字、连字符 (-)、下划线(_) 或点 (.) 组成";
|
|
1570
1570
|
const name_format_rule_2 = "以字母或数字开头和结尾";
|
|
1571
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 调度到节点上,但无法保证完全避免。";
|
|
1572
1578
|
const dovetail = {
|
|
1573
1579
|
copy: copy$1,
|
|
1574
1580
|
reset_arguments,
|
|
@@ -1796,7 +1802,13 @@ const dovetail = {
|
|
|
1796
1802
|
suffix_format_rule_3,
|
|
1797
1803
|
name_format_rule_1,
|
|
1798
1804
|
name_format_rule_2,
|
|
1799
|
-
name_format_rule_3
|
|
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
|
|
1800
1812
|
};
|
|
1801
1813
|
const ZH = {
|
|
1802
1814
|
dovetail
|
|
@@ -8189,6 +8201,9 @@ class K8sOpenAPI {
|
|
|
8189
8201
|
}
|
|
8190
8202
|
// Fetch and process OpenAPI schemas
|
|
8191
8203
|
async fetch() {
|
|
8204
|
+
if (this.schemas) {
|
|
8205
|
+
return this.schemas;
|
|
8206
|
+
}
|
|
8192
8207
|
try {
|
|
8193
8208
|
const response = await fetch(
|
|
8194
8209
|
`${this.pathPrefix}${this.resourceBasePath}`
|
|
@@ -8236,6 +8251,24 @@ class K8sOpenAPI {
|
|
|
8236
8251
|
});
|
|
8237
8252
|
}
|
|
8238
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();
|
|
8239
8272
|
const ConstantsContext = createContext({
|
|
8240
8273
|
schemaUrlPrefix: ""
|
|
8241
8274
|
});
|
|
@@ -8254,8 +8287,7 @@ function useApiGroupSchema() {
|
|
|
8254
8287
|
if (state2.schemasMap[apiGroup]) {
|
|
8255
8288
|
return { apiGroup, schemas: state2.schemasMap[apiGroup] };
|
|
8256
8289
|
}
|
|
8257
|
-
const
|
|
8258
|
-
const groupSchemas = await openapi.fetch();
|
|
8290
|
+
const groupSchemas = await schemaStore.fetchSchemas(apiGroup, schemaUrlPrefix);
|
|
8259
8291
|
return { apiGroup, schemas: groupSchemas || [] };
|
|
8260
8292
|
})
|
|
8261
8293
|
);
|
|
@@ -8284,20 +8316,12 @@ function useSchema(options) {
|
|
|
8284
8316
|
const useResourceResult = useResource();
|
|
8285
8317
|
const resource = (options == null ? void 0 : options.resource) || useResourceResult.resource;
|
|
8286
8318
|
const { schemaUrlPrefix } = useContext(ConstantsContext);
|
|
8287
|
-
const openapi = useMemo(
|
|
8288
|
-
() => {
|
|
8289
|
-
var _a2;
|
|
8290
|
-
return new K8sOpenAPI((_a2 = resource == null ? void 0 : resource.meta) == null ? void 0 : _a2.resourceBasePath, schemaUrlPrefix);
|
|
8291
|
-
},
|
|
8292
|
-
[(_a = resource == null ? void 0 : resource.meta) == null ? void 0 : _a.resourceBasePath, schemaUrlPrefix]
|
|
8293
|
-
);
|
|
8294
8319
|
const fetchSchema = useCallback(async () => {
|
|
8295
|
-
var _a2;
|
|
8320
|
+
var _a2, _b2;
|
|
8296
8321
|
setLoading(true);
|
|
8297
8322
|
setError(null);
|
|
8298
8323
|
try {
|
|
8299
|
-
await
|
|
8300
|
-
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);
|
|
8301
8325
|
setSchema(schema2 || null);
|
|
8302
8326
|
setError(null);
|
|
8303
8327
|
} catch (e2) {
|
|
@@ -8305,7 +8329,7 @@ function useSchema(options) {
|
|
|
8305
8329
|
} finally {
|
|
8306
8330
|
setLoading(false);
|
|
8307
8331
|
}
|
|
8308
|
-
}, [(_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]);
|
|
8309
8333
|
useEffect(() => {
|
|
8310
8334
|
if (options == null ? void 0 : options.skip)
|
|
8311
8335
|
return;
|
|
@@ -8930,11 +8954,6 @@ function Table$1(props) {
|
|
|
8930
8954
|
} = props;
|
|
8931
8955
|
const auxiliaryLineRef = useRef(null);
|
|
8932
8956
|
const wrapperRef = useRef(null);
|
|
8933
|
-
useMemo(() => ({
|
|
8934
|
-
current: currentPage,
|
|
8935
|
-
pageSize: defaultSize,
|
|
8936
|
-
onChange: onPageChange
|
|
8937
|
-
}), [currentPage, defaultSize, onPageChange]);
|
|
8938
8957
|
const finalColumns = useMemo(() => {
|
|
8939
8958
|
if (RowMenu) {
|
|
8940
8959
|
const actionColumn = {
|
|
@@ -9532,10 +9551,8 @@ const DistributeStorageForm = React__default.forwardRef(function DistributeStora
|
|
|
9532
9551
|
distributeStorage: validators.distributeStorage(v)
|
|
9533
9552
|
});
|
|
9534
9553
|
},
|
|
9535
|
-
onBlur: () =>
|
|
9536
|
-
|
|
9537
|
-
onFocus: () => {
|
|
9538
|
-
}
|
|
9554
|
+
onBlur: () => void 0,
|
|
9555
|
+
onFocus: () => void 0
|
|
9539
9556
|
},
|
|
9540
9557
|
min: 1,
|
|
9541
9558
|
meta: {},
|
|
@@ -11557,7 +11574,7 @@ const EventsTable = ({ uid }) => {
|
|
|
11557
11574
|
width: 120,
|
|
11558
11575
|
render(value2) {
|
|
11559
11576
|
const colorMap = {
|
|
11560
|
-
"Warning": "
|
|
11577
|
+
"Warning": "warning",
|
|
11561
11578
|
"Normal": "green"
|
|
11562
11579
|
};
|
|
11563
11580
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(StatusCapsule, { color: colorMap[value2], className: cx_default(StateTagStyle, "no-background"), children: i18n2.t(`dovetail.${value2.toLowerCase()}`) });
|
|
@@ -18606,7 +18623,6 @@ const PodLog = ({
|
|
|
18606
18623
|
const [currentItemCount, setCurrentItemCount] = useState(0);
|
|
18607
18624
|
const [paused, setPaused] = useState(false);
|
|
18608
18625
|
const [wrap, setWrap] = useState(false);
|
|
18609
|
-
const [linesBehind, setLinesBehind] = useState(0);
|
|
18610
18626
|
const logViewerRef = useRef(null);
|
|
18611
18627
|
const abortControllerRef = useRef(null);
|
|
18612
18628
|
const dataProvider2 = useDataProvider();
|
|
@@ -18620,10 +18636,6 @@ const PodLog = ({
|
|
|
18620
18636
|
if (logViewerRef && logViewerRef.current) {
|
|
18621
18637
|
logViewerRef.current.scrollToBottom();
|
|
18622
18638
|
}
|
|
18623
|
-
} else if (logs.length !== currentItemCount) {
|
|
18624
|
-
setLinesBehind(logs.length - currentItemCount);
|
|
18625
|
-
} else {
|
|
18626
|
-
setLinesBehind(0);
|
|
18627
18639
|
}
|
|
18628
18640
|
}, [paused, logs, currentItemCount]);
|
|
18629
18641
|
const onScroll = (params) => {
|
|
@@ -18742,7 +18754,6 @@ const PodLog = ({
|
|
|
18742
18754
|
setSelectedContainer(newValue);
|
|
18743
18755
|
setLogs([]);
|
|
18744
18756
|
setPaused(false);
|
|
18745
|
-
setLinesBehind(0);
|
|
18746
18757
|
},
|
|
18747
18758
|
value: selectedContainer
|
|
18748
18759
|
},
|
|
@@ -37997,7 +38008,7 @@ const Separator = () => {
|
|
|
37997
38008
|
});
|
|
37998
38009
|
};
|
|
37999
38010
|
const MonacoYamlEditor = React__default.lazy(() => Promise.resolve().then(() => MonacoYamlEditor$2));
|
|
38000
|
-
const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-
|
|
38011
|
+
const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-ae1a891e.js"));
|
|
38001
38012
|
const YamlEditorComponent = forwardRef(
|
|
38002
38013
|
function YamlEditorComponent2(props, ref) {
|
|
38003
38014
|
const {
|
|
@@ -39232,8 +39243,7 @@ function _KeyValueTableFormForm(props, ref) {
|
|
|
39232
39243
|
if (!value22)
|
|
39233
39244
|
return t2("dovetail.key_empty_text");
|
|
39234
39245
|
const {
|
|
39235
|
-
isValid
|
|
39236
|
-
errorMessage
|
|
39246
|
+
isValid
|
|
39237
39247
|
} = validateLabelKey(value22 || "");
|
|
39238
39248
|
if (!isValid)
|
|
39239
39249
|
return t2("dovetail.format_error");
|
|
@@ -39444,6 +39454,179 @@ function EditAnnotationDropdownMenuItem(props) {
|
|
|
39444
39454
|
}
|
|
39445
39455
|
);
|
|
39446
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
|
+
}
|
|
39447
39630
|
const index_sazpyf = "";
|
|
39448
39631
|
const WrapperStyle = "wfg6u6g";
|
|
39449
39632
|
const InnerBar = ({
|
|
@@ -40683,7 +40866,7 @@ export {
|
|
|
40683
40866
|
useGlobalStore as Z,
|
|
40684
40867
|
useOpenForm as _,
|
|
40685
40868
|
useApiGroupSchema as a,
|
|
40686
|
-
|
|
40869
|
+
PodSelectorField as a$,
|
|
40687
40870
|
WidgetErrorContent as a0,
|
|
40688
40871
|
Breadcrumb as a1,
|
|
40689
40872
|
NameInputWidget as a2,
|
|
@@ -40694,33 +40877,33 @@ export {
|
|
|
40694
40877
|
namespaceRules as a7,
|
|
40695
40878
|
KeyValueListWidget as a8,
|
|
40696
40879
|
MetadataForm as a9,
|
|
40697
|
-
|
|
40698
|
-
|
|
40699
|
-
|
|
40700
|
-
|
|
40701
|
-
|
|
40702
|
-
|
|
40703
|
-
|
|
40704
|
-
|
|
40705
|
-
|
|
40706
|
-
|
|
40707
|
-
|
|
40708
|
-
|
|
40709
|
-
|
|
40710
|
-
|
|
40711
|
-
|
|
40712
|
-
|
|
40713
|
-
|
|
40714
|
-
|
|
40715
|
-
|
|
40716
|
-
|
|
40717
|
-
|
|
40718
|
-
|
|
40719
|
-
|
|
40720
|
-
|
|
40721
|
-
|
|
40722
|
-
|
|
40723
|
-
|
|
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_,
|
|
40724
40907
|
PageShow as aa,
|
|
40725
40908
|
Time as ab,
|
|
40726
40909
|
ConditionsTable as ac,
|
|
@@ -40740,154 +40923,155 @@ export {
|
|
|
40740
40923
|
K8sDropdown as aq,
|
|
40741
40924
|
EditLabelDropdownMenuItem as ar,
|
|
40742
40925
|
EditAnnotationDropdownMenuItem as as,
|
|
40743
|
-
|
|
40744
|
-
|
|
40745
|
-
|
|
40746
|
-
|
|
40747
|
-
|
|
40748
|
-
|
|
40749
|
-
|
|
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,
|
|
40750
40933
|
useSchema as b,
|
|
40751
|
-
|
|
40752
|
-
|
|
40753
|
-
|
|
40754
|
-
|
|
40755
|
-
|
|
40756
|
-
|
|
40757
|
-
|
|
40758
|
-
|
|
40759
|
-
|
|
40760
|
-
|
|
40761
|
-
|
|
40762
|
-
|
|
40763
|
-
|
|
40764
|
-
|
|
40765
|
-
|
|
40766
|
-
|
|
40767
|
-
|
|
40768
|
-
|
|
40769
|
-
|
|
40770
|
-
|
|
40771
|
-
|
|
40772
|
-
|
|
40773
|
-
|
|
40774
|
-
|
|
40775
|
-
|
|
40776
|
-
|
|
40777
|
-
|
|
40778
|
-
|
|
40779
|
-
|
|
40780
|
-
|
|
40781
|
-
|
|
40782
|
-
|
|
40783
|
-
|
|
40784
|
-
|
|
40785
|
-
|
|
40786
|
-
|
|
40787
|
-
|
|
40788
|
-
|
|
40789
|
-
|
|
40790
|
-
|
|
40791
|
-
|
|
40792
|
-
|
|
40793
|
-
|
|
40794
|
-
|
|
40795
|
-
|
|
40796
|
-
|
|
40797
|
-
|
|
40798
|
-
|
|
40799
|
-
|
|
40800
|
-
|
|
40801
|
-
|
|
40802
|
-
|
|
40803
|
-
|
|
40804
|
-
|
|
40805
|
-
|
|
40806
|
-
|
|
40807
|
-
|
|
40808
|
-
|
|
40809
|
-
|
|
40810
|
-
|
|
40811
|
-
|
|
40812
|
-
|
|
40813
|
-
|
|
40814
|
-
|
|
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,
|
|
40815
40998
|
useDeleteModal as c,
|
|
40816
|
-
|
|
40817
|
-
|
|
40818
|
-
|
|
40819
|
-
|
|
40820
|
-
|
|
40821
|
-
|
|
40822
|
-
|
|
40823
|
-
|
|
40824
|
-
|
|
40825
|
-
|
|
40826
|
-
|
|
40827
|
-
|
|
40828
|
-
|
|
40829
|
-
|
|
40830
|
-
|
|
40831
|
-
|
|
40832
|
-
|
|
40833
|
-
|
|
40834
|
-
|
|
40835
|
-
|
|
40836
|
-
|
|
40837
|
-
|
|
40838
|
-
|
|
40839
|
-
|
|
40840
|
-
|
|
40841
|
-
|
|
40842
|
-
|
|
40843
|
-
|
|
40844
|
-
|
|
40845
|
-
|
|
40846
|
-
|
|
40847
|
-
|
|
40848
|
-
|
|
40849
|
-
|
|
40850
|
-
|
|
40851
|
-
|
|
40852
|
-
|
|
40853
|
-
|
|
40854
|
-
|
|
40855
|
-
|
|
40856
|
-
|
|
40857
|
-
|
|
40858
|
-
|
|
40859
|
-
|
|
40860
|
-
|
|
40861
|
-
|
|
40862
|
-
|
|
40863
|
-
|
|
40864
|
-
|
|
40865
|
-
|
|
40866
|
-
|
|
40867
|
-
|
|
40868
|
-
|
|
40869
|
-
|
|
40870
|
-
|
|
40871
|
-
|
|
40872
|
-
|
|
40873
|
-
|
|
40874
|
-
|
|
40875
|
-
|
|
40876
|
-
|
|
40877
|
-
|
|
40878
|
-
|
|
40879
|
-
|
|
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,
|
|
40880
41063
|
dovetailRefineI18n as d,
|
|
40881
|
-
|
|
40882
|
-
|
|
40883
|
-
|
|
40884
|
-
|
|
40885
|
-
|
|
40886
|
-
|
|
40887
|
-
|
|
40888
|
-
|
|
40889
|
-
|
|
40890
|
-
|
|
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,
|
|
40891
41075
|
NameSpaceColumnRenderer as e,
|
|
40892
41076
|
WorkloadRestartsColumnRenderer as f,
|
|
40893
41077
|
NodeNameColumnRenderer as g,
|