@dovetail-v2/refine 0.2.11 → 0.3.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/{MonacoYamlEditor-cdede43d.cjs → MonacoYamlEditor-1ed09191.cjs} +1 -1
- package/dist/{MonacoYamlEditor-53af8c53.js → MonacoYamlEditor-74ecf0d5.js} +1 -1
- package/dist/components/ResourceLink/index.d.ts +1 -1
- package/dist/hooks/useEagleTable/columns.d.ts +1 -2
- package/dist/hooks/useOpenForm.d.ts +1 -1
- package/dist/{index-ac5ee636.js → index-23ef5f69.js} +318 -304
- package/dist/{index-ef2a5914.cjs → index-7c78ef6f.cjs} +78 -64
- package/dist/models/pod-model.d.ts +1 -1
- package/dist/models/workload-model.d.ts +1 -0
- package/dist/refine.cjs +3 -3
- package/dist/refine.js +243 -243
- package/dist/utils/getResourceNameByKind.d.ts +2 -0
- package/dist/utils/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -9317,7 +9317,7 @@ class JobModel extends WorkloadBaseModel {
|
|
|
9317
9317
|
return matchSelector(p, (_a = this.spec) == null ? void 0 : _a.selector, this.metadata.namespace);
|
|
9318
9318
|
}
|
|
9319
9319
|
);
|
|
9320
|
-
const result = lodashExports.sumBy(myPods, "
|
|
9320
|
+
const result = lodashExports.sumBy(myPods, "restarts");
|
|
9321
9321
|
this.restarts = result;
|
|
9322
9322
|
}
|
|
9323
9323
|
get duration() {
|
|
@@ -9384,7 +9384,7 @@ class WorkloadModel extends WorkloadBaseModel {
|
|
|
9384
9384
|
return matchSelector(p, (_a = this.spec) == null ? void 0 : _a.selector, this.metadata.namespace);
|
|
9385
9385
|
}
|
|
9386
9386
|
);
|
|
9387
|
-
const result = lodashExports.sumBy(myPods, "
|
|
9387
|
+
const result = lodashExports.sumBy(myPods, "restarts");
|
|
9388
9388
|
this.restarts = result;
|
|
9389
9389
|
}
|
|
9390
9390
|
get replicas() {
|
|
@@ -9393,6 +9393,9 @@ class WorkloadModel extends WorkloadBaseModel {
|
|
|
9393
9393
|
get readyReplicas() {
|
|
9394
9394
|
return this.status && "readyReplicas" in this.status ? this.status.readyReplicas : 0;
|
|
9395
9395
|
}
|
|
9396
|
+
get appKey() {
|
|
9397
|
+
return `${this.kind}-${this.name}-${this.namespace}`;
|
|
9398
|
+
}
|
|
9396
9399
|
redeploy() {
|
|
9397
9400
|
const rawYaml = this._globalStore.restoreItem(this);
|
|
9398
9401
|
const newOne = lodashExports.cloneDeep(rawYaml);
|
|
@@ -9465,7 +9468,7 @@ class PodModel extends WorkloadBaseModel {
|
|
|
9465
9468
|
(container2) => shortenedImage(container2.image || "")
|
|
9466
9469
|
)) || [];
|
|
9467
9470
|
}
|
|
9468
|
-
get
|
|
9471
|
+
get restarts() {
|
|
9469
9472
|
var _a, _b;
|
|
9470
9473
|
if ((_a = this._rawYaml.status) == null ? void 0 : _a.containerStatuses) {
|
|
9471
9474
|
return ((_b = this._rawYaml.status) == null ? void 0 : _b.containerStatuses.reduce((count, container2) => {
|
|
@@ -10197,16 +10200,17 @@ function useOpenForm(options) {
|
|
|
10197
10200
|
const navigation = core.useNavigation();
|
|
10198
10201
|
const pushModal = eagle.usePushModal();
|
|
10199
10202
|
const go = core.useGo();
|
|
10200
|
-
return function openForm() {
|
|
10203
|
+
return function openForm(resourceName) {
|
|
10201
10204
|
var _a, _b;
|
|
10202
|
-
|
|
10203
|
-
|
|
10205
|
+
const finalResourceName = resourceName || (resource == null ? void 0 : resource.name);
|
|
10206
|
+
if (finalResourceName) {
|
|
10207
|
+
const config = configs[finalResourceName];
|
|
10204
10208
|
const formType = (_a = config.formConfig) == null ? void 0 : _a.formContainerType;
|
|
10205
10209
|
if (formType === void 0 || formType === FormContainerType.MODAL) {
|
|
10206
10210
|
pushModal({
|
|
10207
10211
|
component: ((_b = config.formConfig) == null ? void 0 : _b.CustomFormModal) || FormModal,
|
|
10208
10212
|
props: {
|
|
10209
|
-
resource:
|
|
10213
|
+
resource: finalResourceName,
|
|
10210
10214
|
id: options == null ? void 0 : options.id,
|
|
10211
10215
|
formProps: {
|
|
10212
10216
|
initialValues: getInitialValues(config)
|
|
@@ -10217,7 +10221,7 @@ function useOpenForm(options) {
|
|
|
10217
10221
|
edit2(options.id);
|
|
10218
10222
|
} else {
|
|
10219
10223
|
go({
|
|
10220
|
-
to: navigation.createUrl(
|
|
10224
|
+
to: navigation.createUrl(finalResourceName),
|
|
10221
10225
|
options: {
|
|
10222
10226
|
keepQuery: true
|
|
10223
10227
|
}
|
|
@@ -10226,28 +10230,32 @@ function useOpenForm(options) {
|
|
|
10226
10230
|
}
|
|
10227
10231
|
};
|
|
10228
10232
|
}
|
|
10233
|
+
function getResourceNameByKind(kind, configs) {
|
|
10234
|
+
var _a;
|
|
10235
|
+
return (_a = Object.values(configs).find((config) => config.kind === kind)) == null ? void 0 : _a.name;
|
|
10236
|
+
}
|
|
10229
10237
|
function K8sDropdown(props) {
|
|
10230
10238
|
var _a;
|
|
10231
10239
|
const { record, size = "normal" } = props;
|
|
10232
10240
|
const globalStore = useGlobalStore();
|
|
10233
10241
|
const useResourceResult = core.useResource();
|
|
10234
|
-
const resource = useResourceResult.resource;
|
|
10235
10242
|
const configs = React.useContext(ConfigsContext);
|
|
10236
|
-
const
|
|
10243
|
+
const resourceName = getResourceNameByKind(record.kind || "", configs);
|
|
10244
|
+
const config = configs[resourceName || ""];
|
|
10237
10245
|
const { t: t2 } = common.useTranslation();
|
|
10238
|
-
const { openDeleteConfirmModal } = useDeleteModal({ resourceName:
|
|
10246
|
+
const { openDeleteConfirmModal } = useDeleteModal({ resourceName: resourceName || "" });
|
|
10239
10247
|
const download2 = useDownloadYAML();
|
|
10240
10248
|
const openForm = useOpenForm({ id: record.id });
|
|
10241
10249
|
const isInShowPage = useResourceResult.action === "show";
|
|
10242
10250
|
const { data: canEditData } = core.useCan({
|
|
10243
|
-
resource:
|
|
10251
|
+
resource: resourceName,
|
|
10244
10252
|
action: AccessControlAuth.Edit,
|
|
10245
10253
|
params: {
|
|
10246
10254
|
namespace: record.namespace
|
|
10247
10255
|
}
|
|
10248
10256
|
});
|
|
10249
10257
|
const { data: canDeleteData } = core.useCan({
|
|
10250
|
-
resource:
|
|
10258
|
+
resource: resourceName,
|
|
10251
10259
|
action: AccessControlAuth.Delete,
|
|
10252
10260
|
params: {
|
|
10253
10261
|
namespace: record.namespace
|
|
@@ -10258,7 +10266,7 @@ function K8sDropdown(props) {
|
|
|
10258
10266
|
eagle.Dropdown,
|
|
10259
10267
|
{
|
|
10260
10268
|
overlay: /* @__PURE__ */ common.jsxRuntimeExports.jsxs(eagle.Menu, { children: [
|
|
10261
|
-
isInShowPage || (canEditData == null ? void 0 : canEditData.can) === false || config.hideEdit ? null : /* @__PURE__ */ common.jsxRuntimeExports.jsx(eagle.Menu.Item, { onClick: openForm, children: /* @__PURE__ */ common.jsxRuntimeExports.jsx(eagle.Icon, { src: iconsReact.EditPen16PrimaryIcon, children: formType === FormType.FORM ? t2("dovetail.edit") : t2("dovetail.edit_yaml") }) }),
|
|
10269
|
+
isInShowPage || (canEditData == null ? void 0 : canEditData.can) === false || config.hideEdit ? null : /* @__PURE__ */ common.jsxRuntimeExports.jsx(eagle.Menu.Item, { onClick: () => openForm(), children: /* @__PURE__ */ common.jsxRuntimeExports.jsx(eagle.Icon, { src: iconsReact.EditPen16PrimaryIcon, children: formType === FormType.FORM ? t2("dovetail.edit") : t2("dovetail.edit_yaml") }) }),
|
|
10262
10270
|
/* @__PURE__ */ common.jsxRuntimeExports.jsx(
|
|
10263
10271
|
eagle.Menu.Item,
|
|
10264
10272
|
{
|
|
@@ -10416,7 +10424,7 @@ function CreateButton(props) {
|
|
|
10416
10424
|
{
|
|
10417
10425
|
prefixIcon: /* @__PURE__ */ common.jsxRuntimeExports.jsx(iconsReact.PlusAddCreateNew16BoldOntintIcon, {}),
|
|
10418
10426
|
type: "primary",
|
|
10419
|
-
onClick: openForm,
|
|
10427
|
+
onClick: () => openForm(),
|
|
10420
10428
|
children: createButtonText || t2("dovetail.create_resource", {
|
|
10421
10429
|
resource: transformResourceKindInSentence(label2, i18n2.language)
|
|
10422
10430
|
})
|
|
@@ -10695,7 +10703,7 @@ const index_x36tts = "";
|
|
|
10695
10703
|
const LinkStyle = "l1vnw9x0";
|
|
10696
10704
|
const ResourceLink = (props) => {
|
|
10697
10705
|
const {
|
|
10698
|
-
|
|
10706
|
+
resourceName,
|
|
10699
10707
|
namespace: namespace2,
|
|
10700
10708
|
name: name2,
|
|
10701
10709
|
uid,
|
|
@@ -10715,7 +10723,7 @@ const ResourceLink = (props) => {
|
|
|
10715
10723
|
const isCanRead = data2 == null ? void 0 : data2.can;
|
|
10716
10724
|
if (!isCanRead) {
|
|
10717
10725
|
return /* @__PURE__ */ common.jsxRuntimeExports.jsx("span", {
|
|
10718
|
-
children: name2
|
|
10726
|
+
children: displayName || name2
|
|
10719
10727
|
});
|
|
10720
10728
|
}
|
|
10721
10729
|
const onClick = () => {
|
|
@@ -10786,7 +10794,7 @@ const IngressRulesTable = ({ ingress }) => {
|
|
|
10786
10794
|
return record.serviceName ? /* @__PURE__ */ common.jsxRuntimeExports.jsx(
|
|
10787
10795
|
ResourceLink,
|
|
10788
10796
|
{
|
|
10789
|
-
|
|
10797
|
+
resourceName: "services",
|
|
10790
10798
|
namespace: ingress.metadata.namespace || "default",
|
|
10791
10799
|
name: serviceName
|
|
10792
10800
|
}
|
|
@@ -10813,7 +10821,7 @@ const IngressRulesTable = ({ ingress }) => {
|
|
|
10813
10821
|
return secretName ? /* @__PURE__ */ common.jsxRuntimeExports.jsx(
|
|
10814
10822
|
ResourceLink,
|
|
10815
10823
|
{
|
|
10816
|
-
|
|
10824
|
+
resourceName: "secrets",
|
|
10817
10825
|
namespace: ingress.metadata.namespace || "default",
|
|
10818
10826
|
name: secretName
|
|
10819
10827
|
}
|
|
@@ -11141,7 +11149,7 @@ const ShowContent = (props) => {
|
|
|
11141
11149
|
style: {
|
|
11142
11150
|
marginRight: 8
|
|
11143
11151
|
},
|
|
11144
|
-
onClick: openForm,
|
|
11152
|
+
onClick: () => openForm(),
|
|
11145
11153
|
children: ((_f = config.formConfig) == null ? void 0 : _f.formType) === FormType.FORM ? t2("dovetail.edit") : t2("dovetail.edit_yaml")
|
|
11146
11154
|
})
|
|
11147
11155
|
}) : null, /* @__PURE__ */ common.jsxRuntimeExports.jsx(Dropdown, {
|
|
@@ -11784,7 +11792,7 @@ const WorkloadPodsTable = ({
|
|
|
11784
11792
|
title: i18n2.t("dovetail.ip_address"),
|
|
11785
11793
|
sortable: true,
|
|
11786
11794
|
width: 160
|
|
11787
|
-
}, hideNodeColumn ? void 0 : NodeNameColumnRenderer(i18n2), WorkloadImageColumnRenderer(i18n2), PodContainersNumColumnRenderer(i18n2),
|
|
11795
|
+
}, hideNodeColumn ? void 0 : NodeNameColumnRenderer(i18n2), WorkloadImageColumnRenderer(i18n2), PodContainersNumColumnRenderer(i18n2), RestartsColumnRenderer(i18n2), AgeColumnRenderer(i18n2)].filter((v) => !!v);
|
|
11788
11796
|
const {
|
|
11789
11797
|
tableProps
|
|
11790
11798
|
} = useEagleTable({
|
|
@@ -12327,7 +12335,7 @@ const PVRefField = (i18n2) => {
|
|
|
12327
12335
|
return /* @__PURE__ */ common.jsxRuntimeExports.jsx(
|
|
12328
12336
|
ResourceLink,
|
|
12329
12337
|
{
|
|
12330
|
-
|
|
12338
|
+
resourceName: "persistentvolumes",
|
|
12331
12339
|
namespace: "",
|
|
12332
12340
|
name: value2
|
|
12333
12341
|
}
|
|
@@ -12341,7 +12349,7 @@ const PVStorageClassField = (i18n2) => {
|
|
|
12341
12349
|
path: ["spec", "storageClassName"],
|
|
12342
12350
|
title: i18n2.t("dovetail.storage_class"),
|
|
12343
12351
|
renderContent(value2) {
|
|
12344
|
-
return /* @__PURE__ */ common.jsxRuntimeExports.jsx(ResourceLink, {
|
|
12352
|
+
return /* @__PURE__ */ common.jsxRuntimeExports.jsx(ResourceLink, { resourceName: "storageclasses", namespace: "", name: value2 });
|
|
12345
12353
|
}
|
|
12346
12354
|
};
|
|
12347
12355
|
};
|
|
@@ -12409,7 +12417,7 @@ const PVCRefField = (i18n2) => {
|
|
|
12409
12417
|
return /* @__PURE__ */ common.jsxRuntimeExports.jsx(
|
|
12410
12418
|
ResourceLink,
|
|
12411
12419
|
{
|
|
12412
|
-
|
|
12420
|
+
resourceName: "persistentvolumeclaims",
|
|
12413
12421
|
namespace: pv2.pvcNamespace || "default",
|
|
12414
12422
|
name: value2,
|
|
12415
12423
|
uid: pv2.pvcUid
|
|
@@ -12699,7 +12707,7 @@ const PodLogTab = (i18n2) => ({
|
|
|
12699
12707
|
]
|
|
12700
12708
|
});
|
|
12701
12709
|
const NetworkPolicyRulesViewer_r6jity = "";
|
|
12702
|
-
const MonacoYamlEditor$1 = React.lazy(() => Promise.resolve().then(() => require("./MonacoYamlEditor-
|
|
12710
|
+
const MonacoYamlEditor$1 = React.lazy(() => Promise.resolve().then(() => require("./MonacoYamlEditor-1ed09191.cjs")));
|
|
12703
12711
|
const EditorStyle$1 = "e1cjl2b8";
|
|
12704
12712
|
const NetworkPolicyRulesViewer = ({
|
|
12705
12713
|
ingressOrEgress,
|
|
@@ -12776,13 +12784,13 @@ const PodContainersTable = ({
|
|
|
12776
12784
|
}
|
|
12777
12785
|
},
|
|
12778
12786
|
{
|
|
12779
|
-
key: "
|
|
12780
|
-
dataIndex: ["
|
|
12787
|
+
key: "restarts",
|
|
12788
|
+
dataIndex: ["restarts"],
|
|
12781
12789
|
title: i18n2.t("dovetail.restarts"),
|
|
12782
12790
|
sortable: true,
|
|
12783
12791
|
align: "right",
|
|
12784
12792
|
width: 120,
|
|
12785
|
-
sorter: CommonSorter(["
|
|
12793
|
+
sorter: CommonSorter(["restarts"])
|
|
12786
12794
|
},
|
|
12787
12795
|
{
|
|
12788
12796
|
key: "started",
|
|
@@ -15086,18 +15094,26 @@ const NamespacesFilter = ({
|
|
|
15086
15094
|
};
|
|
15087
15095
|
function useNamespaceRefineFilter() {
|
|
15088
15096
|
const { value: nsFilters = [] } = useNamespacesFilter();
|
|
15089
|
-
const filters = React.useMemo(() =>
|
|
15090
|
-
|
|
15091
|
-
|
|
15092
|
-
|
|
15093
|
-
|
|
15094
|
-
|
|
15095
|
-
|
|
15096
|
-
|
|
15097
|
-
|
|
15098
|
-
|
|
15099
|
-
|
|
15100
|
-
|
|
15097
|
+
const filters = React.useMemo(() => {
|
|
15098
|
+
const filters2 = nsFilters.filter((filter) => filter !== ALL_NS);
|
|
15099
|
+
if (filters2.length === 0) {
|
|
15100
|
+
return {
|
|
15101
|
+
permanent: []
|
|
15102
|
+
};
|
|
15103
|
+
}
|
|
15104
|
+
return {
|
|
15105
|
+
permanent: [
|
|
15106
|
+
{
|
|
15107
|
+
operator: "or",
|
|
15108
|
+
value: filters2.map((filter) => ({
|
|
15109
|
+
field: "metadata.namespace",
|
|
15110
|
+
operator: "eq",
|
|
15111
|
+
value: filter
|
|
15112
|
+
}))
|
|
15113
|
+
}
|
|
15114
|
+
]
|
|
15115
|
+
};
|
|
15116
|
+
}, [nsFilters]);
|
|
15101
15117
|
return filters;
|
|
15102
15118
|
}
|
|
15103
15119
|
const index_1l2xllo = "";
|
|
@@ -16123,7 +16139,7 @@ const PlainCodeStyle = "pqch97v";
|
|
|
16123
16139
|
const ErrorMsgStyle = "eh2qjnl";
|
|
16124
16140
|
const ErrorWrapperStyle = "e19q2bnp";
|
|
16125
16141
|
const YamlEditorStyle = "y16u5v3w";
|
|
16126
|
-
const MonacoYamlEditor = React.lazy(() => Promise.resolve().then(() => require("./MonacoYamlEditor-
|
|
16142
|
+
const MonacoYamlEditor = React.lazy(() => Promise.resolve().then(() => require("./MonacoYamlEditor-1ed09191.cjs")));
|
|
16127
16143
|
const MonacoYamlDiffEditor = React.lazy(() => Promise.resolve().then(() => require("./MonacoYamlDiffEditor-7a07db88.cjs")));
|
|
16128
16144
|
const YamlEditorComponent = React.forwardRef(
|
|
16129
16145
|
function YamlEditorComponent2(props, ref) {
|
|
@@ -17712,7 +17728,7 @@ const ReferenceLink = (props) => {
|
|
|
17712
17728
|
ResourceLink,
|
|
17713
17729
|
{
|
|
17714
17730
|
name: ownerReference.name,
|
|
17715
|
-
|
|
17731
|
+
resourceName: resource.name || "",
|
|
17716
17732
|
namespace: namespace2
|
|
17717
17733
|
}
|
|
17718
17734
|
);
|
|
@@ -17774,7 +17790,7 @@ const IngressRulesComponent = ({ ingress }) => {
|
|
|
17774
17790
|
/* @__PURE__ */ common.jsxRuntimeExports.jsx(
|
|
17775
17791
|
ResourceLink,
|
|
17776
17792
|
{
|
|
17777
|
-
|
|
17793
|
+
resourceName: "services",
|
|
17778
17794
|
namespace: ingress.metadata.namespace || "default",
|
|
17779
17795
|
name: r2.serviceName
|
|
17780
17796
|
}
|
|
@@ -17828,6 +17844,10 @@ const CommonSorter = (dataIndex) => (a2, b) => {
|
|
|
17828
17844
|
const valB = lodashExports.get(b, dataIndex);
|
|
17829
17845
|
if (valA === valB)
|
|
17830
17846
|
return 0;
|
|
17847
|
+
if (valA !== void 0 && valB === void 0)
|
|
17848
|
+
return 1;
|
|
17849
|
+
if (valA === void 0 && valB !== void 0)
|
|
17850
|
+
return -1;
|
|
17831
17851
|
if (valA > valB)
|
|
17832
17852
|
return 1;
|
|
17833
17853
|
return -1;
|
|
@@ -17912,7 +17932,7 @@ const WorkloadImageColumnRenderer = (i18n2) => {
|
|
|
17912
17932
|
}
|
|
17913
17933
|
};
|
|
17914
17934
|
};
|
|
17915
|
-
const
|
|
17935
|
+
const RestartsColumnRenderer = (i18n2) => {
|
|
17916
17936
|
const dataIndex = ["restarts"];
|
|
17917
17937
|
return {
|
|
17918
17938
|
key: "restarts",
|
|
@@ -17920,7 +17940,14 @@ const WorkloadRestartsColumnRenderer = (i18n2) => {
|
|
|
17920
17940
|
width: 120,
|
|
17921
17941
|
dataIndex,
|
|
17922
17942
|
align: "right",
|
|
17923
|
-
|
|
17943
|
+
sortable: true,
|
|
17944
|
+
sorter: CommonSorter(dataIndex),
|
|
17945
|
+
title: i18n2.t("dovetail.restarts"),
|
|
17946
|
+
render: (value2) => {
|
|
17947
|
+
return /* @__PURE__ */ common.jsxRuntimeExports.jsx(ValueDisplay, {
|
|
17948
|
+
value: value2
|
|
17949
|
+
});
|
|
17950
|
+
}
|
|
17924
17951
|
};
|
|
17925
17952
|
};
|
|
17926
17953
|
const ReplicasColumnRenderer = (i18n2) => {
|
|
@@ -17984,7 +18011,7 @@ const NodeNameColumnRenderer = (i18n2, options) => {
|
|
|
17984
18011
|
sorter: CommonSorter(dataIndex),
|
|
17985
18012
|
render: (v) => {
|
|
17986
18013
|
return /* @__PURE__ */ common.jsxRuntimeExports.jsx(ResourceLink, {
|
|
17987
|
-
|
|
18014
|
+
resourceName: "nodes",
|
|
17988
18015
|
name: v,
|
|
17989
18016
|
namespace: ""
|
|
17990
18017
|
});
|
|
@@ -17992,19 +18019,6 @@ const NodeNameColumnRenderer = (i18n2, options) => {
|
|
|
17992
18019
|
...options
|
|
17993
18020
|
};
|
|
17994
18021
|
};
|
|
17995
|
-
const RestartCountColumnRenderer = (i18n2) => {
|
|
17996
|
-
const dataIndex = ["restartCount"];
|
|
17997
|
-
return {
|
|
17998
|
-
key: "restartCount",
|
|
17999
|
-
display: true,
|
|
18000
|
-
dataIndex,
|
|
18001
|
-
title: i18n2.t("dovetail.restarts"),
|
|
18002
|
-
sortable: true,
|
|
18003
|
-
width: 120,
|
|
18004
|
-
align: "right",
|
|
18005
|
-
sorter: CommonSorter(dataIndex)
|
|
18006
|
-
};
|
|
18007
|
-
};
|
|
18008
18022
|
const CompletionsCountColumnRenderer = (i18n2) => {
|
|
18009
18023
|
const dataIndex = ["succeeded"];
|
|
18010
18024
|
return {
|
|
@@ -18374,7 +18388,7 @@ const PVRefColumnRenderer = (i18n2) => {
|
|
|
18374
18388
|
sortable: true,
|
|
18375
18389
|
render(value2) {
|
|
18376
18390
|
return /* @__PURE__ */ common.jsxRuntimeExports.jsx(ResourceLink, {
|
|
18377
|
-
|
|
18391
|
+
resourceName: "persistentvolumes",
|
|
18378
18392
|
namespace: "",
|
|
18379
18393
|
name: value2
|
|
18380
18394
|
});
|
|
@@ -18391,7 +18405,7 @@ const PVStorageClassColumnRenderer = (i18n2) => {
|
|
|
18391
18405
|
sortable: true,
|
|
18392
18406
|
render(value2) {
|
|
18393
18407
|
return /* @__PURE__ */ common.jsxRuntimeExports.jsx(ResourceLink, {
|
|
18394
|
-
|
|
18408
|
+
resourceName: "storageclasses",
|
|
18395
18409
|
namespace: "",
|
|
18396
18410
|
name: value2
|
|
18397
18411
|
});
|
|
@@ -18424,7 +18438,7 @@ const PVCRefColumnRenderer = (i18n2) => {
|
|
|
18424
18438
|
sortable: true,
|
|
18425
18439
|
render(value2, pv2) {
|
|
18426
18440
|
return /* @__PURE__ */ common.jsxRuntimeExports.jsx(ResourceLink, {
|
|
18427
|
-
|
|
18441
|
+
resourceName: "persistentvolumeclaims",
|
|
18428
18442
|
namespace: pv2.pvcNamespace || "default",
|
|
18429
18443
|
name: value2,
|
|
18430
18444
|
uid: pv2.pvcUid
|
|
@@ -18921,7 +18935,7 @@ exports.ResourceTable = ResourceTable;
|
|
|
18921
18935
|
exports.ResourceTableField = ResourceTableField;
|
|
18922
18936
|
exports.ResourceTableGroup = ResourceTableGroup;
|
|
18923
18937
|
exports.ResourceUsageBar = ResourceUsageBar;
|
|
18924
|
-
exports.
|
|
18938
|
+
exports.RestartsColumnRenderer = RestartsColumnRenderer;
|
|
18925
18939
|
exports.SCAllowExpandColumnRenderer = SCAllowExpandColumnRenderer;
|
|
18926
18940
|
exports.SCReclaimPolicyColumnRenderer = SCReclaimPolicyColumnRenderer;
|
|
18927
18941
|
exports.SCReclaimPolicyField = SCReclaimPolicyField;
|
|
@@ -18981,7 +18995,6 @@ exports.WorkloadModel = WorkloadModel;
|
|
|
18981
18995
|
exports.WorkloadPodsTable = WorkloadPodsTable;
|
|
18982
18996
|
exports.WorkloadReplicas = WorkloadReplicas;
|
|
18983
18997
|
exports.WorkloadReplicasForm = WorkloadReplicasForm;
|
|
18984
|
-
exports.WorkloadRestartsColumnRenderer = WorkloadRestartsColumnRenderer;
|
|
18985
18998
|
exports.YamlEditorComponent = YamlEditorComponent;
|
|
18986
18999
|
exports.YamlEditorStyle = YamlEditorStyle;
|
|
18987
19000
|
exports.YamlForm = YamlForm;
|
|
@@ -18991,6 +19004,7 @@ exports.dovetailRefineI18n = dovetailRefineI18n;
|
|
|
18991
19004
|
exports.generateSchemaTypeValue = generateSchemaTypeValue;
|
|
18992
19005
|
exports.generateValueFromSchema = generateValueFromSchema;
|
|
18993
19006
|
exports.getApiVersion = getApiVersion;
|
|
19007
|
+
exports.getResourceNameByKind = getResourceNameByKind;
|
|
18994
19008
|
exports.index = index;
|
|
18995
19009
|
exports.matchSelector = matchSelector;
|
|
18996
19010
|
exports.modelPlugin = modelPlugin;
|
|
@@ -11,7 +11,7 @@ export declare class PodModel extends WorkloadBaseModel {
|
|
|
11
11
|
status?: RequiredPod['status'];
|
|
12
12
|
constructor(_rawYaml: RequiredPod, _globalStore: GlobalStore);
|
|
13
13
|
get imageNames(): string[];
|
|
14
|
-
get
|
|
14
|
+
get restarts(): number;
|
|
15
15
|
get readyDisplay(): string;
|
|
16
16
|
get readyContainerCount(): number | undefined;
|
|
17
17
|
get containerCount(): number;
|
|
@@ -12,6 +12,7 @@ export declare class WorkloadModel extends WorkloadBaseModel {
|
|
|
12
12
|
private getRestarts;
|
|
13
13
|
get replicas(): number | undefined;
|
|
14
14
|
get readyReplicas(): number | undefined;
|
|
15
|
+
get appKey(): string;
|
|
15
16
|
redeploy(): WorkloadTypes;
|
|
16
17
|
scale(value: number): WorkloadTypes;
|
|
17
18
|
}
|
package/dist/refine.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const refine = require("./index-
|
|
3
|
+
const refine = require("./index-7c78ef6f.cjs");
|
|
4
4
|
require("./common-1eb43414.cjs");
|
|
5
5
|
require("@cloudtower/eagle");
|
|
6
6
|
require("@refinedev/core");
|
|
@@ -186,7 +186,7 @@ exports.ResourceTable = refine.ResourceTable;
|
|
|
186
186
|
exports.ResourceTableField = refine.ResourceTableField;
|
|
187
187
|
exports.ResourceTableGroup = refine.ResourceTableGroup;
|
|
188
188
|
exports.ResourceUsageBar = refine.ResourceUsageBar;
|
|
189
|
-
exports.
|
|
189
|
+
exports.RestartsColumnRenderer = refine.RestartsColumnRenderer;
|
|
190
190
|
exports.SCAllowExpandColumnRenderer = refine.SCAllowExpandColumnRenderer;
|
|
191
191
|
exports.SCReclaimPolicyColumnRenderer = refine.SCReclaimPolicyColumnRenderer;
|
|
192
192
|
exports.SCReclaimPolicyField = refine.SCReclaimPolicyField;
|
|
@@ -246,7 +246,6 @@ exports.WorkloadModel = refine.WorkloadModel;
|
|
|
246
246
|
exports.WorkloadPodsTable = refine.WorkloadPodsTable;
|
|
247
247
|
exports.WorkloadReplicas = refine.WorkloadReplicas;
|
|
248
248
|
exports.WorkloadReplicasForm = refine.WorkloadReplicasForm;
|
|
249
|
-
exports.WorkloadRestartsColumnRenderer = refine.WorkloadRestartsColumnRenderer;
|
|
250
249
|
exports.YamlEditorComponent = refine.YamlEditorComponent;
|
|
251
250
|
exports.YamlForm = refine.YamlForm;
|
|
252
251
|
exports.addDefaultRenderToColumns = refine.addDefaultRenderToColumns;
|
|
@@ -255,6 +254,7 @@ exports.dovetailRefineI18n = refine.dovetailRefineI18n;
|
|
|
255
254
|
exports.generateSchemaTypeValue = refine.generateSchemaTypeValue;
|
|
256
255
|
exports.generateValueFromSchema = refine.generateValueFromSchema;
|
|
257
256
|
exports.getApiVersion = refine.getApiVersion;
|
|
257
|
+
exports.getResourceNameByKind = refine.getResourceNameByKind;
|
|
258
258
|
exports.matchSelector = refine.matchSelector;
|
|
259
259
|
exports.modelPlugin = refine.modelPlugin;
|
|
260
260
|
exports.namespaceRules = refine.namespaceRules;
|