@dao-style/biz 0.6.0 → 0.7.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/cjs/components/gpu/style/assign-gpu-devices-list.js +1 -0
- package/dist/cjs/components/gpu/style/gpu-form.js +1 -0
- package/dist/components/form-block/FormBlock.d.ts +27 -1
- package/dist/components/form-block/props.d.ts +4 -0
- package/dist/components/form-block/props.js +4 -0
- package/dist/components/form-block/props.mjs +4 -0
- package/dist/components/form-block/src/FormBlock.vue.d.ts +11 -0
- package/dist/components/form-block/src/FormBlock.vue.js +4 -4
- package/dist/components/form-block/src/FormBlock.vue.mjs +4 -4
- package/dist/components/form-block/src/FormBlock.vue2.js +12 -1
- package/dist/components/form-block/src/FormBlock.vue2.mjs +12 -1
- package/dist/components/gpu/props.d.ts +121 -3
- package/dist/components/gpu/props.js +82 -9
- package/dist/components/gpu/props.mjs +82 -9
- package/dist/components/gpu/src/GpuForm.vue.d.ts +283 -50
- package/dist/components/gpu/src/GpuForm.vue.js +25 -24
- package/dist/components/gpu/src/GpuForm.vue.mjs +26 -25
- package/dist/components/gpu/src/GpuForm.vue2.js +115 -218
- package/dist/components/gpu/src/GpuForm.vue2.mjs +116 -219
- package/dist/components/gpu/src/components/AssignGpuDevicesList.vue.d.ts +77 -0
- package/dist/components/gpu/src/components/AssignGpuDevicesList.vue.js +40 -0
- package/dist/components/gpu/src/components/AssignGpuDevicesList.vue.mjs +41 -0
- package/dist/components/gpu/src/components/AssignGpuDevicesList.vue2.js +191 -0
- package/dist/components/gpu/src/components/AssignGpuDevicesList.vue2.mjs +192 -0
- package/dist/components/gpu/src/components/GpuAdvancedForm.vue.d.ts +180 -0
- package/dist/components/gpu/src/{GpuAdvancedForm.vue.js → components/GpuAdvancedForm.vue.js} +92 -37
- package/dist/components/gpu/src/{GpuAdvancedForm.vue.mjs → components/GpuAdvancedForm.vue.mjs} +93 -38
- package/dist/components/gpu/src/components/GpuAdvancedForm.vue2.js +169 -0
- package/dist/components/gpu/src/components/GpuAdvancedForm.vue2.mjs +153 -0
- package/dist/components/gpu/src/{GpuFormDynamicItem.vue.d.ts → components/GpuFormDynamicItem.vue.d.ts} +4 -4
- package/dist/components/gpu/src/{GpuFormDynamicItem.vue.js → components/GpuFormDynamicItem.vue.js} +1 -1
- package/dist/components/gpu/src/{GpuFormDynamicItem.vue.mjs → components/GpuFormDynamicItem.vue.mjs} +1 -1
- package/dist/components/gpu/src/{GpuFormDynamicItem.vue2.js → components/GpuFormDynamicItem.vue2.js} +1 -1
- package/dist/components/gpu/src/{GpuFormDynamicItem.vue2.mjs → components/GpuFormDynamicItem.vue2.mjs} +1 -1
- package/dist/components/gpu/src/components/GpuFormItem.vue.d.ts +310 -0
- package/dist/components/gpu/src/{GpuFormItem.vue.js → components/GpuFormItem.vue.js} +22 -26
- package/dist/components/gpu/src/{GpuFormItem.vue.mjs → components/GpuFormItem.vue.mjs} +23 -27
- package/dist/components/gpu/src/components/GpuFormItem.vue2.js +61 -0
- package/dist/components/gpu/src/components/GpuFormItem.vue2.mjs +45 -0
- package/dist/components/gpu/src/{GpuResources.vue.d.ts → components/GpuResources.vue.d.ts} +38 -18
- package/dist/components/gpu/src/components/GpuResources.vue.js +153 -0
- package/dist/components/gpu/src/components/GpuResources.vue.mjs +154 -0
- package/dist/components/gpu/src/components/GpuResources.vue2.js +278 -0
- package/dist/components/gpu/src/components/GpuResources.vue2.mjs +262 -0
- package/dist/components/gpu/src/gpuForm.constants.d.ts +3 -0
- package/dist/components/gpu/src/gpuForm.constants.js +10 -0
- package/dist/components/gpu/src/gpuForm.constants.mjs +10 -0
- package/dist/components/gpu/src/gpuForm.internal-types.d.ts +49 -0
- package/dist/components/gpu/src/gpuForm.mapper.d.ts +16 -0
- package/dist/components/gpu/src/gpuForm.mapper.js +199 -0
- package/dist/components/gpu/src/gpuForm.mapper.mjs +199 -0
- package/dist/components/gpu/src/gpuFormItem.mapper.d.ts +38 -0
- package/dist/components/gpu/src/gpuFormItem.mapper.js +153 -0
- package/dist/components/gpu/src/gpuFormItem.mapper.mjs +153 -0
- package/dist/components/gpu/src/useGPUOptions.d.ts +2 -2
- package/dist/components/gpu/src/useGPUOptions.js +15 -20
- package/dist/components/gpu/src/useGPUOptions.mjs +16 -21
- package/dist/components/gpu/src/useGpuFormItemState.d.ts +42 -0
- package/dist/components/gpu/src/useGpuFormItemState.js +178 -0
- package/dist/components/gpu/src/useGpuFormItemState.mjs +178 -0
- package/dist/components/gpu/src/useGpuFormSideState.d.ts +52 -0
- package/dist/components/gpu/src/useGpuFormSideState.js +71 -0
- package/dist/components/gpu/src/useGpuFormSideState.mjs +71 -0
- package/dist/components/gpu/src/useGpuFormState.d.ts +560 -0
- package/dist/components/gpu/src/useGpuFormState.js +52 -0
- package/dist/components/gpu/src/useGpuFormState.mjs +52 -0
- package/dist/components/gpu/src/validations/nvidiaVgpuMemoryDecimal.d.ts +5 -1
- package/dist/components/gpu/style/assign-gpu-devices-list.d.ts +1 -0
- package/dist/components/gpu/style/assign-gpu-devices-list.scss.js +3 -0
- package/dist/components/gpu/style/assign-gpu-devices-list.scss.mjs +4 -0
- package/dist/components/gpu/style/gpu-form.d.ts +1 -0
- package/dist/components/gpu/types.d.ts +6 -0
- package/dist/components/gpu/types.js +2 -0
- package/dist/components/gpu/types.mjs +2 -0
- package/dist/components/gpu/utils.d.ts +4 -0
- package/dist/components/gpu/utils.js +14 -0
- package/dist/components/gpu/utils.mjs +14 -0
- package/dist/components/instance-cluster/src/InstanceCluster.vue.d.ts +1 -1
- package/dist/components/instance-namespace/src/InstanceNamespace.vue.d.ts +1 -1
- package/dist/components/instance-storage-class/src/InstanceStorageClass.vue.d.ts +1 -1
- package/dist/components/network-config/src/NetworkConfig.vue.d.ts +1 -1
- package/dist/components/network-config/src/NetworkConfig.vue.js +13 -6
- package/dist/components/network-config/src/NetworkConfig.vue.mjs +14 -7
- package/dist/dialogs/create-network-config-dialog/src/CreateNetworkConfigDialog.vue.d.ts +1 -1
- package/dist/es/components/gpu/style/assign-gpu-devices-list.mjs +1 -0
- package/dist/es/components/gpu/style/gpu-form.mjs +1 -0
- package/dist/forms/import-parameter-template/props.d.ts +8 -8
- package/dist/forms/import-parameter-template/src/ImportParameterTemplate.vue.d.ts +24 -24
- package/dist/group-mapping.json +1 -1
- package/dist/index.js +34 -23
- package/dist/index.mjs +15 -4
- package/dist/locales/en-US/components/Gpu.json.js +36 -9
- package/dist/locales/en-US/components/Gpu.json.mjs +37 -10
- package/dist/locales/en-US/index.js +2 -0
- package/dist/locales/en-US/index.mjs +2 -0
- package/dist/locales/en-US/uses/UseCancelFormDialog.json.js +11 -0
- package/dist/locales/en-US/uses/UseCancelFormDialog.json.mjs +11 -0
- package/dist/locales/ja/components/Gpu.json.js +36 -9
- package/dist/locales/ja/components/Gpu.json.mjs +37 -10
- package/dist/locales/ja/components/InstancePassword.json.js +1 -1
- package/dist/locales/ja/components/InstancePassword.json.mjs +1 -1
- package/dist/locales/ja/components/MatchExpressionsEditor.json.js +1 -1
- package/dist/locales/ja/components/MatchExpressionsEditor.json.mjs +1 -1
- package/dist/locales/ja/components/NetworkConfig.json.js +1 -1
- package/dist/locales/ja/components/NetworkConfig.json.mjs +1 -1
- package/dist/locales/ja/index.js +2 -0
- package/dist/locales/ja/index.mjs +2 -0
- package/dist/locales/ja/uses/UseCancelFormDialog.json.js +11 -0
- package/dist/locales/ja/uses/UseCancelFormDialog.json.mjs +11 -0
- package/dist/locales/ja/workloads/DnsConfig.json.js +1 -1
- package/dist/locales/ja/workloads/DnsConfig.json.mjs +1 -1
- package/dist/locales/ja/workloads/workload-advanced/NetworkConfig.json.js +1 -1
- package/dist/locales/ja/workloads/workload-advanced/NetworkConfig.json.mjs +1 -1
- package/dist/locales/zh-CN/components/Gpu.json.js +36 -9
- package/dist/locales/zh-CN/components/Gpu.json.mjs +37 -10
- package/dist/locales/zh-CN/index.js +2 -0
- package/dist/locales/zh-CN/index.mjs +2 -0
- package/dist/locales/zh-CN/uses/UseCancelFormDialog.json.js +11 -0
- package/dist/locales/zh-CN/uses/UseCancelFormDialog.json.mjs +11 -0
- package/dist/style.css +692 -664
- package/dist/styles/components/gpu/assign-gpu-devices-list.css +10 -0
- package/dist/styles/components/gpu/gpu-form-item.css +16 -0
- package/dist/styles/components/gpu/gpu-form.css +4 -0
- package/dist/styles/components/network-config/network-config.css +3 -0
- package/dist/styles/components/resource-config/resource-config.css +0 -8
- package/dist/styles/styles/common.css +4 -0
- package/dist/uses/index.d.ts +1 -0
- package/dist/uses/useCancelFormDialog/index.d.ts +11 -0
- package/dist/uses/useCancelFormDialog/index.js +40 -0
- package/dist/uses/useCancelFormDialog/index.mjs +40 -0
- package/dist/uses/useCancelFormDialog/src/CancelFormDialog.vue.d.ts +8 -0
- package/dist/uses/useCancelFormDialog/src/CancelFormDialog.vue.js +25 -0
- package/dist/uses/useCancelFormDialog/src/CancelFormDialog.vue.mjs +26 -0
- package/dist/uses/useCancelFormDialog/src/CancelFormDialog.vue2.js +3 -0
- package/dist/uses/useCancelFormDialog/src/CancelFormDialog.vue2.mjs +4 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/injectWithSelf.d.ts +6 -0
- package/dist/utils/injectWithSelf.js +8 -0
- package/dist/utils/injectWithSelf.mjs +8 -0
- package/dist/utils/multiRowEditorValidate.d.ts +5 -5
- package/dist/utils/useResetFieldValue.d.ts +13 -0
- package/dist/utils/useResetFieldValue.js +28 -0
- package/dist/utils/useResetFieldValue.mjs +28 -0
- package/dist/utils/useSetFieldValue.d.ts +6 -0
- package/dist/utils/useSetFieldValue.js +2 -5
- package/dist/utils/useSetFieldValue.mjs +2 -5
- package/dist/workloads/container-basic-info/props.d.ts +13 -0
- package/dist/workloads/container-basic-info/props.js +4 -0
- package/dist/workloads/container-basic-info/props.mjs +4 -0
- package/dist/workloads/container-basic-info/src/ContainerBasicInfo.vue.d.ts +10 -0
- package/dist/workloads/container-basic-info/src/ContainerBasicInfo.vue.js +54 -29
- package/dist/workloads/container-basic-info/src/ContainerBasicInfo.vue.mjs +54 -29
- package/dist/workloads/container-basic-info/src/ContainerBasicInfo.vue2.js +18 -8
- package/dist/workloads/container-basic-info/src/ContainerBasicInfo.vue2.mjs +19 -9
- package/dist/workloads/container-image/src/dialogs/SelectImageDialog.vue.d.ts +1 -1
- package/dist/workloads/containers/demo/data.d.ts +8 -1
- package/dist/workloads/containers/src/ContainerItem.vue.d.ts +23 -0
- package/dist/workloads/containers/src/Containers.vue.d.ts +4 -0
- package/dist/workloads/containers/src/Containers.vue2.js +18 -1
- package/dist/workloads/containers/src/Containers.vue2.mjs +19 -2
- package/dist/workloads/health-check/props.d.ts +4 -0
- package/dist/workloads/health-check/props.js +4 -0
- package/dist/workloads/health-check/props.mjs +4 -0
- package/dist/workloads/health-check/src/HealthCheck.vue.d.ts +9 -0
- package/dist/workloads/health-check/src/HealthCheck.vue.js +6 -6
- package/dist/workloads/health-check/src/HealthCheck.vue.mjs +6 -6
- package/dist/workloads/health-check/src/HealthCheckHandler.vue.js +3 -1
- package/dist/workloads/health-check/src/HealthCheckHandler.vue.mjs +3 -1
- package/dist/workloads/http-get-action/src/HttpGetAction.vue.js +1 -1
- package/dist/workloads/http-get-action/src/HttpGetAction.vue.mjs +1 -1
- package/dist/workloads/workload-annotations/props.d.ts +1 -0
- package/dist/workloads/workload-annotations/props.js +1 -0
- package/dist/workloads/workload-annotations/props.mjs +2 -1
- package/package.json +12 -13
- package/dist/components/gpu/src/GpuAdvancedForm.vue.d.ts +0 -131
- package/dist/components/gpu/src/GpuAdvancedForm.vue2.js +0 -92
- package/dist/components/gpu/src/GpuAdvancedForm.vue2.mjs +0 -76
- package/dist/components/gpu/src/GpuFormItem.vue.d.ts +0 -232
- package/dist/components/gpu/src/GpuFormItem.vue2.js +0 -235
- package/dist/components/gpu/src/GpuFormItem.vue2.mjs +0 -219
- package/dist/components/gpu/src/GpuResources.vue.js +0 -125
- package/dist/components/gpu/src/GpuResources.vue.mjs +0 -126
- package/dist/components/gpu/src/GpuResources.vue2.js +0 -197
- package/dist/components/gpu/src/GpuResources.vue2.mjs +0 -181
- package/dist/components/gpu/src/validations/nvidiaVgpuMemoryDecimal.js +0 -19
- package/dist/components/gpu/src/validations/nvidiaVgpuMemoryDecimal.mjs +0 -20
|
@@ -10,6 +10,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10
10
|
const _component_dao_message = resolveComponent("dao-message");
|
|
11
11
|
const _component_dao_text_button = resolveComponent("dao-text-button");
|
|
12
12
|
const _component_dao_helper_text = resolveComponent("dao-helper-text");
|
|
13
|
+
const _component_dao_history_link = resolveComponent("dao-history-link");
|
|
13
14
|
const _component_dao_gpu_form = resolveComponent("dao-gpu-form");
|
|
14
15
|
const _component_dao_container_network = resolveComponent("dao-container-network");
|
|
15
16
|
const _component_dao_container_custom_resource = resolveComponent("dao-container-custom-resource");
|
|
@@ -73,26 +74,31 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
73
74
|
label: _ctx.$t("biz.workloads.ContainerBasicInfo.gpuConfig"),
|
|
74
75
|
class: "container-basic-info--gpu-form-item",
|
|
75
76
|
"component-validate": "",
|
|
77
|
+
error: "",
|
|
76
78
|
"wrapper-type": "switch",
|
|
77
79
|
"padding-bottom": "0"
|
|
78
80
|
}, {
|
|
79
81
|
"control-content": withCtx(({ componentRef }) => {
|
|
80
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
82
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
|
|
81
83
|
return [
|
|
82
84
|
createVNode(_component_dao_gpu_form, mergeProps({ ref: componentRef }, _ctx.gpuProps, {
|
|
83
85
|
nvidiaVgpuPriority: _ctx.gpuPriority,
|
|
84
86
|
"onUpdate:nvidiaVgpuPriority": _cache[0] || (_cache[0] = ($event) => _ctx.gpuPriority = $event),
|
|
85
|
-
"
|
|
86
|
-
"nvidia-vgpu-
|
|
87
|
-
"nvidia-vgpu-
|
|
87
|
+
"assign-gpu-disabled": ((_a = _ctx.assignGpuConfig) == null ? void 0 : _a.disabled) ?? ((_b = _ctx.gpuProps) == null ? void 0 : _b.assignGpuDisabled),
|
|
88
|
+
"nvidia-vgpu-model": (_d = (_c = _ctx.extraBinding) == null ? void 0 : _c.nvidiaVgpuModel) == null ? void 0 : _d.value,
|
|
89
|
+
"nvidia-vgpu-devices": (_f = (_e = _ctx.extraBinding) == null ? void 0 : _e.nvidiaVgpuDevices) == null ? void 0 : _f.value,
|
|
90
|
+
"nvidia-vgpu-gpu-schedule": (_h = (_g = _ctx.extraBinding) == null ? void 0 : _g.nvidiaVgpuGpuSchedule) == null ? void 0 : _h.value,
|
|
91
|
+
"nvidia-vgpu-node-schedule": (_j = (_i = _ctx.extraBinding) == null ? void 0 : _i.nvidiaVgpuNodeSchedule) == null ? void 0 : _j.value,
|
|
92
|
+
"gpu-usage": "workload",
|
|
88
93
|
quota: _ctx.gpuQuotaItem,
|
|
89
94
|
limit: 1,
|
|
90
95
|
"dynamic-limit-one": "",
|
|
91
|
-
"enable-nvidia-vgpu-priority": "",
|
|
92
96
|
"enable-nvidia-vgpu-model": "",
|
|
93
97
|
"enable-nvidia-vgpu-schedule-policy": "",
|
|
94
98
|
"enable-range-validate": "",
|
|
99
|
+
"enable-nvidia-vgpu-priority": ((_k = _ctx.gpuProps) == null ? void 0 : _k.enableNvidiaVgpuPriority) ?? true,
|
|
95
100
|
"onUpdate:nvidiaVgpuModel": _ctx.handleNvidiaVgpuModelChange,
|
|
101
|
+
"onUpdate:nvidiaVgpuDevices": _ctx.handleNvidiaVgpuDevicesChange,
|
|
96
102
|
"onUpdate:nvidiaVgpuGpuSchedule": _ctx.handleNvidiaVgpuGpuScheduleChange,
|
|
97
103
|
"onUpdate:nvidiaVgpuNodeSchedule": _ctx.handleNvidiaVgpuNodeScheduleChange,
|
|
98
104
|
onChange: _ctx.handleGpuChange
|
|
@@ -108,44 +114,63 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
108
114
|
]),
|
|
109
115
|
_: 2
|
|
110
116
|
}, [
|
|
111
|
-
((
|
|
117
|
+
((_l = _ctx.gpuQuotaItem) == null ? void 0 : _l.types.includes(_ctx.nvidiaGpuKey)) ? {
|
|
112
118
|
name: "helper-gpu-type",
|
|
113
119
|
fn: withCtx(() => [
|
|
114
120
|
createVNode(_component_dao_helper_text, null, {
|
|
115
121
|
default: withCtx(() => [
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
122
|
+
createTextVNode(toDisplayString(_ctx.$t("biz.workloads.ContainerBasicInfo.nvidiaGpuHelper")) + " ", 1),
|
|
123
|
+
createVNode(_component_dao_text_button, {
|
|
124
|
+
prop: {
|
|
125
|
+
type: "link",
|
|
126
|
+
iconRight: "icon-new-tab"
|
|
127
|
+
},
|
|
128
|
+
target: "_blank",
|
|
129
|
+
tag: "a",
|
|
130
|
+
href: _ctx.$t("biz.common.docs", {
|
|
131
|
+
link: "/kpanda/user-guide/gpu/nvidia/mig/mig_usage/"
|
|
132
|
+
}),
|
|
133
|
+
class: "text-[12px]"
|
|
119
134
|
}, {
|
|
120
135
|
default: withCtx(() => [
|
|
121
|
-
createTextVNode(toDisplayString(_ctx.$t("biz.workloads.ContainerBasicInfo.
|
|
122
|
-
createVNode(_component_dao_text_button, {
|
|
123
|
-
prop: {
|
|
124
|
-
type: "link",
|
|
125
|
-
iconRight: "icon-new-tab"
|
|
126
|
-
},
|
|
127
|
-
target: "_blank",
|
|
128
|
-
tag: "a",
|
|
129
|
-
href: _ctx.$t("biz.common.docs", {
|
|
130
|
-
link: "/kpanda/user-guide/gpu/nvidia/mig/mig_usage/"
|
|
131
|
-
}),
|
|
132
|
-
class: "text-[12px]"
|
|
133
|
-
}, {
|
|
134
|
-
default: withCtx(() => [
|
|
135
|
-
createTextVNode(toDisplayString(_ctx.$t("biz.workloads.ContainerBasicInfo.nvidiaGpuMigSingleDoc")), 1)
|
|
136
|
-
]),
|
|
137
|
-
_: 1
|
|
138
|
-
}, 8, ["href"])
|
|
136
|
+
createTextVNode(toDisplayString(_ctx.$t("biz.workloads.ContainerBasicInfo.nvidiaGpuMigSingleDoc")), 1)
|
|
139
137
|
]),
|
|
140
138
|
_: 1
|
|
141
|
-
})
|
|
139
|
+
}, 8, ["href"])
|
|
142
140
|
]),
|
|
143
141
|
_: 1
|
|
144
142
|
})
|
|
145
143
|
]),
|
|
146
144
|
key: "0"
|
|
145
|
+
} : void 0,
|
|
146
|
+
((_m = _ctx.assignGpuConfig) == null ? void 0 : _m.disabled) && _ctx.assignGpuConfig.message ? {
|
|
147
|
+
name: "assign-gpu-disabled-message",
|
|
148
|
+
fn: withCtx(() => [
|
|
149
|
+
createVNode(_component_dao_message, {
|
|
150
|
+
type: "warning",
|
|
151
|
+
simple: ""
|
|
152
|
+
}, {
|
|
153
|
+
default: withCtx(() => [
|
|
154
|
+
createTextVNode(toDisplayString(_ctx.assignGpuConfig.message) + " ", 1),
|
|
155
|
+
_ctx.assignGpuConfig.action ? (openBlock(), createBlock(_component_dao_history_link, {
|
|
156
|
+
key: 0,
|
|
157
|
+
type: "link",
|
|
158
|
+
target: "_blank",
|
|
159
|
+
"icon-right": "icon-new-tab",
|
|
160
|
+
href: _ctx.assignGpuConfig.action.href
|
|
161
|
+
}, {
|
|
162
|
+
default: withCtx(() => [
|
|
163
|
+
createTextVNode(toDisplayString(_ctx.assignGpuConfig.action.label), 1)
|
|
164
|
+
]),
|
|
165
|
+
_: 1
|
|
166
|
+
}, 8, ["href"])) : createCommentVNode("", true)
|
|
167
|
+
]),
|
|
168
|
+
_: 1
|
|
169
|
+
})
|
|
170
|
+
]),
|
|
171
|
+
key: "1"
|
|
147
172
|
} : void 0
|
|
148
|
-
]), 1040, ["nvidiaVgpuPriority", "nvidia-vgpu-model", "nvidia-vgpu-gpu-schedule", "nvidia-vgpu-node-schedule", "quota", "onUpdate:nvidiaVgpuModel", "onUpdate:nvidiaVgpuGpuSchedule", "onUpdate:nvidiaVgpuNodeSchedule", "onChange"])
|
|
173
|
+
]), 1040, ["nvidiaVgpuPriority", "assign-gpu-disabled", "nvidia-vgpu-model", "nvidia-vgpu-devices", "nvidia-vgpu-gpu-schedule", "nvidia-vgpu-node-schedule", "quota", "enable-nvidia-vgpu-priority", "onUpdate:nvidiaVgpuModel", "onUpdate:nvidiaVgpuDevices", "onUpdate:nvidiaVgpuGpuSchedule", "onUpdate:nvidiaVgpuNodeSchedule", "onChange"])
|
|
149
174
|
];
|
|
150
175
|
}),
|
|
151
176
|
_: 1
|
|
@@ -11,6 +11,7 @@ require("../../container-image/style/select-image-dialog.scss.js");
|
|
|
11
11
|
require("../../container-network/style/guide-to-use-sr-iov.scss.js");
|
|
12
12
|
require("../../container-network/style/container-network.scss.js");
|
|
13
13
|
require("../../../components/resource-config/style/resource-config.scss.js");
|
|
14
|
+
require("../../../components/gpu/style/assign-gpu-devices-list.scss.js");
|
|
14
15
|
require("../../../components/gpu/style/gpu-form-item.scss.js");
|
|
15
16
|
require("../../../components/gpu/style/gpu-form.scss.js");
|
|
16
17
|
require("../style/container-basic-info.scss.js");
|
|
@@ -21,8 +22,8 @@ const ContainerCustomResource = require("../../container-custom-resource/src/Con
|
|
|
21
22
|
const GpuForm = require("../../../components/gpu/src/GpuForm.vue.js");
|
|
22
23
|
const useGPUOptions = require("../../../components/gpu/src/useGPUOptions.js");
|
|
23
24
|
const props$1 = require("../../../components/gpu/props.js");
|
|
25
|
+
const utils = require("../../../components/gpu/utils.js");
|
|
24
26
|
const randomStr = require("../../../utils/randomStr.js");
|
|
25
|
-
const formatNumUnit = require("../../../utils/formatNumUnit.js");
|
|
26
27
|
const _sfc_main = vue.defineComponent({
|
|
27
28
|
name: "DaoContainerBasicInfo",
|
|
28
29
|
components: {
|
|
@@ -31,7 +32,8 @@ const _sfc_main = vue.defineComponent({
|
|
|
31
32
|
DaoResourceConfig: ResourceConfig,
|
|
32
33
|
DaoContainerNetwork: ContainerNetwork,
|
|
33
34
|
DaoContainerCustomResource: ContainerCustomResource,
|
|
34
|
-
DaoGpuForm: GpuForm
|
|
35
|
+
DaoGpuForm: GpuForm,
|
|
36
|
+
DaoHistoryLink: extend.DaoHistoryLink
|
|
35
37
|
},
|
|
36
38
|
props: props.containerBasicInfoProps,
|
|
37
39
|
emits: Object.keys(props.ContainerBasicInfoEmits),
|
|
@@ -122,15 +124,15 @@ const _sfc_main = vue.defineComponent({
|
|
|
122
124
|
if (!gpuType) {
|
|
123
125
|
return acc;
|
|
124
126
|
}
|
|
127
|
+
const normalizedValue = utils.normalizeGPUResourceValue(value);
|
|
128
|
+
delete separateTempLimitValue.value[key];
|
|
129
|
+
if (normalizedValue === void 0) {
|
|
130
|
+
return acc;
|
|
131
|
+
}
|
|
125
132
|
if (!acc.types.includes(gpuType)) {
|
|
126
133
|
acc.types.push(gpuType);
|
|
127
134
|
}
|
|
128
|
-
|
|
129
|
-
acc.resources[key] = formatNumUnit.formatNumUnit(value);
|
|
130
|
-
} else {
|
|
131
|
-
acc.resources[key] = Number(value);
|
|
132
|
-
}
|
|
133
|
-
delete separateTempLimitValue.value[key];
|
|
135
|
+
acc.resources[key] = normalizedValue;
|
|
134
136
|
return acc;
|
|
135
137
|
}, {
|
|
136
138
|
types: [],
|
|
@@ -268,6 +270,13 @@ const _sfc_main = vue.defineComponent({
|
|
|
268
270
|
nvidiaVgpuModel.value = val;
|
|
269
271
|
}
|
|
270
272
|
};
|
|
273
|
+
const handleNvidiaVgpuDevicesChange = (val) => {
|
|
274
|
+
var _a2;
|
|
275
|
+
if ((_a2 = props$2.extraBinding) == null ? void 0 : _a2.nvidiaVgpuDevices) {
|
|
276
|
+
const { nvidiaVgpuDevices } = props$2.extraBinding;
|
|
277
|
+
nvidiaVgpuDevices.value = val;
|
|
278
|
+
}
|
|
279
|
+
};
|
|
271
280
|
const handleNvidiaVgpuGpuScheduleChange = (val) => {
|
|
272
281
|
var _a2;
|
|
273
282
|
if ((_a2 = props$2.extraBinding) == null ? void 0 : _a2.nvidiaVgpuGpuSchedule) {
|
|
@@ -307,6 +316,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
307
316
|
gpuQuotaItem,
|
|
308
317
|
gpuPriority,
|
|
309
318
|
handleNvidiaVgpuModelChange,
|
|
319
|
+
handleNvidiaVgpuDevicesChange,
|
|
310
320
|
handleNvidiaVgpuGpuScheduleChange,
|
|
311
321
|
handleNvidiaVgpuNodeScheduleChange,
|
|
312
322
|
GpuFieldName,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, computed, inject, ref, onBeforeUnmount, watch, nextTick } from "vue";
|
|
2
|
-
import { DaoFormItemValidate } from "@dao-style/extend";
|
|
2
|
+
import { DaoFormItemValidate, DaoHistoryLink } from "@dao-style/extend";
|
|
3
3
|
import { get, cloneDeep, set, isEqual } from "lodash-es";
|
|
4
4
|
import { FormContextKey } from "vee-validate";
|
|
5
5
|
import { pausableWatch as watchPausable } from "../../../node_modules/@vueuse/shared/index.mjs";
|
|
@@ -10,6 +10,7 @@ import "../../container-image/style/select-image-dialog.scss.mjs";
|
|
|
10
10
|
import "../../container-network/style/guide-to-use-sr-iov.scss.mjs";
|
|
11
11
|
import "../../container-network/style/container-network.scss.mjs";
|
|
12
12
|
import "../../../components/resource-config/style/resource-config.scss.mjs";
|
|
13
|
+
import "../../../components/gpu/style/assign-gpu-devices-list.scss.mjs";
|
|
13
14
|
import "../../../components/gpu/style/gpu-form-item.scss.mjs";
|
|
14
15
|
import "../../../components/gpu/style/gpu-form.scss.mjs";
|
|
15
16
|
import "../style/container-basic-info.scss.mjs";
|
|
@@ -20,8 +21,8 @@ import DaoContainerCustomResource from "../../container-custom-resource/src/Cont
|
|
|
20
21
|
import DaoGpuForm from "../../../components/gpu/src/GpuForm.vue.mjs";
|
|
21
22
|
import { useGPUOptions } from "../../../components/gpu/src/useGPUOptions.mjs";
|
|
22
23
|
import { nvidiaVgpuPriorityEnvName, nvidiaGpuKey } from "../../../components/gpu/props.mjs";
|
|
24
|
+
import { normalizeGPUResourceValue } from "../../../components/gpu/utils.mjs";
|
|
23
25
|
import { randomStr } from "../../../utils/randomStr.mjs";
|
|
24
|
-
import { formatNumUnit } from "../../../utils/formatNumUnit.mjs";
|
|
25
26
|
const _sfc_main = defineComponent({
|
|
26
27
|
name: "DaoContainerBasicInfo",
|
|
27
28
|
components: {
|
|
@@ -30,7 +31,8 @@ const _sfc_main = defineComponent({
|
|
|
30
31
|
DaoResourceConfig,
|
|
31
32
|
DaoContainerNetwork,
|
|
32
33
|
DaoContainerCustomResource,
|
|
33
|
-
DaoGpuForm
|
|
34
|
+
DaoGpuForm,
|
|
35
|
+
DaoHistoryLink
|
|
34
36
|
},
|
|
35
37
|
props: containerBasicInfoProps,
|
|
36
38
|
emits: Object.keys(ContainerBasicInfoEmits),
|
|
@@ -121,15 +123,15 @@ const _sfc_main = defineComponent({
|
|
|
121
123
|
if (!gpuType) {
|
|
122
124
|
return acc;
|
|
123
125
|
}
|
|
126
|
+
const normalizedValue = normalizeGPUResourceValue(value);
|
|
127
|
+
delete separateTempLimitValue.value[key];
|
|
128
|
+
if (normalizedValue === void 0) {
|
|
129
|
+
return acc;
|
|
130
|
+
}
|
|
124
131
|
if (!acc.types.includes(gpuType)) {
|
|
125
132
|
acc.types.push(gpuType);
|
|
126
133
|
}
|
|
127
|
-
|
|
128
|
-
acc.resources[key] = formatNumUnit(value);
|
|
129
|
-
} else {
|
|
130
|
-
acc.resources[key] = Number(value);
|
|
131
|
-
}
|
|
132
|
-
delete separateTempLimitValue.value[key];
|
|
134
|
+
acc.resources[key] = normalizedValue;
|
|
133
135
|
return acc;
|
|
134
136
|
}, {
|
|
135
137
|
types: [],
|
|
@@ -267,6 +269,13 @@ const _sfc_main = defineComponent({
|
|
|
267
269
|
nvidiaVgpuModel.value = val;
|
|
268
270
|
}
|
|
269
271
|
};
|
|
272
|
+
const handleNvidiaVgpuDevicesChange = (val) => {
|
|
273
|
+
var _a2;
|
|
274
|
+
if ((_a2 = props.extraBinding) == null ? void 0 : _a2.nvidiaVgpuDevices) {
|
|
275
|
+
const { nvidiaVgpuDevices } = props.extraBinding;
|
|
276
|
+
nvidiaVgpuDevices.value = val;
|
|
277
|
+
}
|
|
278
|
+
};
|
|
270
279
|
const handleNvidiaVgpuGpuScheduleChange = (val) => {
|
|
271
280
|
var _a2;
|
|
272
281
|
if ((_a2 = props.extraBinding) == null ? void 0 : _a2.nvidiaVgpuGpuSchedule) {
|
|
@@ -306,6 +315,7 @@ const _sfc_main = defineComponent({
|
|
|
306
315
|
gpuQuotaItem,
|
|
307
316
|
gpuPriority,
|
|
308
317
|
handleNvidiaVgpuModelChange,
|
|
318
|
+
handleNvidiaVgpuDevicesChange,
|
|
309
319
|
handleNvidiaVgpuGpuScheduleChange,
|
|
310
320
|
handleNvidiaVgpuNodeScheduleChange,
|
|
311
321
|
GpuFieldName,
|
|
@@ -246,7 +246,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
246
246
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
247
247
|
"onSearch-change"?: ((...args: any[]) => any) | undefined;
|
|
248
248
|
"onLoad-more"?: ((...args: any[]) => any) | undefined;
|
|
249
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "modelValue" | "placeholder" | "disabled" | "search" | "size" | "status" | "appendTo" | "loading" | "options" | "labelKey" | "valueKey" | "itemHeight" | "optionsPlaceholder" | "searchPlaceholder" | "menuClass" | "
|
|
249
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "modelValue" | "placeholder" | "disabled" | "search" | "size" | "status" | "appendTo" | "loading" | "multiple" | "options" | "labelKey" | "valueKey" | "itemHeight" | "optionsPlaceholder" | "searchPlaceholder" | "menuClass" | "optionLoading" | "hideSelectAll" | "clearable" | "enableLazyLoad" | "lazyLoadOptions">;
|
|
250
250
|
$attrs: {
|
|
251
251
|
[x: string]: unknown;
|
|
252
252
|
};
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
export declare const data: {
|
|
2
2
|
spec: {
|
|
3
3
|
template: {
|
|
4
|
+
metadata: {
|
|
5
|
+
annotations: {
|
|
6
|
+
'nvidia.com/use-gputype': string;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
4
9
|
spec: {
|
|
5
10
|
imagePullSecrets: string[];
|
|
6
11
|
containers: {
|
|
@@ -15,7 +20,9 @@ export declare const data: {
|
|
|
15
20
|
limits: {
|
|
16
21
|
cpu: string;
|
|
17
22
|
memory: string;
|
|
18
|
-
'nvidia.com/
|
|
23
|
+
'nvidia.com/vgpu': number;
|
|
24
|
+
'nvidia.com/gpumem': number;
|
|
25
|
+
'nvidia.com/gpucores': number;
|
|
19
26
|
'spidernet.io/hca_shared_devices': number;
|
|
20
27
|
customtest: number;
|
|
21
28
|
};
|
|
@@ -94,6 +94,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
94
94
|
type: import("vue").PropType<import("../../..").GpuFormProps>;
|
|
95
95
|
default: undefined;
|
|
96
96
|
};
|
|
97
|
+
assignGpuConfig: {
|
|
98
|
+
type: import("vue").PropType<import("../..").AssignGpuConfig>;
|
|
99
|
+
default: undefined;
|
|
100
|
+
};
|
|
97
101
|
disableNetworkParameterConfig: {
|
|
98
102
|
type: BooleanConstructor;
|
|
99
103
|
default: undefined;
|
|
@@ -132,6 +136,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
132
136
|
gpuQuotaItem: import("vue").Ref<import("../../..").GpuQuota | undefined>;
|
|
133
137
|
gpuPriority: import("vue").WritableComputedRef<any>;
|
|
134
138
|
handleNvidiaVgpuModelChange: (val?: string | undefined) => void;
|
|
139
|
+
handleNvidiaVgpuDevicesChange: (val?: string[] | undefined) => void;
|
|
135
140
|
handleNvidiaVgpuGpuScheduleChange: (val?: import("../../..").VgpuSchedulePolicy | undefined) => void;
|
|
136
141
|
handleNvidiaVgpuNodeScheduleChange: (val?: import("../../..").VgpuSchedulePolicy | undefined) => void;
|
|
137
142
|
GpuFieldName: string;
|
|
@@ -203,6 +208,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
203
208
|
type: import("vue").PropType<import("../../..").GpuFormProps>;
|
|
204
209
|
default: undefined;
|
|
205
210
|
};
|
|
211
|
+
assignGpuConfig: {
|
|
212
|
+
type: import("vue").PropType<import("../..").AssignGpuConfig>;
|
|
213
|
+
default: undefined;
|
|
214
|
+
};
|
|
206
215
|
disableNetworkParameterConfig: {
|
|
207
216
|
type: BooleanConstructor;
|
|
208
217
|
default: undefined;
|
|
@@ -228,6 +237,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
228
237
|
resourceConfigProps: import("../../..").ResourceConfigProps;
|
|
229
238
|
enableGpuConfig: boolean;
|
|
230
239
|
gpuProps: import("../../..").GpuFormProps;
|
|
240
|
+
assignGpuConfig: import("../..").AssignGpuConfig;
|
|
231
241
|
disableNetworkParameterConfig: boolean;
|
|
232
242
|
networkProps: Partial<import("../..").ContainerNetworkProps>;
|
|
233
243
|
extraBinding: import("../..").BasicInfoExtraBinding;
|
|
@@ -283,6 +293,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
283
293
|
resourceConfigProps?: import("../../..").ResourceConfigProps | undefined;
|
|
284
294
|
enableGpuConfig?: boolean | undefined;
|
|
285
295
|
gpuProps?: import("../../..").GpuFormProps | undefined;
|
|
296
|
+
assignGpuConfig?: import("../..").AssignGpuConfig | undefined;
|
|
286
297
|
disableNetworkParameterConfig?: boolean | undefined;
|
|
287
298
|
networkProps?: Partial<import("../..").ContainerNetworkProps> | undefined;
|
|
288
299
|
extraBinding?: import("../..").BasicInfoExtraBinding | undefined;
|
|
@@ -332,6 +343,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
332
343
|
} | {
|
|
333
344
|
key: string;
|
|
334
345
|
component: import("vue").Raw<import("vue").DefineComponent<{
|
|
346
|
+
showText: {
|
|
347
|
+
type: BooleanConstructor;
|
|
348
|
+
default: boolean;
|
|
349
|
+
};
|
|
335
350
|
fields: {
|
|
336
351
|
type: import("vue").PropType<Partial<Record<import("../..").HealthCheckFieldKey, string>>>;
|
|
337
352
|
default: () => {};
|
|
@@ -346,16 +361,22 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
346
361
|
startupProbe?: string | undefined;
|
|
347
362
|
}>;
|
|
348
363
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
364
|
+
showText: {
|
|
365
|
+
type: BooleanConstructor;
|
|
366
|
+
default: boolean;
|
|
367
|
+
};
|
|
349
368
|
fields: {
|
|
350
369
|
type: import("vue").PropType<Partial<Record<import("../..").HealthCheckFieldKey, string>>>;
|
|
351
370
|
default: () => {};
|
|
352
371
|
};
|
|
353
372
|
}>>, {
|
|
354
373
|
fields: Partial<Record<import("../..").HealthCheckFieldKey, string>>;
|
|
374
|
+
showText: boolean;
|
|
355
375
|
}>>;
|
|
356
376
|
confirmAlign: "form";
|
|
357
377
|
props: {
|
|
358
378
|
fields?: Partial<Record<import("../..").HealthCheckFieldKey, string>> | undefined;
|
|
379
|
+
showText?: boolean | undefined;
|
|
359
380
|
};
|
|
360
381
|
required?: undefined;
|
|
361
382
|
title: string;
|
|
@@ -810,6 +831,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
810
831
|
resourceConfigProps?: import("../../..").ResourceConfigProps | undefined;
|
|
811
832
|
enableGpuConfig?: boolean | undefined;
|
|
812
833
|
gpuProps?: import("../../..").GpuFormProps | undefined;
|
|
834
|
+
assignGpuConfig?: import("../..").AssignGpuConfig | undefined;
|
|
813
835
|
disableNetworkParameterConfig?: boolean | undefined;
|
|
814
836
|
networkProps?: Partial<import("../..").ContainerNetworkProps> | undefined;
|
|
815
837
|
extraBinding?: import("../..").BasicInfoExtraBinding | undefined;
|
|
@@ -820,6 +842,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
820
842
|
};
|
|
821
843
|
healthCheckProps: {
|
|
822
844
|
fields: Partial<Record<import("../..").HealthCheckFieldKey, string>>;
|
|
845
|
+
showText: boolean;
|
|
823
846
|
};
|
|
824
847
|
dataStorageProps: import("../..").ContainerStorageProps;
|
|
825
848
|
envProps: import("../..").ContainerEnvProps;
|
|
@@ -383,6 +383,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
383
383
|
};
|
|
384
384
|
extraBinding: {
|
|
385
385
|
nvidiaVgpuModel: import("vue").WritableComputedRef<string>;
|
|
386
|
+
nvidiaVgpuDevices: import("vue").WritableComputedRef<string[] | undefined>;
|
|
386
387
|
nvidiaVgpuGpuSchedule: import("vue").WritableComputedRef<VgpuSchedulePolicy | undefined>;
|
|
387
388
|
nvidiaVgpuNodeSchedule: import("vue").WritableComputedRef<VgpuSchedulePolicy | undefined>;
|
|
388
389
|
};
|
|
@@ -395,6 +396,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
395
396
|
resourceConfigProps?: import("../../../components").ResourceConfigProps | undefined;
|
|
396
397
|
enableGpuConfig?: boolean | undefined;
|
|
397
398
|
gpuProps?: import("../../../components").GpuFormProps | undefined;
|
|
399
|
+
assignGpuConfig?: import("../..").AssignGpuConfig | undefined;
|
|
398
400
|
disableNetworkParameterConfig?: boolean | undefined;
|
|
399
401
|
networkProps?: Partial<import("../..").ContainerNetworkProps> | undefined;
|
|
400
402
|
}>;
|
|
@@ -491,6 +493,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
491
493
|
resourceConfigProps?: import("../../../components").ResourceConfigProps | undefined;
|
|
492
494
|
enableGpuConfig?: boolean | undefined;
|
|
493
495
|
gpuProps?: import("../../../components").GpuFormProps | undefined;
|
|
496
|
+
assignGpuConfig?: import("../..").AssignGpuConfig | undefined;
|
|
494
497
|
disableNetworkParameterConfig?: boolean | undefined;
|
|
495
498
|
networkProps?: Partial<import("../..").ContainerNetworkProps> | undefined;
|
|
496
499
|
extraBinding?: import("../..").BasicInfoExtraBinding | undefined;
|
|
@@ -501,6 +504,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
501
504
|
};
|
|
502
505
|
healthCheckProps: {
|
|
503
506
|
fields: Partial<Record<import("../..").HealthCheckFieldKey, string>>;
|
|
507
|
+
showText: boolean;
|
|
504
508
|
};
|
|
505
509
|
dataStorageProps: ContainerStorageProps;
|
|
506
510
|
envProps: import("../..").ContainerEnvProps;
|
|
@@ -15,6 +15,7 @@ require("../../container-image/style/select-image-dialog.scss.js");
|
|
|
15
15
|
require("../../container-network/style/guide-to-use-sr-iov.scss.js");
|
|
16
16
|
require("../../container-network/style/container-network.scss.js");
|
|
17
17
|
require("../../../components/resource-config/style/resource-config.scss.js");
|
|
18
|
+
require("../../../components/gpu/style/assign-gpu-devices-list.scss.js");
|
|
18
19
|
require("../../../components/gpu/style/gpu-form-item.scss.js");
|
|
19
20
|
require("../../../components/gpu/style/gpu-form.scss.js");
|
|
20
21
|
require("../../container-basic-info/style/container-basic-info.scss.js");
|
|
@@ -183,7 +184,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
183
184
|
};
|
|
184
185
|
const debouncePostToEmit = lodashEs.debounce(postToEmit, 300, {
|
|
185
186
|
leading: true,
|
|
186
|
-
trailing:
|
|
187
|
+
trailing: true
|
|
187
188
|
});
|
|
188
189
|
const volumes = vue.computed({
|
|
189
190
|
get() {
|
|
@@ -246,6 +247,21 @@ const _sfc_main = vue.defineComponent({
|
|
|
246
247
|
}
|
|
247
248
|
}
|
|
248
249
|
});
|
|
250
|
+
const nvidiaVgpuDevicesComputedRef = vue.computed({
|
|
251
|
+
get() {
|
|
252
|
+
const raw = lodashEs.get(props$2.workload, [...actualFields.value.annotations.split("."), props$1.NividaVgpuDevicesAnnoKey], "");
|
|
253
|
+
return raw ? raw.split(",") : [];
|
|
254
|
+
},
|
|
255
|
+
set(val) {
|
|
256
|
+
if (props$2.workload) {
|
|
257
|
+
if (val && val.length) {
|
|
258
|
+
lodashEs.set(props$2.workload, [...actualFields.value.annotations.split("."), props$1.NividaVgpuDevicesAnnoKey], val.join(","));
|
|
259
|
+
} else {
|
|
260
|
+
lodashEs.unset(props$2.workload, [...actualFields.value.annotations.split("."), props$1.NividaVgpuDevicesAnnoKey]);
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
});
|
|
249
265
|
const nvidiaVgpuGpuScheduleComputedRef = vue.computed({
|
|
250
266
|
get() {
|
|
251
267
|
return lodashEs.get(props$2.workload, [...actualFields.value.annotations.split("."), props$1.NividaVgpuGpuScheduleAnnoKey], "");
|
|
@@ -287,6 +303,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
287
303
|
},
|
|
288
304
|
extraBinding: {
|
|
289
305
|
nvidiaVgpuModel: nvidiaVgpuModelComputedRef,
|
|
306
|
+
nvidiaVgpuDevices: nvidiaVgpuDevicesComputedRef,
|
|
290
307
|
nvidiaVgpuGpuSchedule: nvidiaVgpuGpuScheduleComputedRef,
|
|
291
308
|
nvidiaVgpuNodeSchedule: nvidiaVgpuNodeScheduleComputedRef
|
|
292
309
|
}
|
|
@@ -14,6 +14,7 @@ import "../../container-image/style/select-image-dialog.scss.mjs";
|
|
|
14
14
|
import "../../container-network/style/guide-to-use-sr-iov.scss.mjs";
|
|
15
15
|
import "../../container-network/style/container-network.scss.mjs";
|
|
16
16
|
import "../../../components/resource-config/style/resource-config.scss.mjs";
|
|
17
|
+
import "../../../components/gpu/style/assign-gpu-devices-list.scss.mjs";
|
|
17
18
|
import "../../../components/gpu/style/gpu-form-item.scss.mjs";
|
|
18
19
|
import "../../../components/gpu/style/gpu-form.scss.mjs";
|
|
19
20
|
import "../../container-basic-info/style/container-basic-info.scss.mjs";
|
|
@@ -32,7 +33,7 @@ import "../style/containers.scss.mjs";
|
|
|
32
33
|
import "../style/ConfirmDialog.scss.mjs";
|
|
33
34
|
import DaoConfirmDialog from "./dialogs/ConfirmDialog.vue.mjs";
|
|
34
35
|
import DaoFormItemValidate from "./patch-form-item-validate/form-item-validate.vue.mjs";
|
|
35
|
-
import { NividaVgpuModelAnnoKey, NividaVgpuGpuScheduleAnnoKey, NividaVgpuNodeScheduleAnnoKey } from "../../../components/gpu/props.mjs";
|
|
36
|
+
import { NividaVgpuModelAnnoKey, NividaVgpuDevicesAnnoKey, NividaVgpuGpuScheduleAnnoKey, NividaVgpuNodeScheduleAnnoKey } from "../../../components/gpu/props.mjs";
|
|
36
37
|
import { randomStr } from "../../../utils/randomStr.mjs";
|
|
37
38
|
const _sfc_main = defineComponent({
|
|
38
39
|
name: "DaoContainers",
|
|
@@ -165,7 +166,7 @@ const _sfc_main = defineComponent({
|
|
|
165
166
|
};
|
|
166
167
|
const debouncePostToEmit = debounce(postToEmit, 300, {
|
|
167
168
|
leading: true,
|
|
168
|
-
trailing:
|
|
169
|
+
trailing: true
|
|
169
170
|
});
|
|
170
171
|
const volumes = computed({
|
|
171
172
|
get() {
|
|
@@ -228,6 +229,21 @@ const _sfc_main = defineComponent({
|
|
|
228
229
|
}
|
|
229
230
|
}
|
|
230
231
|
});
|
|
232
|
+
const nvidiaVgpuDevicesComputedRef = computed({
|
|
233
|
+
get() {
|
|
234
|
+
const raw = get(props.workload, [...actualFields.value.annotations.split("."), NividaVgpuDevicesAnnoKey], "");
|
|
235
|
+
return raw ? raw.split(",") : [];
|
|
236
|
+
},
|
|
237
|
+
set(val) {
|
|
238
|
+
if (props.workload) {
|
|
239
|
+
if (val && val.length) {
|
|
240
|
+
set(props.workload, [...actualFields.value.annotations.split("."), NividaVgpuDevicesAnnoKey], val.join(","));
|
|
241
|
+
} else {
|
|
242
|
+
unset(props.workload, [...actualFields.value.annotations.split("."), NividaVgpuDevicesAnnoKey]);
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
});
|
|
231
247
|
const nvidiaVgpuGpuScheduleComputedRef = computed({
|
|
232
248
|
get() {
|
|
233
249
|
return get(props.workload, [...actualFields.value.annotations.split("."), NividaVgpuGpuScheduleAnnoKey], "");
|
|
@@ -269,6 +285,7 @@ const _sfc_main = defineComponent({
|
|
|
269
285
|
},
|
|
270
286
|
extraBinding: {
|
|
271
287
|
nvidiaVgpuModel: nvidiaVgpuModelComputedRef,
|
|
288
|
+
nvidiaVgpuDevices: nvidiaVgpuDevicesComputedRef,
|
|
272
289
|
nvidiaVgpuGpuSchedule: nvidiaVgpuGpuScheduleComputedRef,
|
|
273
290
|
nvidiaVgpuNodeSchedule: nvidiaVgpuNodeScheduleComputedRef
|
|
274
291
|
}
|
|
@@ -20,6 +20,10 @@ export declare const healthCheckHandlerProps: {
|
|
|
20
20
|
};
|
|
21
21
|
};
|
|
22
22
|
export declare const healthCheckProps: {
|
|
23
|
+
showText: {
|
|
24
|
+
type: BooleanConstructor;
|
|
25
|
+
default: boolean;
|
|
26
|
+
};
|
|
23
27
|
fields: {
|
|
24
28
|
type: PropType<Partial<Record<HealthCheckFieldKey, string>>>;
|
|
25
29
|
default: () => {};
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import '../style/health-check';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<{
|
|
3
|
+
showText: {
|
|
4
|
+
type: BooleanConstructor;
|
|
5
|
+
default: boolean;
|
|
6
|
+
};
|
|
3
7
|
fields: {
|
|
4
8
|
type: import("vue").PropType<Partial<Record<import("../props").HealthCheckFieldKey, string>>>;
|
|
5
9
|
default: () => {};
|
|
@@ -14,11 +18,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
14
18
|
startupProbe?: string | undefined;
|
|
15
19
|
}>;
|
|
16
20
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
21
|
+
showText: {
|
|
22
|
+
type: BooleanConstructor;
|
|
23
|
+
default: boolean;
|
|
24
|
+
};
|
|
17
25
|
fields: {
|
|
18
26
|
type: import("vue").PropType<Partial<Record<import("../props").HealthCheckFieldKey, string>>>;
|
|
19
27
|
default: () => {};
|
|
20
28
|
};
|
|
21
29
|
}>>, {
|
|
22
30
|
fields: Partial<Record<import("../props").HealthCheckFieldKey, string>>;
|
|
31
|
+
showText: boolean;
|
|
23
32
|
}>;
|
|
24
33
|
export default _default;
|
|
@@ -17,8 +17,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
17
17
|
vue.createVNode(_component_dao_switch, {
|
|
18
18
|
modelValue: _ctx.enableLivenessProbe,
|
|
19
19
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.enableLivenessProbe = $event),
|
|
20
|
-
"show-text":
|
|
21
|
-
}, null, 8, ["modelValue"]),
|
|
20
|
+
"show-text": _ctx.showText
|
|
21
|
+
}, null, 8, ["modelValue", "show-text"]),
|
|
22
22
|
_ctx.enableLivenessProbe ? (vue.openBlock(), vue.createBlock(_component_dao_health_check_handler, {
|
|
23
23
|
key: 0,
|
|
24
24
|
"field-prefix": _ctx.actualFields.livenessProbe
|
|
@@ -34,8 +34,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
34
34
|
vue.createVNode(_component_dao_switch, {
|
|
35
35
|
modelValue: _ctx.enableReadinessProbe,
|
|
36
36
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => _ctx.enableReadinessProbe = $event),
|
|
37
|
-
"show-text":
|
|
38
|
-
}, null, 8, ["modelValue"]),
|
|
37
|
+
"show-text": _ctx.showText
|
|
38
|
+
}, null, 8, ["modelValue", "show-text"]),
|
|
39
39
|
_ctx.enableReadinessProbe ? (vue.openBlock(), vue.createBlock(_component_dao_health_check_handler, {
|
|
40
40
|
key: 0,
|
|
41
41
|
"field-prefix": _ctx.actualFields.readinessProbe
|
|
@@ -51,8 +51,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
51
51
|
vue.createVNode(_component_dao_switch, {
|
|
52
52
|
modelValue: _ctx.enableStartupProbe,
|
|
53
53
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => _ctx.enableStartupProbe = $event),
|
|
54
|
-
"show-text":
|
|
55
|
-
}, null, 8, ["modelValue"]),
|
|
54
|
+
"show-text": _ctx.showText
|
|
55
|
+
}, null, 8, ["modelValue", "show-text"]),
|
|
56
56
|
_ctx.enableStartupProbe ? (vue.openBlock(), vue.createBlock(_component_dao_health_check_handler, {
|
|
57
57
|
key: 0,
|
|
58
58
|
"field-prefix": _ctx.actualFields.startupProbe
|