@dovetail-v2/refine 0.3.28-alpha.3 → 0.3.29-alpha.1
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/i18n.d.ts +8 -6
- package/dist/locales/en-US/index.d.ts +4 -3
- package/dist/locales/zh-CN/index.d.ts +4 -3
- package/dist/models/persistent-volume-claim.d.ts +1 -0
- package/dist/refine.cjs +51 -34
- package/dist/refine.js +51 -34
- package/dist/style.css +18 -1
- package/package.json +1 -1
package/dist/i18n.d.ts
CHANGED
|
@@ -158,6 +158,7 @@ export declare const resources: {
|
|
|
158
158
|
not_support: string;
|
|
159
159
|
stopped_state: string;
|
|
160
160
|
any_node_ip: string;
|
|
161
|
+
default_http_protocol_tooltip: string;
|
|
161
162
|
storage_class: string;
|
|
162
163
|
persistent_volume: string;
|
|
163
164
|
provisioner: string;
|
|
@@ -201,9 +202,9 @@ export declare const resources: {
|
|
|
201
202
|
default_sc: string;
|
|
202
203
|
reclaim_policy: string;
|
|
203
204
|
allow_expand: string;
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
205
|
+
request_capacity: string;
|
|
206
|
+
edit_request_capacity: string;
|
|
207
|
+
edit_request_capacity_success_toast: string;
|
|
207
208
|
edit_taint: string;
|
|
208
209
|
edit_node_taint: string;
|
|
209
210
|
edit_node_taint_success_toast: string;
|
|
@@ -442,6 +443,7 @@ export declare const resources: {
|
|
|
442
443
|
not_support: string;
|
|
443
444
|
stopped_state: string;
|
|
444
445
|
any_node_ip: string;
|
|
446
|
+
default_http_protocol_tooltip: string;
|
|
445
447
|
storage_class: string;
|
|
446
448
|
persistent_volume: string;
|
|
447
449
|
provisioner: string;
|
|
@@ -478,9 +480,9 @@ export declare const resources: {
|
|
|
478
480
|
default_sc: string;
|
|
479
481
|
reclaim_policy: string;
|
|
480
482
|
allow_expand: string;
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
483
|
+
request_capacity: string;
|
|
484
|
+
edit_request_capacity: string;
|
|
485
|
+
edit_request_capacity_success_toast: string;
|
|
484
486
|
edit_taint: string;
|
|
485
487
|
edit_node_taint: string;
|
|
486
488
|
edit_node_taint_success_toast: string;
|
|
@@ -155,6 +155,7 @@ declare const _default: {
|
|
|
155
155
|
not_support: string;
|
|
156
156
|
stopped_state: string;
|
|
157
157
|
any_node_ip: string;
|
|
158
|
+
default_http_protocol_tooltip: string;
|
|
158
159
|
storage_class: string;
|
|
159
160
|
persistent_volume: string;
|
|
160
161
|
provisioner: string;
|
|
@@ -198,9 +199,9 @@ declare const _default: {
|
|
|
198
199
|
default_sc: string;
|
|
199
200
|
reclaim_policy: string;
|
|
200
201
|
allow_expand: string;
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
202
|
+
request_capacity: string;
|
|
203
|
+
edit_request_capacity: string;
|
|
204
|
+
edit_request_capacity_success_toast: string;
|
|
204
205
|
edit_taint: string;
|
|
205
206
|
edit_node_taint: string;
|
|
206
207
|
edit_node_taint_success_toast: string;
|
|
@@ -160,6 +160,7 @@ declare const _default: {
|
|
|
160
160
|
not_support: string;
|
|
161
161
|
stopped_state: string;
|
|
162
162
|
any_node_ip: string;
|
|
163
|
+
default_http_protocol_tooltip: string;
|
|
163
164
|
storage_class: string;
|
|
164
165
|
persistent_volume: string;
|
|
165
166
|
provisioner: string;
|
|
@@ -196,9 +197,9 @@ declare const _default: {
|
|
|
196
197
|
default_sc: string;
|
|
197
198
|
reclaim_policy: string;
|
|
198
199
|
allow_expand: string;
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
200
|
+
request_capacity: string;
|
|
201
|
+
edit_request_capacity: string;
|
|
202
|
+
edit_request_capacity_success_toast: string;
|
|
202
203
|
edit_taint: string;
|
|
203
204
|
edit_node_taint: string;
|
|
204
205
|
edit_node_taint_success_toast: string;
|
|
@@ -11,6 +11,7 @@ export declare class PersistentVolumeClaimModel extends ResourceModel {
|
|
|
11
11
|
get pv(): string | undefined;
|
|
12
12
|
get stateDisplay(): ResourceState.FAILED | ResourceState.PENDING | ResourceState.BOUND | ResourceState.LOST | undefined;
|
|
13
13
|
get storageBytes(): number;
|
|
14
|
+
get allocatedStorageBytes(): number;
|
|
14
15
|
updateDistributeStorage(distributeStorage: number): Unstructured;
|
|
15
16
|
}
|
|
16
17
|
export {};
|
package/dist/refine.cjs
CHANGED
|
@@ -612,6 +612,7 @@ const only_support_one_yaml$1 = "Only one YAML configuration is supported at a t
|
|
|
612
612
|
const not_support$1 = "Not supported";
|
|
613
613
|
const stopped_state$1 = "Stopped";
|
|
614
614
|
const any_node_ip$1 = "Any node IP";
|
|
615
|
+
const default_http_protocol_tooltip$1 = "The link uses HTTP protocol by default.";
|
|
615
616
|
const storage_class$1 = "Storage class";
|
|
616
617
|
const persistent_volume$1 = "Persistent volume";
|
|
617
618
|
const provisioner$1 = "Provisioner";
|
|
@@ -655,9 +656,9 @@ const retain$1 = "Retain";
|
|
|
655
656
|
const default_sc$1 = "Default storage class";
|
|
656
657
|
const reclaim_policy$1 = "Reclaim policy";
|
|
657
658
|
const allow_expand$1 = "Volume expansion";
|
|
658
|
-
const
|
|
659
|
-
const
|
|
660
|
-
const
|
|
659
|
+
const request_capacity$1 = "Requested capacity";
|
|
660
|
+
const edit_request_capacity$1 = "Edit requested capacity";
|
|
661
|
+
const edit_request_capacity_success_toast$1 = "Successfully edited the requested capacity";
|
|
661
662
|
const edit_taint$1 = "Edit taint";
|
|
662
663
|
const edit_node_taint$1 = "Edit taint";
|
|
663
664
|
const edit_node_taint_success_toast$1 = "Successfully edited the taint for the node {{name}}";
|
|
@@ -666,10 +667,10 @@ const node_taint_PreferNoSchedule$1 = "PreferNoSchedule";
|
|
|
666
667
|
const node_taint_NoExecute$1 = "NoExecute";
|
|
667
668
|
const taint$1 = "Taint";
|
|
668
669
|
const change_form_mode_alert$1 = "Switching from YAML editing to form editing will discard all changes made to the YAML file.";
|
|
669
|
-
const pvc_storage_required$1 = "Please specify the
|
|
670
|
+
const pvc_storage_required$1 = "Please specify the requested capacity.";
|
|
670
671
|
const pvc_storage_min$1 = "Please enter a positive integer.";
|
|
671
672
|
const pvc_storage_reduce_limit$1 = "The value cannot be less than the current value.";
|
|
672
|
-
const pvc_storage_max_limit$1 = "The
|
|
673
|
+
const pvc_storage_max_limit$1 = "The requested capacity cannot exceed 64 TiB.";
|
|
673
674
|
const key_empty_text$1 = "Please specify a key.";
|
|
674
675
|
const format_error$1 = "Format error.";
|
|
675
676
|
const taint_effect_empty_text$1 = "Please select an effect.";
|
|
@@ -888,6 +889,7 @@ const dovetail$1 = {
|
|
|
888
889
|
not_support: not_support$1,
|
|
889
890
|
stopped_state: stopped_state$1,
|
|
890
891
|
any_node_ip: any_node_ip$1,
|
|
892
|
+
default_http_protocol_tooltip: default_http_protocol_tooltip$1,
|
|
891
893
|
storage_class: storage_class$1,
|
|
892
894
|
persistent_volume: persistent_volume$1,
|
|
893
895
|
provisioner: provisioner$1,
|
|
@@ -931,9 +933,9 @@ const dovetail$1 = {
|
|
|
931
933
|
default_sc: default_sc$1,
|
|
932
934
|
reclaim_policy: reclaim_policy$1,
|
|
933
935
|
allow_expand: allow_expand$1,
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
936
|
+
request_capacity: request_capacity$1,
|
|
937
|
+
edit_request_capacity: edit_request_capacity$1,
|
|
938
|
+
edit_request_capacity_success_toast: edit_request_capacity_success_toast$1,
|
|
937
939
|
edit_taint: edit_taint$1,
|
|
938
940
|
edit_node_taint: edit_node_taint$1,
|
|
939
941
|
edit_node_taint_success_toast: edit_node_taint_success_toast$1,
|
|
@@ -1169,6 +1171,7 @@ const support = "支持";
|
|
|
1169
1171
|
const not_support = "不支持";
|
|
1170
1172
|
const stopped_state = "已停止";
|
|
1171
1173
|
const any_node_ip = "任意节点 IP";
|
|
1174
|
+
const default_http_protocol_tooltip = "当前链接默认使用 HTTP 协议。";
|
|
1172
1175
|
const storage_class = "存储类";
|
|
1173
1176
|
const persistent_volume = "持久卷";
|
|
1174
1177
|
const provisioner = "制备器";
|
|
@@ -1205,9 +1208,9 @@ const retain = "保留";
|
|
|
1205
1208
|
const default_sc = "默认存储类";
|
|
1206
1209
|
const reclaim_policy = "回收策略";
|
|
1207
1210
|
const allow_expand = "卷扩容";
|
|
1208
|
-
const
|
|
1209
|
-
const
|
|
1210
|
-
const
|
|
1211
|
+
const request_capacity = "申请量";
|
|
1212
|
+
const edit_request_capacity = "编辑申请量";
|
|
1213
|
+
const edit_request_capacity_success_toast = "编辑申请量成功";
|
|
1211
1214
|
const edit_taint = "编辑污点";
|
|
1212
1215
|
const edit_node_taint = "编辑污点";
|
|
1213
1216
|
const edit_node_taint_success_toast = "编辑节点 {{name}} 的污点成功";
|
|
@@ -1216,10 +1219,10 @@ const node_taint_PreferNoSchedule = "尽可能阻止调度";
|
|
|
1216
1219
|
const node_taint_NoExecute = "阻止调度并驱逐 Pod";
|
|
1217
1220
|
const taint = "污点";
|
|
1218
1221
|
const change_form_mode_alert = "从编辑 YAML 切回表单编辑,将无法保留对 YAML 文件做出的所有更改。";
|
|
1219
|
-
const pvc_storage_required = "
|
|
1222
|
+
const pvc_storage_required = "请填写申请量。";
|
|
1220
1223
|
const pvc_storage_min = "请输入正整数。";
|
|
1221
1224
|
const pvc_storage_reduce_limit = "输入值不得小于当前数值。";
|
|
1222
|
-
const pvc_storage_max_limit = "
|
|
1225
|
+
const pvc_storage_max_limit = "申请量不能超过 64 TiB。";
|
|
1223
1226
|
const key_empty_text = "请填写键。";
|
|
1224
1227
|
const format_error = "格式错误。";
|
|
1225
1228
|
const taint_effect_empty_text = "请选择效果。";
|
|
@@ -1444,6 +1447,7 @@ const dovetail = {
|
|
|
1444
1447
|
not_support,
|
|
1445
1448
|
stopped_state,
|
|
1446
1449
|
any_node_ip,
|
|
1450
|
+
default_http_protocol_tooltip,
|
|
1447
1451
|
storage_class,
|
|
1448
1452
|
persistent_volume,
|
|
1449
1453
|
provisioner,
|
|
@@ -1480,9 +1484,9 @@ const dovetail = {
|
|
|
1480
1484
|
default_sc,
|
|
1481
1485
|
reclaim_policy,
|
|
1482
1486
|
allow_expand,
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1487
|
+
request_capacity,
|
|
1488
|
+
edit_request_capacity,
|
|
1489
|
+
edit_request_capacity_success_toast,
|
|
1486
1490
|
edit_taint,
|
|
1487
1491
|
edit_node_taint,
|
|
1488
1492
|
edit_node_taint_success_toast,
|
|
@@ -7646,7 +7650,6 @@ function ValueDisplay(props) {
|
|
|
7646
7650
|
} = props;
|
|
7647
7651
|
const htmlTitle = typeof value2 === "string" || typeof value2 === "number" ? String(value2) : void 0;
|
|
7648
7652
|
const result = useOverflow ? /* @__PURE__ */ common.jsxRuntimeExports.jsx("div", {
|
|
7649
|
-
title: htmlTitle,
|
|
7650
7653
|
style,
|
|
7651
7654
|
className: common.cx_default(className, ContentStyle$2),
|
|
7652
7655
|
children: /* @__PURE__ */ common.jsxRuntimeExports.jsx(eagle.OverflowTooltip, {
|
|
@@ -8666,7 +8669,7 @@ const DistributeStorageForm = React.forwardRef(function DistributeStorageForm2(p
|
|
|
8666
8669
|
values: v,
|
|
8667
8670
|
successNotification() {
|
|
8668
8671
|
return {
|
|
8669
|
-
message: t2("dovetail.
|
|
8672
|
+
message: t2("dovetail.edit_request_capacity_success_toast", {
|
|
8670
8673
|
kind: pvc2.kind,
|
|
8671
8674
|
name: pvc2.id,
|
|
8672
8675
|
interpolation: {
|
|
@@ -8689,7 +8692,7 @@ const DistributeStorageForm = React.forwardRef(function DistributeStorageForm2(p
|
|
|
8689
8692
|
return /* @__PURE__ */ common.jsxRuntimeExports.jsx(
|
|
8690
8693
|
eagle.Form.Item,
|
|
8691
8694
|
{
|
|
8692
|
-
label: /* @__PURE__ */ common.jsxRuntimeExports.jsx("span", { style: { width: "134px" }, children: label2 || t2("dovetail.
|
|
8695
|
+
label: /* @__PURE__ */ common.jsxRuntimeExports.jsx("span", { style: { width: "134px" }, children: label2 || t2("dovetail.request_capacity") }),
|
|
8693
8696
|
colon: false,
|
|
8694
8697
|
help: validateResult.distributeStorage,
|
|
8695
8698
|
validateStatus: validateResult.distributeStorage ? "error" : "",
|
|
@@ -8742,7 +8745,7 @@ function PVCDistributeStorage({
|
|
|
8742
8745
|
{
|
|
8743
8746
|
modalProps: {
|
|
8744
8747
|
formRef,
|
|
8745
|
-
title: t2("dovetail.
|
|
8748
|
+
title: t2("dovetail.edit_request_capacity"),
|
|
8746
8749
|
namespace: pvc2.namespace || "",
|
|
8747
8750
|
renderContent() {
|
|
8748
8751
|
return /* @__PURE__ */ common.jsxRuntimeExports.jsx(
|
|
@@ -10230,6 +10233,9 @@ class PersistentVolumeClaimModel extends ResourceModel {
|
|
|
10230
10233
|
get storageBytes() {
|
|
10231
10234
|
return parseSi(lodashEs.get(this._rawYaml, "spec.resources.requests.storage") || "0Gi");
|
|
10232
10235
|
}
|
|
10236
|
+
get allocatedStorageBytes() {
|
|
10237
|
+
return parseSi(lodashEs.get(this._rawYaml, "status.capacity.storage") || "0Gi");
|
|
10238
|
+
}
|
|
10233
10239
|
updateDistributeStorage(distributeStorage) {
|
|
10234
10240
|
const yaml2 = lodashEs.cloneDeep(this._globalStore.restoreItem(this));
|
|
10235
10241
|
return lodashEs.set(yaml2, "spec.resources.requests.storage", `${distributeStorage}Gi`);
|
|
@@ -10258,7 +10264,7 @@ class IngressClassModel extends ResourceModel {
|
|
|
10258
10264
|
return (_a = this.spec) == null ? void 0 : _a.controller;
|
|
10259
10265
|
}
|
|
10260
10266
|
}
|
|
10261
|
-
const
|
|
10267
|
+
const index_1rec449 = "";
|
|
10262
10268
|
const ServiceInClusterAccessComponent = ({
|
|
10263
10269
|
service
|
|
10264
10270
|
}) => {
|
|
@@ -10280,6 +10286,8 @@ const ServiceInClusterAccessComponent = ({
|
|
|
10280
10286
|
};
|
|
10281
10287
|
const BreakLineStyle = "b1vtjd4k";
|
|
10282
10288
|
const LinkStyle$2 = "luro4rx";
|
|
10289
|
+
const ShowLinkStyle = "s1gydjqf";
|
|
10290
|
+
const DashedUnderlineSpanStyle = "dvp1i89";
|
|
10283
10291
|
const ServiceOutClusterAccessComponent = ({
|
|
10284
10292
|
service,
|
|
10285
10293
|
breakLine = true,
|
|
@@ -10298,29 +10306,38 @@ const ServiceOutClusterAccessComponent = ({
|
|
|
10298
10306
|
content = (_a = spec.ports) == null ? void 0 : _a.filter((v) => !!v).map((p) => [/* @__PURE__ */ common.jsxRuntimeExports.jsx(eagle.Link, {
|
|
10299
10307
|
href: `http://${clusterVip}:${p.nodePort}`,
|
|
10300
10308
|
target: "_blank",
|
|
10301
|
-
className: common.cx_default(
|
|
10302
|
-
children:
|
|
10309
|
+
className: common.cx_default(ShowLinkStyle, eagle.Typo.Label.l4_regular_title),
|
|
10310
|
+
children: /* @__PURE__ */ common.jsxRuntimeExports.jsx(eagle.Tooltip, {
|
|
10311
|
+
title: i18n2.t("dovetail.default_http_protocol_tooltip"),
|
|
10312
|
+
children: /* @__PURE__ */ common.jsxRuntimeExports.jsx("span", {
|
|
10313
|
+
className: DashedUnderlineSpanStyle,
|
|
10314
|
+
children: `${clusterVip}:${p.nodePort}`
|
|
10315
|
+
})
|
|
10316
|
+
})
|
|
10303
10317
|
}, p.name)]);
|
|
10304
10318
|
if (content && content instanceof Array) {
|
|
10305
10319
|
const result = [];
|
|
10306
10320
|
for (let i2 = 0; i2 < content.length; i2++) {
|
|
10307
10321
|
result.push(content[i2]);
|
|
10308
10322
|
if (i2 < content.length - 1) {
|
|
10309
|
-
result.push(",");
|
|
10323
|
+
result.push(", ");
|
|
10310
10324
|
}
|
|
10311
10325
|
}
|
|
10312
10326
|
content = result;
|
|
10313
10327
|
}
|
|
10314
10328
|
break;
|
|
10315
10329
|
}
|
|
10316
|
-
content = (_b = spec.ports) == null ? void 0 : _b.filter((v) => !!v).map((p) => /* @__PURE__ */ common.jsxRuntimeExports.jsx(eagle.
|
|
10317
|
-
|
|
10318
|
-
|
|
10319
|
-
|
|
10320
|
-
|
|
10321
|
-
|
|
10322
|
-
|
|
10323
|
-
|
|
10330
|
+
content = (_b = spec.ports) == null ? void 0 : _b.filter((v) => !!v).map((p) => /* @__PURE__ */ common.jsxRuntimeExports.jsx(eagle.Link, {
|
|
10331
|
+
href: `http://${clusterVip}:${p.nodePort}`,
|
|
10332
|
+
target: "_blank",
|
|
10333
|
+
className: common.cx_default(eagle.Typo.Label.l4_regular_title, BreakLineStyle, LinkStyle$2),
|
|
10334
|
+
children: /* @__PURE__ */ common.jsxRuntimeExports.jsx(eagle.Tooltip, {
|
|
10335
|
+
title: i18n2.t("dovetail.default_http_protocol_tooltip"),
|
|
10336
|
+
children: /* @__PURE__ */ common.jsxRuntimeExports.jsxs("span", {
|
|
10337
|
+
className: DashedUnderlineSpanStyle,
|
|
10338
|
+
children: [clusterVip, ":", p.nodePort]
|
|
10339
|
+
})
|
|
10340
|
+
})
|
|
10324
10341
|
}, p.nodePort));
|
|
10325
10342
|
return /* @__PURE__ */ common.jsxRuntimeExports.jsx("ul", {
|
|
10326
10343
|
children: content
|
|
@@ -14182,7 +14199,7 @@ const PVCStorageField = ({
|
|
|
14182
14199
|
key: "storage",
|
|
14183
14200
|
col: 12,
|
|
14184
14201
|
path: ["spec", "resources", "requests", "storage"],
|
|
14185
|
-
title: i18n2.t("dovetail.
|
|
14202
|
+
title: i18n2.t("dovetail.request_capacity"),
|
|
14186
14203
|
renderContent(value2, pvc2) {
|
|
14187
14204
|
return /* @__PURE__ */ common.jsxRuntimeExports.jsx(PVCDistributeStorage, {
|
|
14188
14205
|
pvc: pvc2,
|
|
@@ -19961,7 +19978,7 @@ const PVCStorageColumnRenderer = (i18n2) => {
|
|
|
19961
19978
|
return {
|
|
19962
19979
|
key: "storage",
|
|
19963
19980
|
display: true,
|
|
19964
|
-
dataIndex: ["
|
|
19981
|
+
dataIndex: ["allocatedStorageBytes"],
|
|
19965
19982
|
title: i18n2.t("dovetail.distributed"),
|
|
19966
19983
|
width: 120,
|
|
19967
19984
|
sortable: true,
|
package/dist/refine.js
CHANGED
|
@@ -593,6 +593,7 @@ const only_support_one_yaml$1 = "Only one YAML configuration is supported at a t
|
|
|
593
593
|
const not_support$1 = "Not supported";
|
|
594
594
|
const stopped_state$1 = "Stopped";
|
|
595
595
|
const any_node_ip$1 = "Any node IP";
|
|
596
|
+
const default_http_protocol_tooltip$1 = "The link uses HTTP protocol by default.";
|
|
596
597
|
const storage_class$1 = "Storage class";
|
|
597
598
|
const persistent_volume$1 = "Persistent volume";
|
|
598
599
|
const provisioner$1 = "Provisioner";
|
|
@@ -636,9 +637,9 @@ const retain$1 = "Retain";
|
|
|
636
637
|
const default_sc$1 = "Default storage class";
|
|
637
638
|
const reclaim_policy$1 = "Reclaim policy";
|
|
638
639
|
const allow_expand$1 = "Volume expansion";
|
|
639
|
-
const
|
|
640
|
-
const
|
|
641
|
-
const
|
|
640
|
+
const request_capacity$1 = "Requested capacity";
|
|
641
|
+
const edit_request_capacity$1 = "Edit requested capacity";
|
|
642
|
+
const edit_request_capacity_success_toast$1 = "Successfully edited the requested capacity";
|
|
642
643
|
const edit_taint$1 = "Edit taint";
|
|
643
644
|
const edit_node_taint$1 = "Edit taint";
|
|
644
645
|
const edit_node_taint_success_toast$1 = "Successfully edited the taint for the node {{name}}";
|
|
@@ -647,10 +648,10 @@ const node_taint_PreferNoSchedule$1 = "PreferNoSchedule";
|
|
|
647
648
|
const node_taint_NoExecute$1 = "NoExecute";
|
|
648
649
|
const taint$1 = "Taint";
|
|
649
650
|
const change_form_mode_alert$1 = "Switching from YAML editing to form editing will discard all changes made to the YAML file.";
|
|
650
|
-
const pvc_storage_required$1 = "Please specify the
|
|
651
|
+
const pvc_storage_required$1 = "Please specify the requested capacity.";
|
|
651
652
|
const pvc_storage_min$1 = "Please enter a positive integer.";
|
|
652
653
|
const pvc_storage_reduce_limit$1 = "The value cannot be less than the current value.";
|
|
653
|
-
const pvc_storage_max_limit$1 = "The
|
|
654
|
+
const pvc_storage_max_limit$1 = "The requested capacity cannot exceed 64 TiB.";
|
|
654
655
|
const key_empty_text$1 = "Please specify a key.";
|
|
655
656
|
const format_error$1 = "Format error.";
|
|
656
657
|
const taint_effect_empty_text$1 = "Please select an effect.";
|
|
@@ -869,6 +870,7 @@ const dovetail$1 = {
|
|
|
869
870
|
not_support: not_support$1,
|
|
870
871
|
stopped_state: stopped_state$1,
|
|
871
872
|
any_node_ip: any_node_ip$1,
|
|
873
|
+
default_http_protocol_tooltip: default_http_protocol_tooltip$1,
|
|
872
874
|
storage_class: storage_class$1,
|
|
873
875
|
persistent_volume: persistent_volume$1,
|
|
874
876
|
provisioner: provisioner$1,
|
|
@@ -912,9 +914,9 @@ const dovetail$1 = {
|
|
|
912
914
|
default_sc: default_sc$1,
|
|
913
915
|
reclaim_policy: reclaim_policy$1,
|
|
914
916
|
allow_expand: allow_expand$1,
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
917
|
+
request_capacity: request_capacity$1,
|
|
918
|
+
edit_request_capacity: edit_request_capacity$1,
|
|
919
|
+
edit_request_capacity_success_toast: edit_request_capacity_success_toast$1,
|
|
918
920
|
edit_taint: edit_taint$1,
|
|
919
921
|
edit_node_taint: edit_node_taint$1,
|
|
920
922
|
edit_node_taint_success_toast: edit_node_taint_success_toast$1,
|
|
@@ -1150,6 +1152,7 @@ const support = "支持";
|
|
|
1150
1152
|
const not_support = "不支持";
|
|
1151
1153
|
const stopped_state = "已停止";
|
|
1152
1154
|
const any_node_ip = "任意节点 IP";
|
|
1155
|
+
const default_http_protocol_tooltip = "当前链接默认使用 HTTP 协议。";
|
|
1153
1156
|
const storage_class = "存储类";
|
|
1154
1157
|
const persistent_volume = "持久卷";
|
|
1155
1158
|
const provisioner = "制备器";
|
|
@@ -1186,9 +1189,9 @@ const retain = "保留";
|
|
|
1186
1189
|
const default_sc = "默认存储类";
|
|
1187
1190
|
const reclaim_policy = "回收策略";
|
|
1188
1191
|
const allow_expand = "卷扩容";
|
|
1189
|
-
const
|
|
1190
|
-
const
|
|
1191
|
-
const
|
|
1192
|
+
const request_capacity = "申请量";
|
|
1193
|
+
const edit_request_capacity = "编辑申请量";
|
|
1194
|
+
const edit_request_capacity_success_toast = "编辑申请量成功";
|
|
1192
1195
|
const edit_taint = "编辑污点";
|
|
1193
1196
|
const edit_node_taint = "编辑污点";
|
|
1194
1197
|
const edit_node_taint_success_toast = "编辑节点 {{name}} 的污点成功";
|
|
@@ -1197,10 +1200,10 @@ const node_taint_PreferNoSchedule = "尽可能阻止调度";
|
|
|
1197
1200
|
const node_taint_NoExecute = "阻止调度并驱逐 Pod";
|
|
1198
1201
|
const taint = "污点";
|
|
1199
1202
|
const change_form_mode_alert = "从编辑 YAML 切回表单编辑,将无法保留对 YAML 文件做出的所有更改。";
|
|
1200
|
-
const pvc_storage_required = "
|
|
1203
|
+
const pvc_storage_required = "请填写申请量。";
|
|
1201
1204
|
const pvc_storage_min = "请输入正整数。";
|
|
1202
1205
|
const pvc_storage_reduce_limit = "输入值不得小于当前数值。";
|
|
1203
|
-
const pvc_storage_max_limit = "
|
|
1206
|
+
const pvc_storage_max_limit = "申请量不能超过 64 TiB。";
|
|
1204
1207
|
const key_empty_text = "请填写键。";
|
|
1205
1208
|
const format_error = "格式错误。";
|
|
1206
1209
|
const taint_effect_empty_text = "请选择效果。";
|
|
@@ -1425,6 +1428,7 @@ const dovetail = {
|
|
|
1425
1428
|
not_support,
|
|
1426
1429
|
stopped_state,
|
|
1427
1430
|
any_node_ip,
|
|
1431
|
+
default_http_protocol_tooltip,
|
|
1428
1432
|
storage_class,
|
|
1429
1433
|
persistent_volume,
|
|
1430
1434
|
provisioner,
|
|
@@ -1461,9 +1465,9 @@ const dovetail = {
|
|
|
1461
1465
|
default_sc,
|
|
1462
1466
|
reclaim_policy,
|
|
1463
1467
|
allow_expand,
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1468
|
+
request_capacity,
|
|
1469
|
+
edit_request_capacity,
|
|
1470
|
+
edit_request_capacity_success_toast,
|
|
1467
1471
|
edit_taint,
|
|
1468
1472
|
edit_node_taint,
|
|
1469
1473
|
edit_node_taint_success_toast,
|
|
@@ -7627,7 +7631,6 @@ function ValueDisplay(props) {
|
|
|
7627
7631
|
} = props;
|
|
7628
7632
|
const htmlTitle = typeof value2 === "string" || typeof value2 === "number" ? String(value2) : void 0;
|
|
7629
7633
|
const result = useOverflow ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
7630
|
-
title: htmlTitle,
|
|
7631
7634
|
style,
|
|
7632
7635
|
className: cx_default(className, ContentStyle$2),
|
|
7633
7636
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(OverflowTooltip, {
|
|
@@ -8647,7 +8650,7 @@ const DistributeStorageForm = React.forwardRef(function DistributeStorageForm2(p
|
|
|
8647
8650
|
values: v,
|
|
8648
8651
|
successNotification() {
|
|
8649
8652
|
return {
|
|
8650
|
-
message: t2("dovetail.
|
|
8653
|
+
message: t2("dovetail.edit_request_capacity_success_toast", {
|
|
8651
8654
|
kind: pvc2.kind,
|
|
8652
8655
|
name: pvc2.id,
|
|
8653
8656
|
interpolation: {
|
|
@@ -8670,7 +8673,7 @@ const DistributeStorageForm = React.forwardRef(function DistributeStorageForm2(p
|
|
|
8670
8673
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
8671
8674
|
Form.Item,
|
|
8672
8675
|
{
|
|
8673
|
-
label: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { style: { width: "134px" }, children: label2 || t2("dovetail.
|
|
8676
|
+
label: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { style: { width: "134px" }, children: label2 || t2("dovetail.request_capacity") }),
|
|
8674
8677
|
colon: false,
|
|
8675
8678
|
help: validateResult.distributeStorage,
|
|
8676
8679
|
validateStatus: validateResult.distributeStorage ? "error" : "",
|
|
@@ -8723,7 +8726,7 @@ function PVCDistributeStorage({
|
|
|
8723
8726
|
{
|
|
8724
8727
|
modalProps: {
|
|
8725
8728
|
formRef,
|
|
8726
|
-
title: t2("dovetail.
|
|
8729
|
+
title: t2("dovetail.edit_request_capacity"),
|
|
8727
8730
|
namespace: pvc2.namespace || "",
|
|
8728
8731
|
renderContent() {
|
|
8729
8732
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -10211,6 +10214,9 @@ class PersistentVolumeClaimModel extends ResourceModel {
|
|
|
10211
10214
|
get storageBytes() {
|
|
10212
10215
|
return parseSi(get$2(this._rawYaml, "spec.resources.requests.storage") || "0Gi");
|
|
10213
10216
|
}
|
|
10217
|
+
get allocatedStorageBytes() {
|
|
10218
|
+
return parseSi(get$2(this._rawYaml, "status.capacity.storage") || "0Gi");
|
|
10219
|
+
}
|
|
10214
10220
|
updateDistributeStorage(distributeStorage) {
|
|
10215
10221
|
const yaml2 = cloneDeep(this._globalStore.restoreItem(this));
|
|
10216
10222
|
return set(yaml2, "spec.resources.requests.storage", `${distributeStorage}Gi`);
|
|
@@ -10239,7 +10245,7 @@ class IngressClassModel extends ResourceModel {
|
|
|
10239
10245
|
return (_a = this.spec) == null ? void 0 : _a.controller;
|
|
10240
10246
|
}
|
|
10241
10247
|
}
|
|
10242
|
-
const
|
|
10248
|
+
const index_1rec449 = "";
|
|
10243
10249
|
const ServiceInClusterAccessComponent = ({
|
|
10244
10250
|
service
|
|
10245
10251
|
}) => {
|
|
@@ -10261,6 +10267,8 @@ const ServiceInClusterAccessComponent = ({
|
|
|
10261
10267
|
};
|
|
10262
10268
|
const BreakLineStyle = "b1vtjd4k";
|
|
10263
10269
|
const LinkStyle$2 = "luro4rx";
|
|
10270
|
+
const ShowLinkStyle = "s1gydjqf";
|
|
10271
|
+
const DashedUnderlineSpanStyle = "dvp1i89";
|
|
10264
10272
|
const ServiceOutClusterAccessComponent = ({
|
|
10265
10273
|
service,
|
|
10266
10274
|
breakLine = true,
|
|
@@ -10279,29 +10287,38 @@ const ServiceOutClusterAccessComponent = ({
|
|
|
10279
10287
|
content = (_a = spec.ports) == null ? void 0 : _a.filter((v) => !!v).map((p) => [/* @__PURE__ */ jsxRuntimeExports.jsx(Link$1, {
|
|
10280
10288
|
href: `http://${clusterVip}:${p.nodePort}`,
|
|
10281
10289
|
target: "_blank",
|
|
10282
|
-
className: cx_default(
|
|
10283
|
-
children:
|
|
10290
|
+
className: cx_default(ShowLinkStyle, Typo.Label.l4_regular_title),
|
|
10291
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip, {
|
|
10292
|
+
title: i18n2.t("dovetail.default_http_protocol_tooltip"),
|
|
10293
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", {
|
|
10294
|
+
className: DashedUnderlineSpanStyle,
|
|
10295
|
+
children: `${clusterVip}:${p.nodePort}`
|
|
10296
|
+
})
|
|
10297
|
+
})
|
|
10284
10298
|
}, p.name)]);
|
|
10285
10299
|
if (content && content instanceof Array) {
|
|
10286
10300
|
const result = [];
|
|
10287
10301
|
for (let i2 = 0; i2 < content.length; i2++) {
|
|
10288
10302
|
result.push(content[i2]);
|
|
10289
10303
|
if (i2 < content.length - 1) {
|
|
10290
|
-
result.push(",");
|
|
10304
|
+
result.push(", ");
|
|
10291
10305
|
}
|
|
10292
10306
|
}
|
|
10293
10307
|
content = result;
|
|
10294
10308
|
}
|
|
10295
10309
|
break;
|
|
10296
10310
|
}
|
|
10297
|
-
content = (_b = spec.ports) == null ? void 0 : _b.filter((v) => !!v).map((p) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
10298
|
-
|
|
10299
|
-
|
|
10300
|
-
|
|
10301
|
-
|
|
10302
|
-
|
|
10303
|
-
|
|
10304
|
-
|
|
10311
|
+
content = (_b = spec.ports) == null ? void 0 : _b.filter((v) => !!v).map((p) => /* @__PURE__ */ jsxRuntimeExports.jsx(Link$1, {
|
|
10312
|
+
href: `http://${clusterVip}:${p.nodePort}`,
|
|
10313
|
+
target: "_blank",
|
|
10314
|
+
className: cx_default(Typo.Label.l4_regular_title, BreakLineStyle, LinkStyle$2),
|
|
10315
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip, {
|
|
10316
|
+
title: i18n2.t("dovetail.default_http_protocol_tooltip"),
|
|
10317
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsxs("span", {
|
|
10318
|
+
className: DashedUnderlineSpanStyle,
|
|
10319
|
+
children: [clusterVip, ":", p.nodePort]
|
|
10320
|
+
})
|
|
10321
|
+
})
|
|
10305
10322
|
}, p.nodePort));
|
|
10306
10323
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("ul", {
|
|
10307
10324
|
children: content
|
|
@@ -14163,7 +14180,7 @@ const PVCStorageField = ({
|
|
|
14163
14180
|
key: "storage",
|
|
14164
14181
|
col: 12,
|
|
14165
14182
|
path: ["spec", "resources", "requests", "storage"],
|
|
14166
|
-
title: i18n2.t("dovetail.
|
|
14183
|
+
title: i18n2.t("dovetail.request_capacity"),
|
|
14167
14184
|
renderContent(value2, pvc2) {
|
|
14168
14185
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(PVCDistributeStorage, {
|
|
14169
14186
|
pvc: pvc2,
|
|
@@ -19942,7 +19959,7 @@ const PVCStorageColumnRenderer = (i18n2) => {
|
|
|
19942
19959
|
return {
|
|
19943
19960
|
key: "storage",
|
|
19944
19961
|
display: true,
|
|
19945
|
-
dataIndex: ["
|
|
19962
|
+
dataIndex: ["allocatedStorageBytes"],
|
|
19946
19963
|
title: i18n2.t("dovetail.distributed"),
|
|
19947
19964
|
width: 120,
|
|
19948
19965
|
sortable: true,
|
package/dist/style.css
CHANGED
|
@@ -966,7 +966,24 @@
|
|
|
966
966
|
|
|
967
967
|
.luro4rx.ant-btn-link.ant-btn {
|
|
968
968
|
padding: 0;
|
|
969
|
-
height:
|
|
969
|
+
height: 18px;
|
|
970
|
+
}
|
|
971
|
+
|
|
972
|
+
.s1gydjqf.ant-btn-link.ant-btn {
|
|
973
|
+
padding: 0;
|
|
974
|
+
height: 18px;
|
|
975
|
+
color: var(--blue-60) !important;
|
|
976
|
+
}
|
|
977
|
+
.s1gydjqf.ant-btn-link.ant-btn:hover {
|
|
978
|
+
color: var(--blue-50) !important;
|
|
979
|
+
}
|
|
980
|
+
|
|
981
|
+
.dvp1i89 {
|
|
982
|
+
display: inline-block;
|
|
983
|
+
width: auto !important;
|
|
984
|
+
height: 18px;
|
|
985
|
+
line-height: 18px;
|
|
986
|
+
border-bottom: 1px dashed rgba(107, 128, 167, 0.6);
|
|
970
987
|
}/* // basic */
|
|
971
988
|
/* FishEye Color Variables and Functions */
|
|
972
989
|
/*
|