dashboard-shell-shell 3.0.5-test.5 → 3.0.5-test.50
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/assets/brand/csp/favicon.png +0 -0
- package/assets/icons/iconfont.css +4 -1
- package/assets/images/pl/dark/logo.png +0 -0
- package/assets/styles/all.scss +23 -3
- package/assets/styles/base/_variables.scss +5 -5
- package/assets/styles/fonts/_icons.scss +3 -2
- package/assets/styles/global/_button.scss +2 -2
- package/assets/styles/global/_form.scss +1 -0
- package/assets/styles/global/_select.scss +1 -1
- package/assets/styles/global/_tooltip.scss +5 -1
- package/assets/styles/themes/_light.scss +3 -3
- package/assets/styles/vendor/vue-select.scss +2 -1
- package/assets/translations/en-us.yaml +64 -0
- package/assets/translations/zh-hans.yaml +206 -21
- package/components/ButtonDropdown.vue +3 -1
- package/components/ClusterIconMenu.vue +1 -1
- package/components/CodeMirror.vue +6 -4
- package/components/ConsumptionGauge.vue +1 -1
- package/components/ContainerResourceLimit.vue +2 -2
- package/components/CruResource.vue +3 -2
- package/components/Drawer/ResourceDetailDrawer/ConfigTab.vue +10 -7
- package/components/Drawer/ResourceDetailDrawer/YamlTab.vue +1 -1
- package/components/Drawer/ResourceDetailDrawer/index.vue +3 -2
- package/components/ExplorerMembers.vue +10 -1
- package/components/GlobalRoleBindings.vue +69 -114
- package/components/PodSecurityAdmission.vue +1 -1
- package/components/PromptRemove.vue +23 -1
- package/components/RelatedResources.vue +3 -0
- package/components/Resource/Detail/Metadata/index.vue +1 -0
- package/components/Resource/Detail/TitleBar/Top.vue +2 -0
- package/components/Resource/Detail/TitleBar/composables.ts +16 -1
- package/components/Resource/Detail/TitleBar/index.vue +42 -23
- package/components/ResourceDetail/Masthead/index.vue +1 -1
- package/components/ResourceDetail/Masthead/latest.vue +1 -1
- package/components/ResourceDetail/Masthead/legacy.vue +8 -7
- package/components/ResourceDetail/legacy.vue +15 -15
- package/components/ResourceList/Masthead.vue +13 -17
- package/components/ResourceTable.vue +16 -0
- package/components/SideNav.vue +21 -21
- package/components/SingleClusterInfo.vue +2 -1
- package/components/SortableTable/THead.vue +46 -1
- package/components/SortableTable/index.vue +55 -19
- package/components/Tabbed/index.vue +7 -2
- package/components/auth/Principal.vue +16 -8
- package/components/auth/RoleDetailEdit.vue +11 -7
- package/components/breadcrumb/index.vue +15 -236
- package/components/form/ArrayList.vue +164 -147
- package/components/form/ArrayListGrouped.vue +5 -3
- package/components/form/ChangePassword.vue +1 -1
- package/components/form/ClusterAppearance.vue +4 -3
- package/components/form/Command.vue +4 -5
- package/components/form/Conditions.vue +15 -1
- package/components/form/Footer.vue +1 -0
- package/components/form/HealthCheck.vue +0 -2
- package/components/form/HookOption.vue +87 -58
- package/components/form/InputWithSelect.vue +8 -7
- package/components/form/KeyValue.vue +20 -2
- package/components/form/LabeledSelect.vue +3 -1
- package/components/form/Labels.vue +2 -2
- package/components/form/MatchExpressions.vue +4 -4
- package/components/form/Members/ClusterMembershipEditor.vue +1 -1
- package/components/form/Members/ClusterPermissionsEditor.vue +60 -41
- package/components/form/Members/MembershipEditor.vue +4 -4
- package/components/form/Members/ProjectMembershipEditor.vue +1 -1
- package/components/form/NameNsDescription.vue +4 -2
- package/components/form/Networking.vue +6 -9
- package/components/form/NodeAffinity.vue +29 -28
- package/components/form/PodAffinity.vue +23 -23
- package/components/form/Probe.vue +15 -11
- package/components/form/ProjectMemberEditor.vue +66 -48
- package/components/form/ResourceQuota/Namespace.vue +4 -4
- package/components/form/ResourceQuota/NamespaceRow.vue +11 -9
- package/components/form/ResourceQuota/Project.vue +4 -4
- package/components/form/ResourceQuota/ProjectRow.vue +36 -30
- package/components/form/ResourceSelector.vue +1 -1
- package/components/form/Security.vue +1 -3
- package/components/form/Select.vue +7 -1
- package/components/form/ServiceNameSelect.vue +2 -5
- package/components/form/ServicePorts.vue +149 -75
- package/components/form/Tolerations.vue +13 -9
- package/components/form/ValueFromResource.vue +110 -96
- package/components/formatter/WorkloadHealthScale.vue +4 -3
- package/components/nav/Group.vue +6 -0
- package/components/nav/Header.vue +17 -137
- package/components/nav/NamespaceFilter.vue +15 -21
- package/components/nav/TopLevelMenu.vue +99 -125
- package/components/nav/Type.vue +11 -3
- package/config/menuRouteMap.js +10 -0
- package/config/product/explorer.js +32 -10
- package/config/product/manager.js +28 -17
- package/config/router/navigation-guards/index.js +61 -3
- package/detail/node.vue +28 -23
- package/dialog/AddCustomBadgeDialog.vue +17 -9
- package/dialog/RollbackWorkloadDialog.vue +1 -1
- package/edit/autoscaling.horizontalpodautoscaler/external-metric.vue +1 -1
- package/edit/autoscaling.horizontalpodautoscaler/hpa-scaling-rule.vue +9 -6
- package/edit/autoscaling.horizontalpodautoscaler/index.vue +3 -1
- package/edit/autoscaling.horizontalpodautoscaler/metric-identifier.vue +2 -2
- package/edit/autoscaling.horizontalpodautoscaler/metric-object-reference.vue +7 -5
- package/edit/autoscaling.horizontalpodautoscaler/metric-target.vue +5 -3
- package/edit/autoscaling.horizontalpodautoscaler/metrics-row.vue +2 -2
- package/edit/autoscaling.horizontalpodautoscaler/object-metric.vue +2 -2
- package/edit/autoscaling.horizontalpodautoscaler/pod-metric.vue +1 -1
- package/edit/autoscaling.horizontalpodautoscaler/resource-metric.vue +2 -2
- package/edit/configmap.vue +4 -0
- package/edit/networking.k8s.io.ingress/Certificate.vue +14 -5
- package/edit/networking.k8s.io.ingress/DefaultBackend.vue +2 -2
- package/edit/networking.k8s.io.ingress/Rule.vue +5 -11
- package/edit/networking.k8s.io.ingress/RulePath.vue +105 -96
- package/edit/networking.k8s.io.networkpolicy/PolicyRule.vue +3 -3
- package/edit/networking.k8s.io.networkpolicy/PolicyRulePort.vue +4 -2
- package/edit/networking.k8s.io.networkpolicy/PolicyRuleTarget.vue +12 -11
- package/edit/networking.k8s.io.networkpolicy/index.vue +1 -1
- package/edit/persistentvolume/index.vue +3 -1
- package/edit/persistentvolumeclaim.vue +2 -0
- package/edit/provisioning.cattle.io.cluster/tabs/Basics.vue +1 -1
- package/edit/secret/index.vue +2 -2
- package/edit/service.vue +4 -1
- package/edit/storage.k8s.io.storageclass/index.vue +10 -8
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/aws-ebs.vue +34 -27
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/gce-pd.vue +15 -13
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/vsphere-volume.vue +41 -39
- package/edit/workload/Job.vue +31 -34
- package/edit/workload/Upgrading.vue +5 -5
- package/edit/workload/index.vue +19 -15
- package/edit/workload/storage/Mount.vue +1 -0
- package/edit/workload/storage/awsElasticBlockStore.vue +9 -7
- package/edit/workload/storage/azureDisk.vue +14 -10
- package/edit/workload/storage/azureFile.vue +9 -7
- package/edit/workload/storage/csi/index.vue +6 -9
- package/edit/workload/storage/emptyDir.vue +7 -5
- package/edit/workload/storage/gcePersistentDisk.vue +9 -7
- package/edit/workload/storage/hostPath.vue +7 -5
- package/edit/workload/storage/nfs.vue +8 -6
- package/edit/workload/storage/persistentVolumeClaim/index.vue +12 -10
- package/edit/workload/storage/persistentVolumeClaim/persistentvolumeclaim.vue +20 -15
- package/edit/workload/storage/secret.vue +9 -6
- package/edit/workload/storage/vsphereVolume.vue +11 -7
- package/initialize/app-extended.js +7 -1
- package/list/management.cattle.io.podsecurityadmissionconfigurationtemplate.vue +8 -6
- package/mixins/create-edit-view/impl.js +10 -0
- package/models/provisioning.cattle.io.cluster.js +19 -18
- package/models/workload.js +2 -2
- package/package.json +1 -1
- package/pages/account/index.vue +96 -115
- package/pages/auth/login.vue +1 -1
- package/pages/auth/setup.vue +36 -17
- package/pages/c/_cluster/auth/roles/index.vue +65 -8
- package/pages/c/_cluster/explorer/ConfigBadge.vue +1 -1
- package/pages/c/_cluster/explorer/index.vue +2 -1
- package/pages/c/_cluster/explorer/tools/index.vue +6 -6
- package/pages/home.vue +55 -13
- package/pkg/tsconfig.json +9 -9
- package/pkg/vue.config.js +1 -1
- package/plugins/dashboard-store/actions.js +1 -1
- package/plugins/dashboard-store/resource-class.js +28 -27
- package/rancher-components/Banner/Banner.vue +14 -2
- package/rancher-components/Form/Radio/RadioGroup.vue +9 -1
- package/rancher-components/LabeledTooltip/LabeledTooltip.vue +31 -2
- package/scripts/build-pkg.sh +18 -23
- package/scripts/publish-shell.sh +1 -1
- package/store/i18n.js +1 -0
- package/store/type-map.js +1 -3
- package/types/shell/index.d.ts +12 -30
- package/utils/error.js +26 -4
- package/utils/errorTranslate.json +390 -6
- package/utils/errorTranslateNew.json +39 -0
- package/utils/roleFiltering.js +33 -0
- package/vue.config.js +1 -1
|
@@ -111,6 +111,8 @@ generic:
|
|
|
111
111
|
=1 {匹配 {total, number} 个中的 1 个:"{sample}"}
|
|
112
112
|
other {匹配 {total, number} 中的 {matched, number} 个,包括 "{sample}"}
|
|
113
113
|
}
|
|
114
|
+
ariaLabel:
|
|
115
|
+
genericAddRow: 添加
|
|
114
116
|
|
|
115
117
|
graph:
|
|
116
118
|
loading: 正在加载 Chart 数据...
|
|
@@ -216,7 +218,7 @@ product:
|
|
|
216
218
|
backup: Rancher 备份
|
|
217
219
|
cis: CIS Benchmark
|
|
218
220
|
ecm: Cluster Manager
|
|
219
|
-
explorer:
|
|
221
|
+
explorer: 控制台
|
|
220
222
|
fleet: 持续交付
|
|
221
223
|
longhorn: Longhorn
|
|
222
224
|
manager: 集群管理
|
|
@@ -593,11 +595,28 @@ assignTo:
|
|
|
593
595
|
workspace: 工作空间
|
|
594
596
|
|
|
595
597
|
stateLabel:
|
|
598
|
+
Wait Check-In: 等待加入
|
|
599
|
+
Provisioning: 配置中
|
|
600
|
+
Waiting: 等待中
|
|
601
|
+
waiting: 等待中
|
|
602
|
+
Images preloading: 图像预加载中
|
|
603
|
+
Images preloaded: 图像已预加载
|
|
604
|
+
Waiting Reboot: 等待重启
|
|
605
|
+
warning: 警告
|
|
606
|
+
upgrading: 升级中
|
|
607
|
+
Upgrading: 升级中
|
|
608
|
+
Succeeded: 成功
|
|
609
|
+
Pending migration: 待迁移
|
|
610
|
+
Imagepullbackoff: 镜像拉取失败
|
|
611
|
+
VM error: 错误
|
|
612
|
+
Locked: 锁定
|
|
596
613
|
Bound: 已绑定
|
|
597
614
|
Running: 运行中
|
|
598
615
|
Off: 关闭
|
|
599
616
|
Stopped: 关闭
|
|
617
|
+
pending: 准备中
|
|
600
618
|
Pending: 准备中
|
|
619
|
+
failed: 失败
|
|
601
620
|
Failed: 失败
|
|
602
621
|
Paused: 暂停
|
|
603
622
|
Stopping: 停止中
|
|
@@ -637,7 +656,6 @@ stateLabel:
|
|
|
637
656
|
VMI_WAITINH: 等待中
|
|
638
657
|
Entering maintenance mode: 维护中
|
|
639
658
|
|
|
640
|
-
|
|
641
659
|
buttonLabel:
|
|
642
660
|
Stop: 停止
|
|
643
661
|
Restart: 重启
|
|
@@ -671,7 +689,7 @@ buttonLabel:
|
|
|
671
689
|
Errors:
|
|
672
690
|
changePassword:
|
|
673
691
|
Password must be at least 12 characters: 密码至少为12个字符
|
|
674
|
-
invalid current password: 当前的密码输入错误
|
|
692
|
+
"invalid current password": 当前的密码输入错误
|
|
675
693
|
|
|
676
694
|
|
|
677
695
|
asyncButton:
|
|
@@ -781,6 +799,10 @@ asyncButton:
|
|
|
781
799
|
action: 恢复编排
|
|
782
800
|
success: 已恢复编排
|
|
783
801
|
waiting: 正在恢复编排
|
|
802
|
+
redeploy:
|
|
803
|
+
action: 重新部署
|
|
804
|
+
success: 重新部署成功
|
|
805
|
+
waiting: 正在重新部署工作负载
|
|
784
806
|
rollback:
|
|
785
807
|
action: 回滚
|
|
786
808
|
success: 已回滚
|
|
@@ -1187,6 +1209,9 @@ compliance:
|
|
|
1187
1209
|
testsToSkip: 要跳过的测试
|
|
1188
1210
|
|
|
1189
1211
|
cluster:
|
|
1212
|
+
jwtAuthentication:
|
|
1213
|
+
banner: "使用 JWT 认证的服务账户访问可在集群创建后通过以下路径配置:<br>
|
|
1214
|
+
<code>集群管理 > 高级 > JWT 认证</code>"
|
|
1190
1215
|
addonChart:
|
|
1191
1216
|
rancher-vsphere-cpi: vSphere CPI 配置
|
|
1192
1217
|
rancher-vsphere-csi: vSphere CSI 配置
|
|
@@ -1438,6 +1463,25 @@ cluster:
|
|
|
1438
1463
|
name:
|
|
1439
1464
|
label: 集群名称
|
|
1440
1465
|
placeholder: 请输入集群名称
|
|
1466
|
+
directoryConfig:
|
|
1467
|
+
title: 数据目录配置
|
|
1468
|
+
banner: 集群创建后,数据目录配置将无法更改
|
|
1469
|
+
radioInput:
|
|
1470
|
+
defaultLabel: 使用默认数据目录配置
|
|
1471
|
+
commonLabel: 为数据目录配置使用公共基础目录(子系统路径将使用子目录:system-agent、provisioning 和 distro)
|
|
1472
|
+
customLabel: 使用自定义数据目录
|
|
1473
|
+
common:
|
|
1474
|
+
label: 数据目录基础路径
|
|
1475
|
+
tooltip: 数据目录基础路径。我们将为每个目录附加相应的子目录(/agent、/provisioning 以及 /rke2 或 /k3s)
|
|
1476
|
+
systemAgent:
|
|
1477
|
+
label: 系统代理目录路径
|
|
1478
|
+
tooltip: 用于存储系统代理连接信息和计划的数据目录
|
|
1479
|
+
provisioning:
|
|
1480
|
+
label: 供应目录路径
|
|
1481
|
+
tooltip: 用于存储供应相关文件的数据目录
|
|
1482
|
+
k8sDistro:
|
|
1483
|
+
label: K8s 发行版目录路径
|
|
1484
|
+
tooltip: 用于存储 K8s 发行版的数据目录
|
|
1441
1485
|
machineConfig:
|
|
1442
1486
|
banner:
|
|
1443
1487
|
updateInfo: 创建一个池用来更新主机配置
|
|
@@ -1755,6 +1799,9 @@ cluster:
|
|
|
1755
1799
|
rke2-k3-reprovisioning: '更改集群配置可能导致节点重新配置。详情请参见 <a target="blank" href="{docsBase}/how-to-guides/new-user-guides/launch-kubernetes-with-rancher/rke1-vs-rke2-differences#cluster-api" target="_blank" rel="noopener nofollow">文档</a>。'
|
|
1756
1800
|
desiredNodeGroupWarning: 没有可用于运行 Cluster Agent 的节点。要让集群变为 Active 状态,至少需要有 1 个可用的节点。
|
|
1757
1801
|
haveArgInfo: 所选 Kubernetes 版本的配置信息不可用。此屏幕中可用的选项将受到限制,你可能需要使用 YAML 编辑器。
|
|
1802
|
+
cloudProviderAddConfig: '在 Kubernetes 1.27 或更高版本中,<b>Amazon</b> 云提供商需要额外配置。请参阅<a href="https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/kubernetes-clusters-in-rancher-setup/set-up-cloud-providers/amazon" target="_blank" rel="noopener noreferrer nofollow">文档</a>以了解更多信息。'
|
|
1803
|
+
cloudProviderUnsupportedAzure: '在 Kubernetes 1.30 或更高版本中,<b>Azure</b> 云提供商已被移除。请参阅<a href="https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/kubernetes-clusters-in-rancher-setup/set-up-cloud-providers/azure" target="_blank" rel="noopener noreferrer nofollow">文档</a>以了解更多信息。'
|
|
1804
|
+
cloudProviderMigrateAzure: '在 Kubernetes 1.30 或更高版本中,<b>Azure</b> 云提供商已被移除。要升级 Kubernetes,应先将集群迁移到外部提供商。请参阅<a href="https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/kubernetes-clusters-in-rancher-setup/set-up-cloud-providers/azure" target="_blank" rel="noopener noreferrer nofollow">文档</a>以了解更多信息。'
|
|
1758
1805
|
rkeTemplateUpgrade: 模板修订版 {name} 可用于升级
|
|
1759
1806
|
|
|
1760
1807
|
availabilityWarnings:
|
|
@@ -1835,10 +1882,13 @@ cluster:
|
|
|
1835
1882
|
searchPlaceholder: 请输入搜索
|
|
1836
1883
|
noResults: 没有匹配的结果
|
|
1837
1884
|
privateRegistry:
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1885
|
+
header: Rancher 系统容器镜像仓库
|
|
1886
|
+
label: 为 Rancher 系统容器镜像启用集群范围容器镜像仓库
|
|
1887
|
+
description: "如果启用,Rancher 将在集群配置期间从此镜像仓库拉取容器镜像。默认情况下,Rancher 在安装官方 Helm Chart 应用时也会使用此镜像仓库。如果禁用集群范围镜像仓库,系统镜像将从全局设置中的系统默认镜像仓库拉取。"
|
|
1888
|
+
importedDescription: "默认情况下,Rancher 在安装官方 Helm Chart 应用时也会使用此镜像仓库。如果禁用集群范围镜像仓库,系统镜像将从全局设置中的系统默认镜像仓库拉取。"
|
|
1889
|
+
docsLinkRke2: "有关配置私有镜像仓库的帮助,请参阅 RKE2 <a href=\"https://docs.rke2.io/install/private_registry\" target=\"_blank\">文档。</a>"
|
|
1890
|
+
docsLinkK3s: "有关配置私有镜像仓库的帮助,请参阅 K3s <a href=\"https://docs.k3s.io/installation/private-registry\" target=\"_blank\">文档。</a>"
|
|
1891
|
+
privateRegistryUrlError: 镜像仓库必须是有效的 URL。协议头可选。
|
|
1842
1892
|
provider:
|
|
1843
1893
|
aliyunecs: Aliyun ECS
|
|
1844
1894
|
aliyunkubernetescontainerservice: Alibaba ACK
|
|
@@ -1959,7 +2009,19 @@ cluster:
|
|
|
1959
2009
|
drain:
|
|
1960
2010
|
label: 清空节点
|
|
1961
2011
|
toolTip: 清空操作预先移除每个节点上的 Pod,使得升级中的节点上没有运行的工作负载。不清空的升级速度更快,造成的混乱更少,但是 Pod 仍可能根据进行中的升级进行重启。
|
|
1962
|
-
|
|
2012
|
+
deleteEmptyDir:
|
|
2013
|
+
warning: "默认情况下,使用 emptyDir 卷的 Pod 将在升级时被删除。依赖 emptyDir 卷在 Pod 生命周期内持久化的操作可能会受到影响。"
|
|
2014
|
+
label: 删除使用 emptyDir 卷的 Pod
|
|
2015
|
+
tooltip: emptyDir 卷通常用于临时数据,但其中的数据将被永久删除。如果未设置此选项且存在使用 emptyDir 的 Pod,排水操作将失败。
|
|
2016
|
+
force:
|
|
2017
|
+
label: 删除独立 Pod
|
|
2018
|
+
tooltip: 删除不受工作负载控制器(Deployment、Job 等)管理的独立 Pod。如果未设置此选项且存在独立 Pod,排水操作将失败。
|
|
2019
|
+
gracePeriod:
|
|
2020
|
+
checkboxLabel: 覆盖 Pod 终止宽限期
|
|
2021
|
+
inputLabel: 宽限期
|
|
2022
|
+
timeout:
|
|
2023
|
+
checkboxLabel: 超时时间
|
|
2024
|
+
inputLabel: 排水超时
|
|
1963
2025
|
truncateHostnames: 将主机名截断为 15 个字符来兼容 NetBIOS。
|
|
1964
2026
|
address:
|
|
1965
2027
|
tooltip: 创建集群后无法更改集群网络值。
|
|
@@ -2408,7 +2470,12 @@ glance:
|
|
|
2408
2470
|
eventsTable: 完整事件列表
|
|
2409
2471
|
|
|
2410
2472
|
clusterBadge:
|
|
2473
|
+
badgeAppearance: 集群徽章外观
|
|
2474
|
+
clusterComment: "集群注释 - {text}"
|
|
2475
|
+
customizeAppearance: 自定义外观
|
|
2411
2476
|
addLabel: 添加集群徽章
|
|
2477
|
+
setClusterAppearance: 集群外观设置
|
|
2478
|
+
customize: 自定义
|
|
2412
2479
|
editLabel: 编辑集群徽章
|
|
2413
2480
|
modal:
|
|
2414
2481
|
title: 自定义集群徽章
|
|
@@ -2573,7 +2640,7 @@ ingress:
|
|
|
2573
2640
|
required: 目标服务是必填的
|
|
2574
2641
|
warning: "警告:默认后端将全局用于整个集群"
|
|
2575
2642
|
ingressClass:
|
|
2576
|
-
label:
|
|
2643
|
+
label: Ingress类
|
|
2577
2644
|
rules:
|
|
2578
2645
|
addPath: 添加路径
|
|
2579
2646
|
addRule: 添加规则
|
|
@@ -2914,7 +2981,7 @@ logging:
|
|
|
2914
2981
|
default: /run/log/journal
|
|
2915
2982
|
elasticsearch:
|
|
2916
2983
|
host: 主机
|
|
2917
|
-
scheme:
|
|
2984
|
+
scheme: 协议
|
|
2918
2985
|
port: 端口
|
|
2919
2986
|
indexName: 索引名称
|
|
2920
2987
|
user: 用户名
|
|
@@ -3170,13 +3237,14 @@ login:
|
|
|
3170
3237
|
label: 记住用户名
|
|
3171
3238
|
|
|
3172
3239
|
logout:
|
|
3173
|
-
message:
|
|
3240
|
+
message: 正在退出登录...
|
|
3174
3241
|
|
|
3175
3242
|
managementNode:
|
|
3176
3243
|
customName: 自定义名称
|
|
3177
3244
|
|
|
3178
3245
|
members:
|
|
3179
3246
|
clusterMembers: 集群成员
|
|
3247
|
+
memberRoles: 成员角色
|
|
3180
3248
|
clusterAndProject: 集群和项目成员
|
|
3181
3249
|
createActionLabel: 添加
|
|
3182
3250
|
clusterMembership: 集群成员
|
|
@@ -3196,6 +3264,18 @@ members:
|
|
|
3196
3264
|
viewClusterCatalogs: 查看集群应用商店
|
|
3197
3265
|
viewClusterMembers: 查看集群成员
|
|
3198
3266
|
viewNodes: 查看节点
|
|
3267
|
+
safe-admin:
|
|
3268
|
+
label: 安全管理员
|
|
3269
|
+
description: 负责用户、角色及基础配置管理,保障系统权限与安全策略的合规性。
|
|
3270
|
+
project-tenant:
|
|
3271
|
+
label: 租户
|
|
3272
|
+
description: 租户可管理资源组及其中的虚机、网络等资源。
|
|
3273
|
+
cluster-tenant:
|
|
3274
|
+
label: 租户
|
|
3275
|
+
description: 租户可管理资源组及其中的虚机、网络等资源。
|
|
3276
|
+
tenant:
|
|
3277
|
+
label: 租户
|
|
3278
|
+
description: 租户可管理资源组及其中的虚机、网络等资源。
|
|
3199
3279
|
owner:
|
|
3200
3280
|
label: 所有者
|
|
3201
3281
|
description: 所有者对集群和集群内的所有资源拥有完全的控制权。
|
|
@@ -3753,6 +3833,7 @@ node:
|
|
|
3753
3833
|
operatingSystem: 操作系统
|
|
3754
3834
|
osImage: 镜像
|
|
3755
3835
|
systemUUID: 系统 UUID
|
|
3836
|
+
swap: 内存交换区
|
|
3756
3837
|
pods: Pod
|
|
3757
3838
|
taints: 污点
|
|
3758
3839
|
actions:
|
|
@@ -4421,6 +4502,12 @@ projectMembers:
|
|
|
4421
4502
|
description: 控制用户对项目的访问权限
|
|
4422
4503
|
noDescription: 已创建用户 - 没有描述
|
|
4423
4504
|
searchForMember: 搜索需要向其提供项目访问权限的成员
|
|
4505
|
+
safe-admin:
|
|
4506
|
+
label: 安全管理员
|
|
4507
|
+
description: 负责用户、角色及基础配置管理,保障系统权限与安全策略的合规性。
|
|
4508
|
+
tenant:
|
|
4509
|
+
label: 租户
|
|
4510
|
+
description: 租户可管理资源组及其中的虚机、网络等资源。
|
|
4424
4511
|
owner:
|
|
4425
4512
|
label: 所有者
|
|
4426
4513
|
description: 所有者对项目和项目内的所有资源拥有完全的控制权限。
|
|
@@ -4549,6 +4636,12 @@ promptRemove:
|
|
|
4549
4636
|
promptRemoveApp:
|
|
4550
4637
|
removeCrd: "删除与此应用关联的 CRD"
|
|
4551
4638
|
|
|
4639
|
+
promptRemoveText:
|
|
4640
|
+
globalrole: "角色"
|
|
4641
|
+
globalroles: "角色"
|
|
4642
|
+
roletemplate: "角色"
|
|
4643
|
+
roletemplates: "角色"
|
|
4644
|
+
|
|
4552
4645
|
promptRestore:
|
|
4553
4646
|
title: 还原快照
|
|
4554
4647
|
name: 名称
|
|
@@ -4571,6 +4664,10 @@ promptRollback:
|
|
|
4571
4664
|
multipleWorkloadError: "一次只能回滚一个工作负载。"
|
|
4572
4665
|
singleRevisionBanner: 没有可用于回滚的修订版本。
|
|
4573
4666
|
|
|
4667
|
+
promptRedeploy:
|
|
4668
|
+
title: 重新部署 {type}?
|
|
4669
|
+
attemptingToRedeploy: "您正在尝试重新部署 {type} {names} 重新部署将重启所选工作负载,可能导致暂时性服务中断。"
|
|
4670
|
+
|
|
4574
4671
|
promptSaveAsRKETemplate:
|
|
4575
4672
|
title: 将 {cluster} 转换为新的 RKE 模板
|
|
4576
4673
|
name: 集群模板名称
|
|
@@ -4674,6 +4771,9 @@ rbac:
|
|
|
4674
4771
|
description: 无描述
|
|
4675
4772
|
assignOnlyRole: 已分配该角色
|
|
4676
4773
|
role:
|
|
4774
|
+
cluster-tenant:
|
|
4775
|
+
label: 租户
|
|
4776
|
+
description: 租户可管理资源组及其中的虚机、网络等资源。
|
|
4677
4777
|
admin:
|
|
4678
4778
|
label: 管理员
|
|
4679
4779
|
description: 管理员可以完全控制整个安装以及所有集群中的所有资源。
|
|
@@ -4683,6 +4783,12 @@ rbac:
|
|
|
4683
4783
|
user-base:
|
|
4684
4784
|
label: User-Base 用户
|
|
4685
4785
|
description: User-Base 用户只拥有登录权限。
|
|
4786
|
+
tenant:
|
|
4787
|
+
label: 租户
|
|
4788
|
+
description: 租户可管理资源组及其中的虚机、网络等资源。
|
|
4789
|
+
safe-admin:
|
|
4790
|
+
label: 安全管理员
|
|
4791
|
+
description: 负责用户、角色及基础配置管理,保障系统权限与安全策略的合规性。
|
|
4686
4792
|
clusters-create:
|
|
4687
4793
|
label: 创建集群
|
|
4688
4794
|
description: 允许用户创建集群,并成为该集群的所有者(owner)。普通用户默认拥有此权限。
|
|
@@ -5421,6 +5527,10 @@ storageClass:
|
|
|
5421
5527
|
tooltip: 默认使用主机 Cloud 集群上的默认存储类。
|
|
5422
5528
|
|
|
5423
5529
|
tableHeaders:
|
|
5530
|
+
claimedby: 占用者
|
|
5531
|
+
pod: pod
|
|
5532
|
+
ip: ip
|
|
5533
|
+
volumeattributesclass: 卷属性类
|
|
5424
5534
|
assuredConcurrencyShares: 确保并发份额
|
|
5425
5535
|
accessKey: Access Key
|
|
5426
5536
|
addressType: 地址类型
|
|
@@ -5498,7 +5608,7 @@ tableHeaders:
|
|
|
5498
5608
|
iP: IP
|
|
5499
5609
|
image: 镜像
|
|
5500
5610
|
imageSize: 大小
|
|
5501
|
-
ingressClass:
|
|
5611
|
+
ingressClass: Ingress 类
|
|
5502
5612
|
ingressDefaultBackend: 默认
|
|
5503
5613
|
ingressTarget: 目标
|
|
5504
5614
|
internalExternalIp: 外网 IP/内网 IP
|
|
@@ -5527,7 +5637,12 @@ tableHeaders:
|
|
|
5527
5637
|
missingPL: 缺少 PL
|
|
5528
5638
|
memory: 内存
|
|
5529
5639
|
monitored: 已监控
|
|
5640
|
+
request: 资源请求量
|
|
5641
|
+
limit: 资源限制
|
|
5530
5642
|
name: 名称
|
|
5643
|
+
maxunavailable: 最大不可用数
|
|
5644
|
+
minAvailable: 最小可用数
|
|
5645
|
+
alloweddisruptions: 允许中断数
|
|
5531
5646
|
nameDisplay: 显示名称
|
|
5532
5647
|
nameUnlinked: 名称
|
|
5533
5648
|
namespace: 资源组
|
|
@@ -5597,6 +5712,11 @@ tableHeaders:
|
|
|
5597
5712
|
scope: 范围
|
|
5598
5713
|
selector: 选择器
|
|
5599
5714
|
secrets: 密文
|
|
5715
|
+
secret:
|
|
5716
|
+
project-clone: 由 Project Secret 创建
|
|
5717
|
+
project-clone-tooltip: 是否由 Project Scoped Secret 在本命名空间创建
|
|
5718
|
+
project-scoped: Project Secret
|
|
5719
|
+
project-scoped-tooltip: 此 Project Scoped Secret 会在所属命名空间中生成匹配的 Secret
|
|
5600
5720
|
schedule: 调度
|
|
5601
5721
|
service: 服务
|
|
5602
5722
|
serviceAccounts: Service Account
|
|
@@ -5642,6 +5762,7 @@ tableHeaders:
|
|
|
5642
5762
|
volume: 卷
|
|
5643
5763
|
volumeMode: 卷模式
|
|
5644
5764
|
weight: 权重
|
|
5765
|
+
action: 操作
|
|
5645
5766
|
target:
|
|
5646
5767
|
router:
|
|
5647
5768
|
label: 路由
|
|
@@ -5935,7 +6056,9 @@ workload:
|
|
|
5935
6056
|
exec: 容器内运行的命令以 0 状态退出
|
|
5936
6057
|
image: 容器镜像
|
|
5937
6058
|
imagePullPolicy: 镜像拉取策略
|
|
5938
|
-
imagePullSecrets:
|
|
6059
|
+
imagePullSecrets:
|
|
6060
|
+
label: 镜像拉取密钥
|
|
6061
|
+
tooltip: 必须为 kubernetes.io/dockercfg 或 kubernetes.io/dockerconfigjson 类型
|
|
5939
6062
|
init: 初始化容器
|
|
5940
6063
|
lifecycleHook:
|
|
5941
6064
|
postStart:
|
|
@@ -5963,7 +6086,7 @@ workload:
|
|
|
5963
6086
|
label: 端口
|
|
5964
6087
|
placeholder: 例如:3000
|
|
5965
6088
|
scheme:
|
|
5966
|
-
label:
|
|
6089
|
+
label: 协议
|
|
5967
6090
|
placeholder: 例如:HTTP
|
|
5968
6091
|
httpHeaders:
|
|
5969
6092
|
title: HTTP 头部
|
|
@@ -6014,7 +6137,7 @@ workload:
|
|
|
6014
6137
|
hostPID: 使用主机 PID 资源组
|
|
6015
6138
|
podFsGroup: Pod 文件系统组
|
|
6016
6139
|
privileged:
|
|
6017
|
-
label:
|
|
6140
|
+
label: 特权模式
|
|
6018
6141
|
'false': 否
|
|
6019
6142
|
'true': "是:容器可以完全访问主机"
|
|
6020
6143
|
readOnlyRootFilesystem:
|
|
@@ -6161,7 +6284,7 @@ workload:
|
|
|
6161
6284
|
replicas: 副本数量
|
|
6162
6285
|
showTabs: '显示高级选项'
|
|
6163
6286
|
scheduling:
|
|
6164
|
-
activeDeadlineSeconds: 判定
|
|
6287
|
+
activeDeadlineSeconds: 判定Pod是否活跃的截止时间
|
|
6165
6288
|
activeDeadlineSecondsTip: 系统将 Pod 判定为失败,并终止其关联容器前的等待时长
|
|
6166
6289
|
affinity:
|
|
6167
6290
|
addNodeSelector: 添加节点选择器
|
|
@@ -6331,7 +6454,7 @@ workload:
|
|
|
6331
6454
|
pod: Pod 是你可以在 Kubernetes 中创建和管理的最小可部署计算单元。Pod 是一个或多个容器,具有共享的存储和网络资源以及运行容器的规范。
|
|
6332
6455
|
upgrading:
|
|
6333
6456
|
activeDeadlineSeconds:
|
|
6334
|
-
label: 判定
|
|
6457
|
+
label: 判定Pod是否活跃的截止时间
|
|
6335
6458
|
tip: 系统将 Pod 判定为失败,并终止其关联容器前的等待时长
|
|
6336
6459
|
concurrencyPolicy:
|
|
6337
6460
|
label: 并发
|
|
@@ -6436,6 +6559,7 @@ model:
|
|
|
6436
6559
|
label: Service Account 用户名
|
|
6437
6560
|
projectMember:
|
|
6438
6561
|
role:
|
|
6562
|
+
tenant: 租户
|
|
6439
6563
|
member: 成员
|
|
6440
6564
|
owner: 所有者
|
|
6441
6565
|
readonly: 只读用户
|
|
@@ -6482,7 +6606,7 @@ typeDescription:
|
|
|
6482
6606
|
kubevirt.io.virtualmachine: 云虚拟机是一种安全可靠、弹性可伸缩的云计算服务器,助您降低 IT 成本,提升运维效率,使您更专注于核心业务创新。
|
|
6483
6607
|
harvesterhci.io.volume: 虚拟磁盘具有高性能和低时延的特点,支持随机读写,可以像使用物理硬盘一样,在虚拟机上进行格式化并建立文件系统来使用块存储。
|
|
6484
6608
|
harvesterhci.io.volumesnapshot: 虚拟磁盘快照功能通过捕获虚拟磁盘在特定时间点的状态,生成增量副本,支持快速回滚磁盘状态,为测试验证、容灾恢复提供高效解决方案
|
|
6485
|
-
harvesterhci.io.virtualmachinebackup:
|
|
6609
|
+
harvesterhci.io.virtualmachinebackup: 虚拟机备份恢复功能通过创建包含磁盘数据、配置信息的完整副本,支持跨环境恢复及长期数据保护,为系统故障或灾难提供可靠容灾方案。
|
|
6486
6610
|
harvesterhci.io.schedulevmbackup: 虚拟机备份策略功能通过创建定时任务,对虚拟机进行完整备份或增量快照,为用户提供自动化的数据备份和容灾方案。
|
|
6487
6611
|
harvesterhci.io.vmsnapshot: 虚拟机快照功能通过捕获特定时间点的系统状态,支持快速恢复虚拟机状态,为数据备份与系统调试提供灵活解决方案。
|
|
6488
6612
|
harvesterhci.io.keypair: SSH密钥对是一种安全便捷的登录认证方式,您可以实现免密码远程登录,并在无需人工干预的情况下进行安全的自动化操作,实现服务器配置和应用程序部署的自动化。
|
|
@@ -6509,7 +6633,38 @@ typeDescription:
|
|
|
6509
6633
|
management.cattle.io.setting: 统一配置平台基础选项与全局设置,支持CA证书、密码规则、域名、Token时效等核心配置。
|
|
6510
6634
|
management.cattle.io.user: 用于管理用户账号,支持创建、维护用户信息,可设置用户权限、管理密码等,保障系统资源仅由授权用户访问,提升系统安全性。
|
|
6511
6635
|
harvesterhci.io.management.cluster: 提供虚拟化集群的实时健康状态监控、版本号管理及资源负载管理,支持批量导入/删除集群、配置调优与权限分级功能,实现高效运维管控。
|
|
6636
|
+
projectsnamespaces: 项目/资源组是用于在集群内实现资源隔离和多租户管理的基本单元。通过项目可以对一组命名空间及相关资源进行统一的权限、配额和策略管理。
|
|
6637
|
+
members: 集群和项目成员管理页面用于配置用户和用户组对资源的访问权限。通过角色绑定(RBAC)来控制成员在集群或项目范围内的操作权限,实现安全的协同管理。
|
|
6638
|
+
event: 事件记录了 Kubernetes 资源(如 Pod、节点等)的状态变化、错误信息和生命周期事件。通过查看事件可以快速诊断应用部署和运行中的问题。
|
|
6639
|
+
autoscaling.horizontalpodautoscaler: HorizontalPodAutoscaler (HPA) 用于根据观察到的 CPU 利用率或其他自定义指标自动调整工作负载的 Pod 副本数量,实现应用的水平自动扩缩容。
|
|
6640
|
+
networking.k8s.io.ingress: Ingress 用于管理对集群内服务的外部访问,提供 HTTP 和 HTTPS 路由规则。通过 Ingress 可以配置负载均衡、SSL 终止和基于名称的虚拟主机等能力。
|
|
6641
|
+
service: Service 用于将一组 Pod 暴露为网络服务,提供稳定的 IP 地址和 DNS 名称,并实现负载均衡。Service 确保您的应用程序在网络中可被发现和可靠访问。
|
|
6642
|
+
storage.k8s.io.storageclass: 存储池页面用于集中管理和配置集群中的持久化存储资源。您可以在此查看存储提供商、创建存储类(StorageClass)并为有状态应用动态提供持久卷(Persistent Volume)。
|
|
6643
|
+
persistentvolume: PersistentVolume (PV) 是集群中的一块持久化存储资源,由管理员预先配置或通过存储类动态供应。PV 为需要持久化数据的应用提供独立于 Pod 生命周期的存储空间。
|
|
6644
|
+
persistentvolumeclaim: 虚拟磁盘是提供给虚拟机使用的持久化存储设备,为虚拟机操作系统和应用数据提供独立的、可扩展的存储空间。虚拟磁盘的生命周期可以与虚拟机解耦,实现数据的持久化保存。
|
|
6645
|
+
configmap: ConfigMap 用于将非机密的配置数据以键值对形式保存,并注入到 Pod 中作为环境变量、命令行参数或配置文件使用。实现应用配置与容器镜像的分离,便于配置管理。
|
|
6646
|
+
secret: Secret 用于存储和管理敏感信息,如密码、OAuth 令牌和 SSH 密钥等。Secret 以加密方式保存数据,并可以安全地挂载到 Pod 中供容器使用,避免敏感信息硬编码。
|
|
6647
|
+
projectsecret: Secret 用于存储和管理敏感信息,如密码、OAuth 令牌和 SSH 密钥等。Secret 以加密方式保存数据,并可以安全地挂载到 Pod 中供容器使用,避免敏感信息硬编码。
|
|
6648
|
+
networking.k8s.io.networkpolicy: 网络策略用于控制 Pod 组之间的网络通信规则,实现 Kubernetes 集群内的网络隔离。通过定义入站和出站规则,可以精确控制 Pod 之间的网络访问权限。
|
|
6649
|
+
limitrange: 限制范围用于在命名空间内限制资源的使用量,包括 Pod 的计算资源(CPU、内存)请求和限制、存储卷大小以及可创建的资源对象数量,防止资源过度消耗。
|
|
6650
|
+
resourcequota: 资源配额用于限制命名空间可以使用的总体资源总量,包括计算资源、存储资源以及可创建的对象数量。它确保命名空间内的资源使用不会超过分配的配额限制。
|
|
6651
|
+
policy.poddisruptionbudget: Pod 中断预算用于限制自愿中断期间同时终止的 Pod 副本数量,确保应用的高可用性。它可以防止在节点维护或集群缩容时导致的应用服务中断。
|
|
6652
|
+
apps.daemonset: DaemonSet 在每个符合条件的节点上仅运行一个 Pod。当新节点添加到集群时,DaemonSet 会自动部署新节点。推荐用于全系统或可垂直扩展,且每个节点永远不需要超过一个 pod 的工作负载。
|
|
6653
|
+
apps.deployment: Deployment 运行分布在符合条件的节点中的可扩展数量的 Pod 副本。变更会逐步推出,并可回滚到之前的版本。推荐用于无状态和水平可扩展的工作负载。
|
|
6654
|
+
apps.statefulset: StatefulSet 管理有状态的应用,并保证创建的 Pod 的顺序和唯一性。推荐用于具有持久化存储或严格身份、法定人数或升级顺序要求的工作负载。
|
|
6655
|
+
batch.cronjob: CronJob 创建 Job,然后按照重复调度来运行 Pod。该调度以标准的 Unix cron 格式表示,并使用 Kubernetes Control Plane 的时区(通常是 UTC)。
|
|
6656
|
+
batch.job: Job 创建一个或多个 Pod。 Job 通过运行 Pod 直到其成功退出,以可靠执行一次性任务。失败的 Pod 会自动被替换,直到达到指定的完成运行次数。Job 还可以并行运行多个 Pod,或作为批处理工作队列。
|
|
6657
|
+
pod: Pod 是你可以在 Kubernetes 中创建和管理的最小可部署计算单元。Pod 是一个或多个容器,具有共享的存储和网络资源以及运行容器的规范。
|
|
6658
|
+
harvesterhci.io.logging.clusterflow: 集群流用于展示集群内的事件与操作日志,帮助您实时监控集群状态、追踪资源变更,提升问题排查与运维效率。
|
|
6659
|
+
harvesterhci.io.logging.clusteroutput: 集群输出用于集中展示集群运行过程中的日志与输出信息,帮助您分析系统行为、定位问题并优化集群性能。
|
|
6660
|
+
harvesterhci.io.logging.flow: 流用于实时展示系统内各类事件与操作记录,帮助您监控资源变化、追踪操作过程,提升系统可观测性与运维效率。
|
|
6661
|
+
harvesterhci.io.logging.output: 输出用于查看系统或服务运行产生的日志与结果信息,帮助您及时了解运行状态并进行故障排查。
|
|
6512
6662
|
typeLabel:
|
|
6663
|
+
management.cattle.io.project: |-
|
|
6664
|
+
{count, plural,
|
|
6665
|
+
one { 项目 }
|
|
6666
|
+
other { 项目 }
|
|
6667
|
+
}
|
|
6513
6668
|
management.cattle.io.token: |-
|
|
6514
6669
|
{count, plural,
|
|
6515
6670
|
one { API 密钥 }
|
|
@@ -6753,8 +6908,8 @@ typeLabel:
|
|
|
6753
6908
|
}
|
|
6754
6909
|
autoscaling.horizontalpodautoscaler: |-
|
|
6755
6910
|
{count, plural,
|
|
6756
|
-
one {
|
|
6757
|
-
other {
|
|
6911
|
+
one { HPA }
|
|
6912
|
+
other { HPA }
|
|
6758
6913
|
}
|
|
6759
6914
|
networking.k8s.io.ingress: |-
|
|
6760
6915
|
{count, plural,
|
|
@@ -6861,6 +7016,26 @@ typeLabel:
|
|
|
6861
7016
|
one { 工作负载 }
|
|
6862
7017
|
other { 工作负载 }
|
|
6863
7018
|
}
|
|
7019
|
+
cluster : |-
|
|
7020
|
+
{count, plural,
|
|
7021
|
+
one { 集群 }
|
|
7022
|
+
other { 集群 }
|
|
7023
|
+
}
|
|
7024
|
+
servicediscovery : |-
|
|
7025
|
+
{count, plural,
|
|
7026
|
+
one { 服务发现 }
|
|
7027
|
+
other { 服务发现 }
|
|
7028
|
+
}
|
|
7029
|
+
storage : |-
|
|
7030
|
+
{count, plural,
|
|
7031
|
+
one { 存储 }
|
|
7032
|
+
other { 存储 }
|
|
7033
|
+
}
|
|
7034
|
+
policy : |-
|
|
7035
|
+
{count, plural,
|
|
7036
|
+
one { 策略 }
|
|
7037
|
+
other { 策略 }
|
|
7038
|
+
}
|
|
6864
7039
|
harvesterhci.io.management.cluster: |-
|
|
6865
7040
|
{count, plural,
|
|
6866
7041
|
one { Cloud 集群 }
|
|
@@ -7931,4 +8106,14 @@ component:
|
|
|
7931
8106
|
title: 标签
|
|
7932
8107
|
keyValue:
|
|
7933
8108
|
noRows: 此资源上没有配置{propertyName}.
|
|
7934
|
-
showConfiguration: 显示配置
|
|
8109
|
+
showConfiguration: 显示配置
|
|
8110
|
+
|
|
8111
|
+
|
|
8112
|
+
|
|
8113
|
+
customConversion:
|
|
8114
|
+
Tenant: 租户
|
|
8115
|
+
Cluster Owner: 所有者
|
|
8116
|
+
Project Owner: 项目负责人
|
|
8117
|
+
|
|
8118
|
+
|
|
8119
|
+
|
|
@@ -323,12 +323,12 @@ export default {
|
|
|
323
323
|
}
|
|
324
324
|
|
|
325
325
|
&.as-text-area .codemirror-container{
|
|
326
|
-
min-height:
|
|
326
|
+
min-height: 32px !important;
|
|
327
327
|
position: relative;
|
|
328
328
|
display: block;
|
|
329
329
|
box-sizing: border-box;
|
|
330
330
|
width: 100%;
|
|
331
|
-
padding: 10px;
|
|
331
|
+
padding: 8px 10px 0 10px !important;
|
|
332
332
|
background-color: var(--input-bg);
|
|
333
333
|
border-radius: var(--border-radius);
|
|
334
334
|
border: solid var(--border-width) var(--input-border);
|
|
@@ -418,7 +418,7 @@ export default {
|
|
|
418
418
|
|
|
419
419
|
.code-mirror {
|
|
420
420
|
position: relative;
|
|
421
|
-
margin-bottom:
|
|
421
|
+
margin-bottom: 0 !important;
|
|
422
422
|
|
|
423
423
|
.escape-text {
|
|
424
424
|
font-size: 12px;
|
|
@@ -498,5 +498,7 @@ export default {
|
|
|
498
498
|
}
|
|
499
499
|
}
|
|
500
500
|
}
|
|
501
|
-
|
|
501
|
+
.CodeMirror-scroll {
|
|
502
|
+
min-height: 350px;
|
|
503
|
+
}
|
|
502
504
|
</style>
|
|
@@ -135,7 +135,7 @@ export default {
|
|
|
135
135
|
:amountTemplateValues="amountTemplateValues"
|
|
136
136
|
:formattedPercentage="formattedPercentage"
|
|
137
137
|
>
|
|
138
|
-
<p>{{ formattedPercentage + '(共' + amountTemplateValues.total + ' ' + amountTemplateValues.unit + ',' + reserveText + ' ' + amountTemplateValues.used + ' ' + amountTemplateValues.unit + ')' }}</p>
|
|
138
|
+
<p>{{ formattedPercentage + '(共' + (amountTemplateValues.total || 0) + ' ' + (amountTemplateValues.unit || 'GiB') + ',' + (reserveText || '') + ' ' + (amountTemplateValues.used || 0) + ' ' + (amountTemplateValues.unit || 'GiB') + ')' }}</p>
|
|
139
139
|
</slot>
|
|
140
140
|
</div>
|
|
141
141
|
</template>
|
|
@@ -177,7 +177,7 @@ export default {
|
|
|
177
177
|
</div>
|
|
178
178
|
</div>
|
|
179
179
|
|
|
180
|
-
<div class="row
|
|
180
|
+
<div class="row">
|
|
181
181
|
<span class="col span-6">
|
|
182
182
|
<UnitInput
|
|
183
183
|
v-model:value="requestsCpu"
|
|
@@ -206,7 +206,7 @@ export default {
|
|
|
206
206
|
</span>
|
|
207
207
|
</div>
|
|
208
208
|
|
|
209
|
-
<div class="row
|
|
209
|
+
<div class="row">
|
|
210
210
|
<span class="col span-6">
|
|
211
211
|
<UnitInput
|
|
212
212
|
v-model:value="limitsCpu"
|
|
@@ -623,13 +623,14 @@ export default {
|
|
|
623
623
|
/>
|
|
624
624
|
<span v-else>{{ subtype.label }}</span>
|
|
625
625
|
</h5>
|
|
626
|
-
|
|
626
|
+
<!-- 禅道 3541 隐藏 更多信息 -->
|
|
627
|
+
<!-- <a
|
|
627
628
|
v-if="subtype.docLink"
|
|
628
629
|
:href="subtype.docLink"
|
|
629
630
|
target="_blank"
|
|
630
631
|
rel="noopener nofollow"
|
|
631
632
|
class="flex-right"
|
|
632
|
-
>{{ t('generic.moreInfo') }} <i class="icon icon-external-link" /></a>
|
|
633
|
+
>{{ t('generic.moreInfo') }} <i class="icon icon-external-link" /></a> -->
|
|
633
634
|
</div>
|
|
634
635
|
<hr
|
|
635
636
|
v-if="subtype.description"
|
|
@@ -16,12 +16,6 @@ const store = useStore();
|
|
|
16
16
|
const i18n = useI18n(store);
|
|
17
17
|
</script>
|
|
18
18
|
<template>
|
|
19
|
-
<!-- <Tab
|
|
20
|
-
class="config-tab"
|
|
21
|
-
name="config-tab"
|
|
22
|
-
:label="i18n.t('component.drawer.resourceDetailDrawer.configTab.title')"
|
|
23
|
-
>
|
|
24
|
-
</Tab> -->
|
|
25
19
|
<div class="container">
|
|
26
20
|
<component
|
|
27
21
|
:is="props.component"
|
|
@@ -41,10 +35,19 @@ const i18n = useI18n(store);
|
|
|
41
35
|
.container {
|
|
42
36
|
background-color: var(--body-bg);
|
|
43
37
|
border-radius: var(--border-radius-md);
|
|
44
|
-
padding:
|
|
38
|
+
padding: 20px;
|
|
45
39
|
max-width: 100%;
|
|
46
40
|
width: 100%;
|
|
47
41
|
position: relative;
|
|
42
|
+
// Handle the loading indicator
|
|
43
|
+
:deep() .overlay-content-mode {
|
|
44
|
+
left: 0;
|
|
45
|
+
top: 0;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
:deep() .cru-resource-footer {
|
|
49
|
+
display: none;
|
|
50
|
+
}
|
|
48
51
|
}
|
|
49
52
|
.config-tab {
|
|
50
53
|
|
|
@@ -38,7 +38,7 @@ const yamlComponent: any = useTemplateRef('yaml');
|
|
|
38
38
|
:deep() .codemirror-container {
|
|
39
39
|
background-color: var(--body-bg);
|
|
40
40
|
border-radius: var(--border-radius-md);
|
|
41
|
-
padding:
|
|
41
|
+
padding: 20px;
|
|
42
42
|
|
|
43
43
|
.CodeMirror, .CodeMirror-gutter {
|
|
44
44
|
background-color: var(--body-bg);
|
|
@@ -3,7 +3,7 @@ import Drawer from '@shell/components/Drawer/Chrome.vue';
|
|
|
3
3
|
import { useI18n } from '@shell/composables/useI18n';
|
|
4
4
|
import { useStore } from 'vuex';
|
|
5
5
|
import Tabbed from '@shell/components/Tabbed/index.vue';
|
|
6
|
-
import YamlTab, { Props as YamlProps } from '@shell/components/Drawer/ResourceDetailDrawer/YamlTab.vue';
|
|
6
|
+
// import YamlTab, { Props as YamlProps } from '@shell/components/Drawer/ResourceDetailDrawer/YamlTab.vue';
|
|
7
7
|
import { useDefaultConfigTabProps, useDefaultYamlTabProps } from '@shell/components/Drawer/ResourceDetailDrawer/composables';
|
|
8
8
|
import ConfigTab from '@shell/components/Drawer/ResourceDetailDrawer/ConfigTab.vue';
|
|
9
9
|
import { computed, ref } from 'vue';
|
|
@@ -27,6 +27,8 @@ const i18n = useI18n(store);
|
|
|
27
27
|
const yamlTabProps = ref<YamlProps | null>(null);
|
|
28
28
|
const configTabProps = useDefaultConfigTabProps(props.resource);
|
|
29
29
|
|
|
30
|
+
console.log(configTabProps, ' configTabProps---------------------------------2');
|
|
31
|
+
|
|
30
32
|
useDefaultYamlTabProps(props.resource).then((props) => {
|
|
31
33
|
yamlTabProps.value = props;
|
|
32
34
|
});
|
|
@@ -116,7 +118,6 @@ const canEdit = computed(() => {
|
|
|
116
118
|
border: none;
|
|
117
119
|
border-top: 1px solid var(--border);
|
|
118
120
|
padding: 0;
|
|
119
|
-
padding-top: 24px;
|
|
120
121
|
}
|
|
121
122
|
}
|
|
122
123
|
}
|