@dovetail-v2/refine 0.3.28-alpha.3 → 0.3.29-alpha.0
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
CHANGED
|
@@ -201,9 +201,9 @@ export declare const resources: {
|
|
|
201
201
|
default_sc: string;
|
|
202
202
|
reclaim_policy: string;
|
|
203
203
|
allow_expand: string;
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
204
|
+
request_capacity: string;
|
|
205
|
+
edit_request_capacity: string;
|
|
206
|
+
edit_request_capacity_success_toast: string;
|
|
207
207
|
edit_taint: string;
|
|
208
208
|
edit_node_taint: string;
|
|
209
209
|
edit_node_taint_success_toast: string;
|
|
@@ -478,9 +478,9 @@ export declare const resources: {
|
|
|
478
478
|
default_sc: string;
|
|
479
479
|
reclaim_policy: string;
|
|
480
480
|
allow_expand: string;
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
481
|
+
request_capacity: string;
|
|
482
|
+
edit_request_capacity: string;
|
|
483
|
+
edit_request_capacity_success_toast: string;
|
|
484
484
|
edit_taint: string;
|
|
485
485
|
edit_node_taint: string;
|
|
486
486
|
edit_node_taint_success_toast: string;
|
|
@@ -198,9 +198,9 @@ declare const _default: {
|
|
|
198
198
|
default_sc: string;
|
|
199
199
|
reclaim_policy: string;
|
|
200
200
|
allow_expand: string;
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
201
|
+
request_capacity: string;
|
|
202
|
+
edit_request_capacity: string;
|
|
203
|
+
edit_request_capacity_success_toast: string;
|
|
204
204
|
edit_taint: string;
|
|
205
205
|
edit_node_taint: string;
|
|
206
206
|
edit_node_taint_success_toast: string;
|
|
@@ -196,9 +196,9 @@ declare const _default: {
|
|
|
196
196
|
default_sc: string;
|
|
197
197
|
reclaim_policy: string;
|
|
198
198
|
allow_expand: string;
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
199
|
+
request_capacity: string;
|
|
200
|
+
edit_request_capacity: string;
|
|
201
|
+
edit_request_capacity_success_toast: string;
|
|
202
202
|
edit_taint: string;
|
|
203
203
|
edit_node_taint: string;
|
|
204
204
|
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
|
@@ -655,9 +655,9 @@ const retain$1 = "Retain";
|
|
|
655
655
|
const default_sc$1 = "Default storage class";
|
|
656
656
|
const reclaim_policy$1 = "Reclaim policy";
|
|
657
657
|
const allow_expand$1 = "Volume expansion";
|
|
658
|
-
const
|
|
659
|
-
const
|
|
660
|
-
const
|
|
658
|
+
const request_capacity$1 = "Request capacity";
|
|
659
|
+
const edit_request_capacity$1 = "Edit request capacity";
|
|
660
|
+
const edit_request_capacity_success_toast$1 = "Successfully edited request capacity";
|
|
661
661
|
const edit_taint$1 = "Edit taint";
|
|
662
662
|
const edit_node_taint$1 = "Edit taint";
|
|
663
663
|
const edit_node_taint_success_toast$1 = "Successfully edited the taint for the node {{name}}";
|
|
@@ -666,10 +666,10 @@ const node_taint_PreferNoSchedule$1 = "PreferNoSchedule";
|
|
|
666
666
|
const node_taint_NoExecute$1 = "NoExecute";
|
|
667
667
|
const taint$1 = "Taint";
|
|
668
668
|
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
|
|
669
|
+
const pvc_storage_required$1 = "Please specify the request capacity.";
|
|
670
670
|
const pvc_storage_min$1 = "Please enter a positive integer.";
|
|
671
671
|
const pvc_storage_reduce_limit$1 = "The value cannot be less than the current value.";
|
|
672
|
-
const pvc_storage_max_limit$1 = "The
|
|
672
|
+
const pvc_storage_max_limit$1 = "The request capacity cannot exceed 64 TiB.";
|
|
673
673
|
const key_empty_text$1 = "Please specify a key.";
|
|
674
674
|
const format_error$1 = "Format error.";
|
|
675
675
|
const taint_effect_empty_text$1 = "Please select an effect.";
|
|
@@ -931,9 +931,9 @@ const dovetail$1 = {
|
|
|
931
931
|
default_sc: default_sc$1,
|
|
932
932
|
reclaim_policy: reclaim_policy$1,
|
|
933
933
|
allow_expand: allow_expand$1,
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
934
|
+
request_capacity: request_capacity$1,
|
|
935
|
+
edit_request_capacity: edit_request_capacity$1,
|
|
936
|
+
edit_request_capacity_success_toast: edit_request_capacity_success_toast$1,
|
|
937
937
|
edit_taint: edit_taint$1,
|
|
938
938
|
edit_node_taint: edit_node_taint$1,
|
|
939
939
|
edit_node_taint_success_toast: edit_node_taint_success_toast$1,
|
|
@@ -1205,9 +1205,9 @@ const retain = "保留";
|
|
|
1205
1205
|
const default_sc = "默认存储类";
|
|
1206
1206
|
const reclaim_policy = "回收策略";
|
|
1207
1207
|
const allow_expand = "卷扩容";
|
|
1208
|
-
const
|
|
1209
|
-
const
|
|
1210
|
-
const
|
|
1208
|
+
const request_capacity = "申请量";
|
|
1209
|
+
const edit_request_capacity = "编辑申请量";
|
|
1210
|
+
const edit_request_capacity_success_toast = "编辑申请量成功";
|
|
1211
1211
|
const edit_taint = "编辑污点";
|
|
1212
1212
|
const edit_node_taint = "编辑污点";
|
|
1213
1213
|
const edit_node_taint_success_toast = "编辑节点 {{name}} 的污点成功";
|
|
@@ -1216,10 +1216,10 @@ const node_taint_PreferNoSchedule = "尽可能阻止调度";
|
|
|
1216
1216
|
const node_taint_NoExecute = "阻止调度并驱逐 Pod";
|
|
1217
1217
|
const taint = "污点";
|
|
1218
1218
|
const change_form_mode_alert = "从编辑 YAML 切回表单编辑,将无法保留对 YAML 文件做出的所有更改。";
|
|
1219
|
-
const pvc_storage_required = "
|
|
1219
|
+
const pvc_storage_required = "请填写申请量。";
|
|
1220
1220
|
const pvc_storage_min = "请输入正整数。";
|
|
1221
1221
|
const pvc_storage_reduce_limit = "输入值不得小于当前数值。";
|
|
1222
|
-
const pvc_storage_max_limit = "
|
|
1222
|
+
const pvc_storage_max_limit = "申请量不能超过 64 TiB。";
|
|
1223
1223
|
const key_empty_text = "请填写键。";
|
|
1224
1224
|
const format_error = "格式错误。";
|
|
1225
1225
|
const taint_effect_empty_text = "请选择效果。";
|
|
@@ -1480,9 +1480,9 @@ const dovetail = {
|
|
|
1480
1480
|
default_sc,
|
|
1481
1481
|
reclaim_policy,
|
|
1482
1482
|
allow_expand,
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1483
|
+
request_capacity,
|
|
1484
|
+
edit_request_capacity,
|
|
1485
|
+
edit_request_capacity_success_toast,
|
|
1486
1486
|
edit_taint,
|
|
1487
1487
|
edit_node_taint,
|
|
1488
1488
|
edit_node_taint_success_toast,
|
|
@@ -7646,7 +7646,6 @@ function ValueDisplay(props) {
|
|
|
7646
7646
|
} = props;
|
|
7647
7647
|
const htmlTitle = typeof value2 === "string" || typeof value2 === "number" ? String(value2) : void 0;
|
|
7648
7648
|
const result = useOverflow ? /* @__PURE__ */ common.jsxRuntimeExports.jsx("div", {
|
|
7649
|
-
title: htmlTitle,
|
|
7650
7649
|
style,
|
|
7651
7650
|
className: common.cx_default(className, ContentStyle$2),
|
|
7652
7651
|
children: /* @__PURE__ */ common.jsxRuntimeExports.jsx(eagle.OverflowTooltip, {
|
|
@@ -8666,7 +8665,7 @@ const DistributeStorageForm = React.forwardRef(function DistributeStorageForm2(p
|
|
|
8666
8665
|
values: v,
|
|
8667
8666
|
successNotification() {
|
|
8668
8667
|
return {
|
|
8669
|
-
message: t2("dovetail.
|
|
8668
|
+
message: t2("dovetail.edit_request_capacity_success_toast", {
|
|
8670
8669
|
kind: pvc2.kind,
|
|
8671
8670
|
name: pvc2.id,
|
|
8672
8671
|
interpolation: {
|
|
@@ -8689,7 +8688,7 @@ const DistributeStorageForm = React.forwardRef(function DistributeStorageForm2(p
|
|
|
8689
8688
|
return /* @__PURE__ */ common.jsxRuntimeExports.jsx(
|
|
8690
8689
|
eagle.Form.Item,
|
|
8691
8690
|
{
|
|
8692
|
-
label: /* @__PURE__ */ common.jsxRuntimeExports.jsx("span", { style: { width: "134px" }, children: label2 || t2("dovetail.
|
|
8691
|
+
label: /* @__PURE__ */ common.jsxRuntimeExports.jsx("span", { style: { width: "134px" }, children: label2 || t2("dovetail.request_capacity") }),
|
|
8693
8692
|
colon: false,
|
|
8694
8693
|
help: validateResult.distributeStorage,
|
|
8695
8694
|
validateStatus: validateResult.distributeStorage ? "error" : "",
|
|
@@ -8742,7 +8741,7 @@ function PVCDistributeStorage({
|
|
|
8742
8741
|
{
|
|
8743
8742
|
modalProps: {
|
|
8744
8743
|
formRef,
|
|
8745
|
-
title: t2("dovetail.
|
|
8744
|
+
title: t2("dovetail.edit_request_capacity"),
|
|
8746
8745
|
namespace: pvc2.namespace || "",
|
|
8747
8746
|
renderContent() {
|
|
8748
8747
|
return /* @__PURE__ */ common.jsxRuntimeExports.jsx(
|
|
@@ -10230,6 +10229,9 @@ class PersistentVolumeClaimModel extends ResourceModel {
|
|
|
10230
10229
|
get storageBytes() {
|
|
10231
10230
|
return parseSi(lodashEs.get(this._rawYaml, "spec.resources.requests.storage") || "0Gi");
|
|
10232
10231
|
}
|
|
10232
|
+
get allocatedStorageBytes() {
|
|
10233
|
+
return parseSi(lodashEs.get(this._rawYaml, "status.capacity.storage") || "0Gi");
|
|
10234
|
+
}
|
|
10233
10235
|
updateDistributeStorage(distributeStorage) {
|
|
10234
10236
|
const yaml2 = lodashEs.cloneDeep(this._globalStore.restoreItem(this));
|
|
10235
10237
|
return lodashEs.set(yaml2, "spec.resources.requests.storage", `${distributeStorage}Gi`);
|
|
@@ -14182,7 +14184,7 @@ const PVCStorageField = ({
|
|
|
14182
14184
|
key: "storage",
|
|
14183
14185
|
col: 12,
|
|
14184
14186
|
path: ["spec", "resources", "requests", "storage"],
|
|
14185
|
-
title: i18n2.t("dovetail.
|
|
14187
|
+
title: i18n2.t("dovetail.request_capacity"),
|
|
14186
14188
|
renderContent(value2, pvc2) {
|
|
14187
14189
|
return /* @__PURE__ */ common.jsxRuntimeExports.jsx(PVCDistributeStorage, {
|
|
14188
14190
|
pvc: pvc2,
|
|
@@ -19961,7 +19963,7 @@ const PVCStorageColumnRenderer = (i18n2) => {
|
|
|
19961
19963
|
return {
|
|
19962
19964
|
key: "storage",
|
|
19963
19965
|
display: true,
|
|
19964
|
-
dataIndex: ["
|
|
19966
|
+
dataIndex: ["allocatedStorageBytes"],
|
|
19965
19967
|
title: i18n2.t("dovetail.distributed"),
|
|
19966
19968
|
width: 120,
|
|
19967
19969
|
sortable: true,
|
package/dist/refine.js
CHANGED
|
@@ -636,9 +636,9 @@ const retain$1 = "Retain";
|
|
|
636
636
|
const default_sc$1 = "Default storage class";
|
|
637
637
|
const reclaim_policy$1 = "Reclaim policy";
|
|
638
638
|
const allow_expand$1 = "Volume expansion";
|
|
639
|
-
const
|
|
640
|
-
const
|
|
641
|
-
const
|
|
639
|
+
const request_capacity$1 = "Request capacity";
|
|
640
|
+
const edit_request_capacity$1 = "Edit request capacity";
|
|
641
|
+
const edit_request_capacity_success_toast$1 = "Successfully edited request capacity";
|
|
642
642
|
const edit_taint$1 = "Edit taint";
|
|
643
643
|
const edit_node_taint$1 = "Edit taint";
|
|
644
644
|
const edit_node_taint_success_toast$1 = "Successfully edited the taint for the node {{name}}";
|
|
@@ -647,10 +647,10 @@ const node_taint_PreferNoSchedule$1 = "PreferNoSchedule";
|
|
|
647
647
|
const node_taint_NoExecute$1 = "NoExecute";
|
|
648
648
|
const taint$1 = "Taint";
|
|
649
649
|
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
|
|
650
|
+
const pvc_storage_required$1 = "Please specify the request capacity.";
|
|
651
651
|
const pvc_storage_min$1 = "Please enter a positive integer.";
|
|
652
652
|
const pvc_storage_reduce_limit$1 = "The value cannot be less than the current value.";
|
|
653
|
-
const pvc_storage_max_limit$1 = "The
|
|
653
|
+
const pvc_storage_max_limit$1 = "The request capacity cannot exceed 64 TiB.";
|
|
654
654
|
const key_empty_text$1 = "Please specify a key.";
|
|
655
655
|
const format_error$1 = "Format error.";
|
|
656
656
|
const taint_effect_empty_text$1 = "Please select an effect.";
|
|
@@ -912,9 +912,9 @@ const dovetail$1 = {
|
|
|
912
912
|
default_sc: default_sc$1,
|
|
913
913
|
reclaim_policy: reclaim_policy$1,
|
|
914
914
|
allow_expand: allow_expand$1,
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
915
|
+
request_capacity: request_capacity$1,
|
|
916
|
+
edit_request_capacity: edit_request_capacity$1,
|
|
917
|
+
edit_request_capacity_success_toast: edit_request_capacity_success_toast$1,
|
|
918
918
|
edit_taint: edit_taint$1,
|
|
919
919
|
edit_node_taint: edit_node_taint$1,
|
|
920
920
|
edit_node_taint_success_toast: edit_node_taint_success_toast$1,
|
|
@@ -1186,9 +1186,9 @@ const retain = "保留";
|
|
|
1186
1186
|
const default_sc = "默认存储类";
|
|
1187
1187
|
const reclaim_policy = "回收策略";
|
|
1188
1188
|
const allow_expand = "卷扩容";
|
|
1189
|
-
const
|
|
1190
|
-
const
|
|
1191
|
-
const
|
|
1189
|
+
const request_capacity = "申请量";
|
|
1190
|
+
const edit_request_capacity = "编辑申请量";
|
|
1191
|
+
const edit_request_capacity_success_toast = "编辑申请量成功";
|
|
1192
1192
|
const edit_taint = "编辑污点";
|
|
1193
1193
|
const edit_node_taint = "编辑污点";
|
|
1194
1194
|
const edit_node_taint_success_toast = "编辑节点 {{name}} 的污点成功";
|
|
@@ -1197,10 +1197,10 @@ const node_taint_PreferNoSchedule = "尽可能阻止调度";
|
|
|
1197
1197
|
const node_taint_NoExecute = "阻止调度并驱逐 Pod";
|
|
1198
1198
|
const taint = "污点";
|
|
1199
1199
|
const change_form_mode_alert = "从编辑 YAML 切回表单编辑,将无法保留对 YAML 文件做出的所有更改。";
|
|
1200
|
-
const pvc_storage_required = "
|
|
1200
|
+
const pvc_storage_required = "请填写申请量。";
|
|
1201
1201
|
const pvc_storage_min = "请输入正整数。";
|
|
1202
1202
|
const pvc_storage_reduce_limit = "输入值不得小于当前数值。";
|
|
1203
|
-
const pvc_storage_max_limit = "
|
|
1203
|
+
const pvc_storage_max_limit = "申请量不能超过 64 TiB。";
|
|
1204
1204
|
const key_empty_text = "请填写键。";
|
|
1205
1205
|
const format_error = "格式错误。";
|
|
1206
1206
|
const taint_effect_empty_text = "请选择效果。";
|
|
@@ -1461,9 +1461,9 @@ const dovetail = {
|
|
|
1461
1461
|
default_sc,
|
|
1462
1462
|
reclaim_policy,
|
|
1463
1463
|
allow_expand,
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1464
|
+
request_capacity,
|
|
1465
|
+
edit_request_capacity,
|
|
1466
|
+
edit_request_capacity_success_toast,
|
|
1467
1467
|
edit_taint,
|
|
1468
1468
|
edit_node_taint,
|
|
1469
1469
|
edit_node_taint_success_toast,
|
|
@@ -7627,7 +7627,6 @@ function ValueDisplay(props) {
|
|
|
7627
7627
|
} = props;
|
|
7628
7628
|
const htmlTitle = typeof value2 === "string" || typeof value2 === "number" ? String(value2) : void 0;
|
|
7629
7629
|
const result = useOverflow ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
7630
|
-
title: htmlTitle,
|
|
7631
7630
|
style,
|
|
7632
7631
|
className: cx_default(className, ContentStyle$2),
|
|
7633
7632
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(OverflowTooltip, {
|
|
@@ -8647,7 +8646,7 @@ const DistributeStorageForm = React.forwardRef(function DistributeStorageForm2(p
|
|
|
8647
8646
|
values: v,
|
|
8648
8647
|
successNotification() {
|
|
8649
8648
|
return {
|
|
8650
|
-
message: t2("dovetail.
|
|
8649
|
+
message: t2("dovetail.edit_request_capacity_success_toast", {
|
|
8651
8650
|
kind: pvc2.kind,
|
|
8652
8651
|
name: pvc2.id,
|
|
8653
8652
|
interpolation: {
|
|
@@ -8670,7 +8669,7 @@ const DistributeStorageForm = React.forwardRef(function DistributeStorageForm2(p
|
|
|
8670
8669
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
8671
8670
|
Form.Item,
|
|
8672
8671
|
{
|
|
8673
|
-
label: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { style: { width: "134px" }, children: label2 || t2("dovetail.
|
|
8672
|
+
label: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { style: { width: "134px" }, children: label2 || t2("dovetail.request_capacity") }),
|
|
8674
8673
|
colon: false,
|
|
8675
8674
|
help: validateResult.distributeStorage,
|
|
8676
8675
|
validateStatus: validateResult.distributeStorage ? "error" : "",
|
|
@@ -8723,7 +8722,7 @@ function PVCDistributeStorage({
|
|
|
8723
8722
|
{
|
|
8724
8723
|
modalProps: {
|
|
8725
8724
|
formRef,
|
|
8726
|
-
title: t2("dovetail.
|
|
8725
|
+
title: t2("dovetail.edit_request_capacity"),
|
|
8727
8726
|
namespace: pvc2.namespace || "",
|
|
8728
8727
|
renderContent() {
|
|
8729
8728
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -10211,6 +10210,9 @@ class PersistentVolumeClaimModel extends ResourceModel {
|
|
|
10211
10210
|
get storageBytes() {
|
|
10212
10211
|
return parseSi(get$2(this._rawYaml, "spec.resources.requests.storage") || "0Gi");
|
|
10213
10212
|
}
|
|
10213
|
+
get allocatedStorageBytes() {
|
|
10214
|
+
return parseSi(get$2(this._rawYaml, "status.capacity.storage") || "0Gi");
|
|
10215
|
+
}
|
|
10214
10216
|
updateDistributeStorage(distributeStorage) {
|
|
10215
10217
|
const yaml2 = cloneDeep(this._globalStore.restoreItem(this));
|
|
10216
10218
|
return set(yaml2, "spec.resources.requests.storage", `${distributeStorage}Gi`);
|
|
@@ -14163,7 +14165,7 @@ const PVCStorageField = ({
|
|
|
14163
14165
|
key: "storage",
|
|
14164
14166
|
col: 12,
|
|
14165
14167
|
path: ["spec", "resources", "requests", "storage"],
|
|
14166
|
-
title: i18n2.t("dovetail.
|
|
14168
|
+
title: i18n2.t("dovetail.request_capacity"),
|
|
14167
14169
|
renderContent(value2, pvc2) {
|
|
14168
14170
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(PVCDistributeStorage, {
|
|
14169
14171
|
pvc: pvc2,
|
|
@@ -19942,7 +19944,7 @@ const PVCStorageColumnRenderer = (i18n2) => {
|
|
|
19942
19944
|
return {
|
|
19943
19945
|
key: "storage",
|
|
19944
19946
|
display: true,
|
|
19945
|
-
dataIndex: ["
|
|
19947
|
+
dataIndex: ["allocatedStorageBytes"],
|
|
19946
19948
|
title: i18n2.t("dovetail.distributed"),
|
|
19947
19949
|
width: 120,
|
|
19948
19950
|
sortable: true,
|