@dovetail-v2/refine 0.3.13-alpha.1 → 0.3.14-alpha.2
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/components/ShowContent/tabs.d.ts +7 -0
- package/dist/hooks/useDeleteModal/useDeleteManyModal.d.ts +2 -2
- package/dist/models/controller-revison-model.d.ts +10 -0
- package/dist/models/daemonset-model.d.ts +3 -0
- package/dist/models/deployment-model.d.ts +2 -3
- package/dist/models/index.d.ts +2 -0
- package/dist/models/ingress-class-model.d.ts +12 -0
- package/dist/models/pod-model.d.ts +2 -1
- package/dist/models/statefulset-model.d.ts +3 -0
- package/dist/refine.cjs +228 -149
- package/dist/refine.js +229 -150
- package/dist/style.css +65 -11
- package/package.json +5 -5
package/dist/refine.cjs
CHANGED
|
@@ -9624,9 +9624,9 @@ class PodModel extends WorkloadBaseModel {
|
|
|
9624
9624
|
}
|
|
9625
9625
|
};
|
|
9626
9626
|
}
|
|
9627
|
-
getBelongToDeployment(deployments) {
|
|
9627
|
+
getBelongToDeployment(deployments, replicaSets) {
|
|
9628
9628
|
return deployments.find((deployment) => {
|
|
9629
|
-
return deployment.replicaSets.find((replicaSet) => {
|
|
9629
|
+
return deployment.getReplicaSets(replicaSets).find((replicaSet) => {
|
|
9630
9630
|
return replicaSet.pods.find((pod2) => pod2.metadata.uid === this.metadata.uid);
|
|
9631
9631
|
});
|
|
9632
9632
|
});
|
|
@@ -9812,26 +9812,19 @@ class EventModel extends ResourceModel {
|
|
|
9812
9812
|
class DeploymentModel extends WorkloadModel {
|
|
9813
9813
|
constructor(_rawYaml, _globalStore) {
|
|
9814
9814
|
super(_rawYaml, _globalStore);
|
|
9815
|
-
__publicField(this, "replicaSets", []);
|
|
9816
9815
|
this._rawYaml = _rawYaml;
|
|
9817
9816
|
}
|
|
9818
9817
|
async init() {
|
|
9819
9818
|
await super.init();
|
|
9820
|
-
await this.getReplicaSets();
|
|
9821
9819
|
}
|
|
9822
|
-
|
|
9823
|
-
|
|
9824
|
-
resourceBasePath: "/apis/apps/v1",
|
|
9825
|
-
kind: "ReplicaSet"
|
|
9826
|
-
});
|
|
9827
|
-
const myReplicaSets = replicaSets.items.filter((rs) => {
|
|
9820
|
+
getReplicaSets(replicaSets) {
|
|
9821
|
+
return replicaSets.filter((rs) => {
|
|
9828
9822
|
var _a, _b, _c;
|
|
9829
9823
|
const ownerRef = (_b = (_a = rs.metadata) == null ? void 0 : _a.ownerReferences) == null ? void 0 : _b.find(
|
|
9830
9824
|
(ref) => ref.kind === "Deployment" && ref.apiVersion === "apps/v1" && ref.name === this.name && ref.uid === this.metadata.uid
|
|
9831
9825
|
);
|
|
9832
9826
|
return !!ownerRef && ((_c = rs.metadata) == null ? void 0 : _c.namespace) === this.metadata.namespace;
|
|
9833
9827
|
});
|
|
9834
|
-
this.replicaSets = myReplicaSets;
|
|
9835
9828
|
}
|
|
9836
9829
|
get stateDisplay() {
|
|
9837
9830
|
var _a, _b, _c;
|
|
@@ -9846,8 +9839,9 @@ class DeploymentModel extends WorkloadModel {
|
|
|
9846
9839
|
var _a, _b;
|
|
9847
9840
|
return (_b = (_a = this.metadata) == null ? void 0 : _a.annotations) == null ? void 0 : _b["deployment.kubernetes.io/revision"];
|
|
9848
9841
|
}
|
|
9849
|
-
|
|
9850
|
-
|
|
9842
|
+
getCurrentReplicaSet(replicaSets) {
|
|
9843
|
+
const myReplicaSets = this.getReplicaSets(replicaSets);
|
|
9844
|
+
return myReplicaSets.find((rs) => rs.revision === this.revision);
|
|
9851
9845
|
}
|
|
9852
9846
|
}
|
|
9853
9847
|
class DaemonSetModel extends WorkloadModel {
|
|
@@ -9855,6 +9849,22 @@ class DaemonSetModel extends WorkloadModel {
|
|
|
9855
9849
|
super(_rawYaml, _globalStore);
|
|
9856
9850
|
this._rawYaml = _rawYaml;
|
|
9857
9851
|
}
|
|
9852
|
+
getControllerRevisions(controllerVisions) {
|
|
9853
|
+
return controllerVisions.filter(
|
|
9854
|
+
(controllerRevision) => {
|
|
9855
|
+
var _a, _b;
|
|
9856
|
+
return (_b = (_a = controllerRevision.metadata) == null ? void 0 : _a.ownerReferences) == null ? void 0 : _b.some(
|
|
9857
|
+
(ownerReference) => ownerReference.kind === "DaemonSet" && ownerReference.uid === this.metadata.uid
|
|
9858
|
+
);
|
|
9859
|
+
}
|
|
9860
|
+
);
|
|
9861
|
+
}
|
|
9862
|
+
getRevision(controllerVisions) {
|
|
9863
|
+
const myControllerVisions = this.getControllerRevisions(controllerVisions);
|
|
9864
|
+
return myControllerVisions.reduce((result, controllerRevision) => {
|
|
9865
|
+
return Math.max(result, Number(controllerRevision.revision || 0));
|
|
9866
|
+
}, 0);
|
|
9867
|
+
}
|
|
9858
9868
|
get stateDisplay() {
|
|
9859
9869
|
var _a, _b;
|
|
9860
9870
|
if (((_a = this.status) == null ? void 0 : _a.desiredNumberScheduled) !== ((_b = this.status) == null ? void 0 : _b.numberReady)) {
|
|
@@ -9874,6 +9884,22 @@ class StatefulSetModel extends WorkloadModel {
|
|
|
9874
9884
|
super(_rawYaml, _globalStore);
|
|
9875
9885
|
this._rawYaml = _rawYaml;
|
|
9876
9886
|
}
|
|
9887
|
+
getControllerRevisions(controllerVisions) {
|
|
9888
|
+
return controllerVisions.filter(
|
|
9889
|
+
(controllerRevision) => {
|
|
9890
|
+
var _a, _b;
|
|
9891
|
+
return (_b = (_a = controllerRevision.metadata) == null ? void 0 : _a.ownerReferences) == null ? void 0 : _b.some(
|
|
9892
|
+
(ownerReference) => ownerReference.kind === "DaemonSet" && ownerReference.uid === this.metadata.uid
|
|
9893
|
+
);
|
|
9894
|
+
}
|
|
9895
|
+
);
|
|
9896
|
+
}
|
|
9897
|
+
getRevision(controllerVisions) {
|
|
9898
|
+
const myControllerVisions = this.getControllerRevisions(controllerVisions);
|
|
9899
|
+
return myControllerVisions.reduce((result, controllerRevision) => {
|
|
9900
|
+
return Math.max(result, Number(controllerRevision.revision || 0));
|
|
9901
|
+
}, 0);
|
|
9902
|
+
}
|
|
9877
9903
|
get stateDisplay() {
|
|
9878
9904
|
var _a, _b, _c;
|
|
9879
9905
|
if (((_a = this.spec) == null ? void 0 : _a.replicas) === 0) {
|
|
@@ -10076,6 +10102,29 @@ class PersistentVolumeClaimModel extends ResourceModel {
|
|
|
10076
10102
|
return lodashEs.set(yaml2, "spec.resources.requests.storage", `${distributeStorage}Gi`);
|
|
10077
10103
|
}
|
|
10078
10104
|
}
|
|
10105
|
+
class ControllerRevisionModel extends ResourceModel {
|
|
10106
|
+
constructor(_rawYaml, _globalStore) {
|
|
10107
|
+
super(_rawYaml, _globalStore);
|
|
10108
|
+
this._rawYaml = _rawYaml;
|
|
10109
|
+
}
|
|
10110
|
+
get revision() {
|
|
10111
|
+
return this._rawYaml.revision;
|
|
10112
|
+
}
|
|
10113
|
+
}
|
|
10114
|
+
class IngressClassModel extends ResourceModel {
|
|
10115
|
+
constructor(_rawYaml, _globalStore) {
|
|
10116
|
+
super(_rawYaml, _globalStore);
|
|
10117
|
+
this._rawYaml = _rawYaml;
|
|
10118
|
+
}
|
|
10119
|
+
get isDefault() {
|
|
10120
|
+
var _a, _b;
|
|
10121
|
+
return ((_b = (_a = this._rawYaml.metadata) == null ? void 0 : _a.annotations) == null ? void 0 : _b["ingressclass.kubernetes.io/is-default-class"]) === "true";
|
|
10122
|
+
}
|
|
10123
|
+
get controller() {
|
|
10124
|
+
var _a;
|
|
10125
|
+
return (_a = this.spec) == null ? void 0 : _a.controller;
|
|
10126
|
+
}
|
|
10127
|
+
}
|
|
10079
10128
|
const index_1r58r8x = "";
|
|
10080
10129
|
const ServiceInClusterAccessComponent = ({
|
|
10081
10130
|
service
|
|
@@ -10970,7 +11019,7 @@ const DeleteManyButton = (props) => {
|
|
|
10970
11019
|
}, [setVisible]);
|
|
10971
11020
|
return /* @__PURE__ */ common.jsxRuntimeExports.jsxs(common.jsxRuntimeExports.Fragment, { children: [
|
|
10972
11021
|
/* @__PURE__ */ common.jsxRuntimeExports.jsx(eagle.Button, { type: "primary", danger: true, onClick, children: t2("dovetail.delete") }),
|
|
10973
|
-
visible ? /* @__PURE__ */ common.jsxRuntimeExports.jsx(eagle.
|
|
11022
|
+
visible ? /* @__PURE__ */ common.jsxRuntimeExports.jsx(eagle.LegacyModal, { ...modalProps }) : null
|
|
10974
11023
|
] });
|
|
10975
11024
|
};
|
|
10976
11025
|
const index_1iwpuwe = "";
|
|
@@ -13019,6 +13068,36 @@ const LabelsAndAnnotationsShow = ({
|
|
|
13019
13068
|
})]
|
|
13020
13069
|
});
|
|
13021
13070
|
};
|
|
13071
|
+
const NetworkPolicyRulesViewer_r6jity = "";
|
|
13072
|
+
const MonacoYamlEditor$3 = React.lazy(() => Promise.resolve().then(() => MonacoYamlEditor$1));
|
|
13073
|
+
const EditorStyle$1 = "e1cjl2b8";
|
|
13074
|
+
const NetworkPolicyRulesViewer = ({
|
|
13075
|
+
ingressOrEgress,
|
|
13076
|
+
kind
|
|
13077
|
+
}) => {
|
|
13078
|
+
const {
|
|
13079
|
+
t: t2
|
|
13080
|
+
} = common.useTranslation();
|
|
13081
|
+
if (!ingressOrEgress) {
|
|
13082
|
+
return /* @__PURE__ */ common.jsxRuntimeExports.jsx(WidgetErrorContent, {
|
|
13083
|
+
errorText: t2("dovetail.no_resource", {
|
|
13084
|
+
kind: kind || t2("dovetail.rule")
|
|
13085
|
+
}),
|
|
13086
|
+
type: ErrorContentType.List
|
|
13087
|
+
});
|
|
13088
|
+
}
|
|
13089
|
+
return /* @__PURE__ */ common.jsxRuntimeExports.jsx(React.Suspense, {
|
|
13090
|
+
fallback: /* @__PURE__ */ common.jsxRuntimeExports.jsx(eagle.Loading, {}),
|
|
13091
|
+
children: /* @__PURE__ */ common.jsxRuntimeExports.jsx(MonacoYamlEditor$3, {
|
|
13092
|
+
schemas: [],
|
|
13093
|
+
defaultValue: yaml$2.dump(ingressOrEgress),
|
|
13094
|
+
height: "100%",
|
|
13095
|
+
className: EditorStyle$1,
|
|
13096
|
+
readOnly: true,
|
|
13097
|
+
isScrollOnFocus: true
|
|
13098
|
+
})
|
|
13099
|
+
});
|
|
13100
|
+
};
|
|
13022
13101
|
const baseNoReset = "";
|
|
13023
13102
|
const index_14irc29 = "";
|
|
13024
13103
|
const WrapperStyle$3 = "wve7dfm";
|
|
@@ -13214,6 +13293,7 @@ const PodLog = ({
|
|
|
13214
13293
|
})]
|
|
13215
13294
|
});
|
|
13216
13295
|
};
|
|
13296
|
+
const tabs_1q5et9v = "";
|
|
13217
13297
|
const EventsTab = ({
|
|
13218
13298
|
i18n: i18n2,
|
|
13219
13299
|
size
|
|
@@ -13221,15 +13301,13 @@ const EventsTab = ({
|
|
|
13221
13301
|
title: i18n2.t("dovetail.event"),
|
|
13222
13302
|
key: "events",
|
|
13223
13303
|
background: "white",
|
|
13224
|
-
groups: [
|
|
13225
|
-
{
|
|
13226
|
-
|
|
13227
|
-
|
|
13228
|
-
|
|
13229
|
-
|
|
13230
|
-
|
|
13231
|
-
}
|
|
13232
|
-
]
|
|
13304
|
+
groups: [{
|
|
13305
|
+
areas: [{
|
|
13306
|
+
fields: [EventsTableTabField({
|
|
13307
|
+
size
|
|
13308
|
+
})]
|
|
13309
|
+
}]
|
|
13310
|
+
}]
|
|
13233
13311
|
});
|
|
13234
13312
|
const ConditionsTab = ({
|
|
13235
13313
|
i18n: i18n2,
|
|
@@ -13238,32 +13316,25 @@ const ConditionsTab = ({
|
|
|
13238
13316
|
title: i18n2.t("dovetail.condition"),
|
|
13239
13317
|
key: "conditions",
|
|
13240
13318
|
background: "white",
|
|
13241
|
-
groups: [
|
|
13242
|
-
{
|
|
13243
|
-
|
|
13244
|
-
|
|
13245
|
-
|
|
13246
|
-
|
|
13247
|
-
|
|
13248
|
-
|
|
13249
|
-
|
|
13250
|
-
|
|
13251
|
-
|
|
13252
|
-
|
|
13253
|
-
|
|
13254
|
-
|
|
13255
|
-
|
|
13256
|
-
},
|
|
13257
|
-
children: /* @__PURE__ */ common.jsxRuntimeExports.jsx(ConditionsTable, { conditions: value2 })
|
|
13258
|
-
}
|
|
13259
|
-
);
|
|
13260
|
-
}
|
|
13261
|
-
}
|
|
13262
|
-
]
|
|
13319
|
+
groups: [{
|
|
13320
|
+
areas: [{
|
|
13321
|
+
fields: [{
|
|
13322
|
+
key: "Conditions",
|
|
13323
|
+
path: ["status", "conditions"],
|
|
13324
|
+
renderContent: (value2) => {
|
|
13325
|
+
return /* @__PURE__ */ common.jsxRuntimeExports.jsx("div", {
|
|
13326
|
+
style: {
|
|
13327
|
+
padding: size === "small" ? "0 12px" : "0 24px",
|
|
13328
|
+
height: "100%"
|
|
13329
|
+
},
|
|
13330
|
+
children: /* @__PURE__ */ common.jsxRuntimeExports.jsx(ConditionsTable, {
|
|
13331
|
+
conditions: value2
|
|
13332
|
+
})
|
|
13333
|
+
});
|
|
13263
13334
|
}
|
|
13264
|
-
]
|
|
13265
|
-
}
|
|
13266
|
-
]
|
|
13335
|
+
}]
|
|
13336
|
+
}]
|
|
13337
|
+
}]
|
|
13267
13338
|
});
|
|
13268
13339
|
const LabelAnnotationsTab = ({
|
|
13269
13340
|
i18n: i18n2,
|
|
@@ -13272,53 +13343,41 @@ const LabelAnnotationsTab = ({
|
|
|
13272
13343
|
title: i18n2.t("dovetail.label_annotations"),
|
|
13273
13344
|
key: "label-annotations",
|
|
13274
13345
|
background: "white",
|
|
13275
|
-
groups: [
|
|
13276
|
-
{
|
|
13277
|
-
|
|
13278
|
-
|
|
13279
|
-
|
|
13280
|
-
|
|
13281
|
-
|
|
13282
|
-
|
|
13283
|
-
|
|
13284
|
-
|
|
13285
|
-
|
|
13286
|
-
|
|
13287
|
-
{
|
|
13288
|
-
labels: (_a = record.metadata) == null ? void 0 : _a.labels,
|
|
13289
|
-
annotations: (_b = record.metadata) == null ? void 0 : _b.annotations,
|
|
13290
|
-
size
|
|
13291
|
-
}
|
|
13292
|
-
);
|
|
13293
|
-
}
|
|
13294
|
-
}
|
|
13295
|
-
]
|
|
13346
|
+
groups: [{
|
|
13347
|
+
areas: [{
|
|
13348
|
+
fields: [{
|
|
13349
|
+
key: "label-annotations",
|
|
13350
|
+
path: [],
|
|
13351
|
+
renderContent: (_, record) => {
|
|
13352
|
+
var _a, _b;
|
|
13353
|
+
return /* @__PURE__ */ common.jsxRuntimeExports.jsx(LabelsAndAnnotationsShow, {
|
|
13354
|
+
labels: (_a = record.metadata) == null ? void 0 : _a.labels,
|
|
13355
|
+
annotations: (_b = record.metadata) == null ? void 0 : _b.annotations,
|
|
13356
|
+
size
|
|
13357
|
+
});
|
|
13296
13358
|
}
|
|
13297
|
-
]
|
|
13298
|
-
}
|
|
13299
|
-
]
|
|
13359
|
+
}]
|
|
13360
|
+
}]
|
|
13361
|
+
}]
|
|
13300
13362
|
});
|
|
13301
13363
|
const PodLogTab = (i18n2, apiUrl) => ({
|
|
13302
13364
|
title: i18n2.t("dovetail.log"),
|
|
13303
13365
|
key: "pod-log",
|
|
13304
13366
|
background: "white",
|
|
13305
|
-
groups: [
|
|
13306
|
-
{
|
|
13307
|
-
|
|
13308
|
-
|
|
13309
|
-
|
|
13310
|
-
|
|
13311
|
-
|
|
13312
|
-
|
|
13313
|
-
|
|
13314
|
-
|
|
13315
|
-
}
|
|
13316
|
-
}
|
|
13317
|
-
]
|
|
13367
|
+
groups: [{
|
|
13368
|
+
areas: [{
|
|
13369
|
+
fields: [{
|
|
13370
|
+
key: "log",
|
|
13371
|
+
path: [],
|
|
13372
|
+
renderContent: (_, record) => {
|
|
13373
|
+
return /* @__PURE__ */ common.jsxRuntimeExports.jsx(PodLog, {
|
|
13374
|
+
pod: record,
|
|
13375
|
+
apiUrl
|
|
13376
|
+
});
|
|
13318
13377
|
}
|
|
13319
|
-
]
|
|
13320
|
-
}
|
|
13321
|
-
]
|
|
13378
|
+
}]
|
|
13379
|
+
}]
|
|
13380
|
+
}]
|
|
13322
13381
|
});
|
|
13323
13382
|
const PortsTab = ({
|
|
13324
13383
|
i18n: i18n2
|
|
@@ -13326,15 +13385,11 @@ const PortsTab = ({
|
|
|
13326
13385
|
title: i18n2.t("dovetail.port"),
|
|
13327
13386
|
key: "ports",
|
|
13328
13387
|
background: "white",
|
|
13329
|
-
groups: [
|
|
13330
|
-
{
|
|
13331
|
-
|
|
13332
|
-
|
|
13333
|
-
|
|
13334
|
-
}
|
|
13335
|
-
]
|
|
13336
|
-
}
|
|
13337
|
-
]
|
|
13388
|
+
groups: [{
|
|
13389
|
+
areas: [{
|
|
13390
|
+
fields: [PortsTableField()]
|
|
13391
|
+
}]
|
|
13392
|
+
}]
|
|
13338
13393
|
});
|
|
13339
13394
|
const IngressRulesTab = ({
|
|
13340
13395
|
i18n: i18n2
|
|
@@ -13342,11 +13397,11 @@ const IngressRulesTab = ({
|
|
|
13342
13397
|
title: i18n2.t("dovetail.rule"),
|
|
13343
13398
|
key: "ingress-rules",
|
|
13344
13399
|
background: "white",
|
|
13345
|
-
groups: [
|
|
13346
|
-
{
|
|
13347
|
-
|
|
13348
|
-
}
|
|
13349
|
-
]
|
|
13400
|
+
groups: [{
|
|
13401
|
+
areas: [{
|
|
13402
|
+
fields: [IngressRulesTableTabField()]
|
|
13403
|
+
}]
|
|
13404
|
+
}]
|
|
13350
13405
|
});
|
|
13351
13406
|
const DataTab = ({
|
|
13352
13407
|
i18n: i18n2
|
|
@@ -13354,11 +13409,11 @@ const DataTab = ({
|
|
|
13354
13409
|
title: i18n2.t("dovetail.data"),
|
|
13355
13410
|
key: "data",
|
|
13356
13411
|
background: "white",
|
|
13357
|
-
groups: [
|
|
13358
|
-
{
|
|
13359
|
-
|
|
13360
|
-
}
|
|
13361
|
-
]
|
|
13412
|
+
groups: [{
|
|
13413
|
+
areas: [{
|
|
13414
|
+
fields: [DataField(i18n2)]
|
|
13415
|
+
}]
|
|
13416
|
+
}]
|
|
13362
13417
|
});
|
|
13363
13418
|
const SecretDataTab = ({
|
|
13364
13419
|
i18n: i18n2
|
|
@@ -13366,42 +13421,59 @@ const SecretDataTab = ({
|
|
|
13366
13421
|
title: i18n2.t("dovetail.data"),
|
|
13367
13422
|
key: "secret-data",
|
|
13368
13423
|
background: "white",
|
|
13369
|
-
groups: [
|
|
13370
|
-
{
|
|
13371
|
-
|
|
13372
|
-
}
|
|
13373
|
-
]
|
|
13424
|
+
groups: [{
|
|
13425
|
+
areas: [{
|
|
13426
|
+
fields: [SecretDataField()]
|
|
13427
|
+
}]
|
|
13428
|
+
}]
|
|
13429
|
+
});
|
|
13430
|
+
const NetworkPolicyRulesViewerStyle = "nrkw30o";
|
|
13431
|
+
const NetworkPolicyIngressRulesTab = ({
|
|
13432
|
+
i18n: i18n2
|
|
13433
|
+
}) => ({
|
|
13434
|
+
title: i18n2.t("dovetail.ingress_rule"),
|
|
13435
|
+
key: "ingress-rules",
|
|
13436
|
+
background: "white",
|
|
13437
|
+
groups: [{
|
|
13438
|
+
areas: [{
|
|
13439
|
+
fields: [{
|
|
13440
|
+
key: "Ingress",
|
|
13441
|
+
path: ["spec", "ingress"],
|
|
13442
|
+
render: (ingress) => {
|
|
13443
|
+
return /* @__PURE__ */ common.jsxRuntimeExports.jsx("div", {
|
|
13444
|
+
className: NetworkPolicyRulesViewerStyle,
|
|
13445
|
+
children: /* @__PURE__ */ common.jsxRuntimeExports.jsx(NetworkPolicyRulesViewer, {
|
|
13446
|
+
ingressOrEgress: ingress
|
|
13447
|
+
})
|
|
13448
|
+
});
|
|
13449
|
+
}
|
|
13450
|
+
}]
|
|
13451
|
+
}]
|
|
13452
|
+
}]
|
|
13453
|
+
});
|
|
13454
|
+
const NetworkPolicyEgressRulesTab = ({
|
|
13455
|
+
i18n: i18n2
|
|
13456
|
+
}) => ({
|
|
13457
|
+
title: i18n2.t("dovetail.egress_rule"),
|
|
13458
|
+
key: "egress-rules",
|
|
13459
|
+
background: "white",
|
|
13460
|
+
groups: [{
|
|
13461
|
+
areas: [{
|
|
13462
|
+
fields: [{
|
|
13463
|
+
key: "Egress",
|
|
13464
|
+
path: ["spec", "egress"],
|
|
13465
|
+
render: (egress) => {
|
|
13466
|
+
return /* @__PURE__ */ common.jsxRuntimeExports.jsx("div", {
|
|
13467
|
+
className: NetworkPolicyRulesViewerStyle,
|
|
13468
|
+
children: /* @__PURE__ */ common.jsxRuntimeExports.jsx(NetworkPolicyRulesViewer, {
|
|
13469
|
+
ingressOrEgress: egress
|
|
13470
|
+
})
|
|
13471
|
+
});
|
|
13472
|
+
}
|
|
13473
|
+
}]
|
|
13474
|
+
}]
|
|
13475
|
+
}]
|
|
13374
13476
|
});
|
|
13375
|
-
const NetworkPolicyRulesViewer_r6jity = "";
|
|
13376
|
-
const MonacoYamlEditor$3 = React.lazy(() => Promise.resolve().then(() => MonacoYamlEditor$1));
|
|
13377
|
-
const EditorStyle$1 = "e1cjl2b8";
|
|
13378
|
-
const NetworkPolicyRulesViewer = ({
|
|
13379
|
-
ingressOrEgress,
|
|
13380
|
-
kind
|
|
13381
|
-
}) => {
|
|
13382
|
-
const {
|
|
13383
|
-
t: t2
|
|
13384
|
-
} = common.useTranslation();
|
|
13385
|
-
if (!ingressOrEgress) {
|
|
13386
|
-
return /* @__PURE__ */ common.jsxRuntimeExports.jsx(WidgetErrorContent, {
|
|
13387
|
-
errorText: t2("dovetail.no_resource", {
|
|
13388
|
-
kind: kind || t2("dovetail.rule")
|
|
13389
|
-
}),
|
|
13390
|
-
type: ErrorContentType.Card
|
|
13391
|
-
});
|
|
13392
|
-
}
|
|
13393
|
-
return /* @__PURE__ */ common.jsxRuntimeExports.jsx(React.Suspense, {
|
|
13394
|
-
fallback: /* @__PURE__ */ common.jsxRuntimeExports.jsx(eagle.Loading, {}),
|
|
13395
|
-
children: /* @__PURE__ */ common.jsxRuntimeExports.jsx(MonacoYamlEditor$3, {
|
|
13396
|
-
schemas: [],
|
|
13397
|
-
defaultValue: yaml$2.dump(ingressOrEgress),
|
|
13398
|
-
height: "300px",
|
|
13399
|
-
className: EditorStyle$1,
|
|
13400
|
-
readOnly: true,
|
|
13401
|
-
isScrollOnFocus: true
|
|
13402
|
-
})
|
|
13403
|
-
});
|
|
13404
|
-
};
|
|
13405
13477
|
const PodContainersTable = ({
|
|
13406
13478
|
containerStatuses,
|
|
13407
13479
|
initContainerStatuses
|
|
@@ -13692,7 +13764,7 @@ function Tabs(props) {
|
|
|
13692
13764
|
return /* @__PURE__ */ common.jsxRuntimeExports.jsx(eagle.TabsTabPane, { tab: tab.title, children: tab.children }, tab.title);
|
|
13693
13765
|
}) });
|
|
13694
13766
|
}
|
|
13695
|
-
const
|
|
13767
|
+
const ShowContentView_1gmp0tu = "";
|
|
13696
13768
|
const ShowContentWrapperStyle = "soapvs9";
|
|
13697
13769
|
const BackButton = "b13d603q";
|
|
13698
13770
|
const ToolBarWrapper = "tm8eaia";
|
|
@@ -13850,7 +13922,8 @@ const ShowContentView = (props) => {
|
|
|
13850
13922
|
if (shouldRenderRow) {
|
|
13851
13923
|
FieldContainer = eagle.Row;
|
|
13852
13924
|
fieldContainerProps = {
|
|
13853
|
-
gutter: [24, 8]
|
|
13925
|
+
gutter: [24, 8],
|
|
13926
|
+
className: "c1lh8loq"
|
|
13854
13927
|
};
|
|
13855
13928
|
}
|
|
13856
13929
|
return /* @__PURE__ */ common.jsxRuntimeExports.jsx(GroupContainer, {
|
|
@@ -16569,7 +16642,7 @@ function ConfirmModal({
|
|
|
16569
16642
|
t: t2
|
|
16570
16643
|
} = common.useTranslation();
|
|
16571
16644
|
const popModal = eagle.usePopModal();
|
|
16572
|
-
return /* @__PURE__ */ common.jsxRuntimeExports.jsx(eagle.
|
|
16645
|
+
return /* @__PURE__ */ common.jsxRuntimeExports.jsx(eagle.LegacyModal, {
|
|
16573
16646
|
className: SmallModalStyle,
|
|
16574
16647
|
width: "414px",
|
|
16575
16648
|
title: t2("dovetail.edit_form"),
|
|
@@ -18978,7 +19051,7 @@ const AgeColumnRenderer = (i18n2, config, {
|
|
|
18978
19051
|
dataIndex,
|
|
18979
19052
|
title: i18n2.t("dovetail.created_time"),
|
|
18980
19053
|
width: 120,
|
|
18981
|
-
sorter:
|
|
19054
|
+
sorter: CommonSorter(dataIndex),
|
|
18982
19055
|
render: (value2) => {
|
|
18983
19056
|
return isRelativeTime ? /* @__PURE__ */ common.jsxRuntimeExports.jsx(Time, {
|
|
18984
19057
|
date: new Date(value2)
|
|
@@ -19318,9 +19391,9 @@ const PortMappingColumnRenderer = (i18n2) => {
|
|
|
19318
19391
|
style: {
|
|
19319
19392
|
whiteSpace: "pre"
|
|
19320
19393
|
},
|
|
19321
|
-
children: [v.servicePort, "
|
|
19394
|
+
children: [v.servicePort, " → ", v.targetPort, "/", v.protocol]
|
|
19322
19395
|
}),
|
|
19323
|
-
tooltip: `${v.servicePort}
|
|
19396
|
+
tooltip: `${v.servicePort} → ${v.targetPort}/${v.protocol}`
|
|
19324
19397
|
}, v.servicePort));
|
|
19325
19398
|
return /* @__PURE__ */ common.jsxRuntimeExports.jsx(ValueDisplay, {
|
|
19326
19399
|
value: content
|
|
@@ -19711,7 +19784,9 @@ class ModelPlugin {
|
|
|
19711
19784
|
StorageClass: StorageClassModel,
|
|
19712
19785
|
PersistentVolume: PersistentVolumeModel,
|
|
19713
19786
|
PersistentVolumeClaim: PersistentVolumeClaimModel,
|
|
19714
|
-
ReplicaSet: ReplicaSetModel
|
|
19787
|
+
ReplicaSet: ReplicaSetModel,
|
|
19788
|
+
ControllerRevision: ControllerRevisionModel,
|
|
19789
|
+
IngressClass: IngressClassModel
|
|
19715
19790
|
})
|
|
19716
19791
|
));
|
|
19717
19792
|
}
|
|
@@ -19858,6 +19933,7 @@ exports.ConditionsGroup = ConditionsGroup;
|
|
|
19858
19933
|
exports.ConditionsTab = ConditionsTab;
|
|
19859
19934
|
exports.ConditionsTable = ConditionsTable;
|
|
19860
19935
|
exports.ConfigsContext = ConfigsContext;
|
|
19936
|
+
exports.ControllerRevisionModel = ControllerRevisionModel;
|
|
19861
19937
|
exports.CreateButton = CreateButton;
|
|
19862
19938
|
exports.CronJobDropdown = CronJobDropdown;
|
|
19863
19939
|
exports.CronJobModel = CronJobModel;
|
|
@@ -19901,6 +19977,7 @@ exports.INGRESS_INIT_VALUE = INGRESS_INIT_VALUE;
|
|
|
19901
19977
|
exports.ImageField = ImageField;
|
|
19902
19978
|
exports.ImageNames = ImageNames;
|
|
19903
19979
|
exports.IngressClassColumnRenderer = IngressClassColumnRenderer;
|
|
19980
|
+
exports.IngressClassModel = IngressClassModel;
|
|
19904
19981
|
exports.IngressDefaultBackendColumnRenderer = IngressDefaultBackendColumnRenderer;
|
|
19905
19982
|
exports.IngressModel = IngressModel;
|
|
19906
19983
|
exports.IngressRulesColumnRenderer = IngressRulesColumnRenderer;
|
|
@@ -19942,7 +20019,9 @@ exports.NamespaceField = NamespaceField;
|
|
|
19942
20019
|
exports.NamespaceSelectWidget = NamespaceSelectWidget;
|
|
19943
20020
|
exports.NamespacesFilter = NamespacesFilter;
|
|
19944
20021
|
exports.NetworkPolicyEgressRulesGroup = NetworkPolicyEgressRulesGroup;
|
|
20022
|
+
exports.NetworkPolicyEgressRulesTab = NetworkPolicyEgressRulesTab;
|
|
19945
20023
|
exports.NetworkPolicyIngressRulesGroup = NetworkPolicyIngressRulesGroup;
|
|
20024
|
+
exports.NetworkPolicyIngressRulesTab = NetworkPolicyIngressRulesTab;
|
|
19946
20025
|
exports.NetworkPolicyModel = NetworkPolicyModel;
|
|
19947
20026
|
exports.NetworkPolicyRulesViewer = NetworkPolicyRulesViewer;
|
|
19948
20027
|
exports.NodeModel = NodeModel;
|