dashboard-shell-shell 3.0.5-test.9 → 3.0.5-tsh.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/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 +2 -2
- package/assets/styles/fonts/_icons.scss +3 -2
- package/assets/styles/global/_button.scss +1 -1
- 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 +60 -0
- package/assets/translations/zh-hans.yaml +164 -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 +22 -19
- package/components/Drawer/ResourceDetailDrawer/index.vue +3 -3
- package/components/ExplorerMembers.vue +10 -1
- package/components/GlobalRoleBindings.vue +52 -112
- package/components/PodSecurityAdmission.vue +1 -1
- package/components/PromptRemove.vue +23 -1
- package/components/RelatedResources.vue +3 -0
- package/components/Resource/Detail/TitleBar/composables.ts +16 -1
- package/components/Resource/Detail/TitleBar/index.vue +37 -24
- 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 +11 -15
- 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 +54 -18
- package/components/Tabbed/index.vue +6 -1
- package/components/auth/Principal.vue +16 -8
- package/components/auth/RoleDetailEdit.vue +11 -7
- package/components/breadcrumb/index.vue +13 -210
- 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 +31 -28
- package/components/form/Members/MembershipEditor.vue +3 -3
- 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 +28 -25
- 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 +14 -19
- 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/monitoring.coreos.com.alertmanagerconfig/receiverConfig.vue +32 -8
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/dingding.vue +32 -0
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/message.vue +52 -0
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/snmp.vue +45 -0
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/work.vue +31 -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 +93 -58
- package/pages/auth/login.vue +1 -1
- package/pages/auth/setup.vue +36 -17
- 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/plugins/dashboard-store/actions.js +1 -1
- 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 +0 -2
- package/utils/error.js +23 -3
- package/utils/errorTranslate.json +377 -8
- package/utils/errorTranslateNew.json +39 -0
|
@@ -34,8 +34,8 @@ export default {
|
|
|
34
34
|
|
|
35
35
|
<template>
|
|
36
36
|
<div>
|
|
37
|
-
<div class="row
|
|
38
|
-
<div class="col
|
|
37
|
+
<div class="row">
|
|
38
|
+
<div class="col mr-10">
|
|
39
39
|
<LabeledInput
|
|
40
40
|
v-model:value="value.name"
|
|
41
41
|
:required="true"
|
|
@@ -43,7 +43,7 @@ export default {
|
|
|
43
43
|
:label="t('workload.storage.volumeName')"
|
|
44
44
|
/>
|
|
45
45
|
</div>
|
|
46
|
-
<div class="col
|
|
46
|
+
<div class="col" style="display: flex;align-items: center;">
|
|
47
47
|
<Checkbox
|
|
48
48
|
v-model:value="value.azureDisk.readOnly"
|
|
49
49
|
:mode="mode"
|
|
@@ -51,8 +51,8 @@ export default {
|
|
|
51
51
|
/>
|
|
52
52
|
</div>
|
|
53
53
|
</div>
|
|
54
|
-
<div class="row
|
|
55
|
-
<div class="col
|
|
54
|
+
<div class="row">
|
|
55
|
+
<div class="col">
|
|
56
56
|
<LabeledInput
|
|
57
57
|
v-model:value="value.azureDisk.diskName"
|
|
58
58
|
:mode="mode"
|
|
@@ -60,7 +60,9 @@ export default {
|
|
|
60
60
|
:label="t('workload.storage.csi.diskName')"
|
|
61
61
|
/>
|
|
62
62
|
</div>
|
|
63
|
-
|
|
63
|
+
</div>
|
|
64
|
+
<div class="row">
|
|
65
|
+
<div class="col">
|
|
64
66
|
<LabeledInput
|
|
65
67
|
v-model:value.number="value.azureDisk.diskURI"
|
|
66
68
|
:mode="mode"
|
|
@@ -69,8 +71,8 @@ export default {
|
|
|
69
71
|
/>
|
|
70
72
|
</div>
|
|
71
73
|
</div>
|
|
72
|
-
<div class="row
|
|
73
|
-
<div class="col
|
|
74
|
+
<div class="row">
|
|
75
|
+
<div class="col">
|
|
74
76
|
<RadioGroup
|
|
75
77
|
v-model:value="value.azureDisk.kind"
|
|
76
78
|
:mode="mode"
|
|
@@ -80,7 +82,9 @@ export default {
|
|
|
80
82
|
:labels="[t('workload.storage.csi.kind.options.dedicated'), t('workload.storage.csi.kind.options.managed'), t('workload.storage.csi.kind.options.shared')]"
|
|
81
83
|
/>
|
|
82
84
|
</div>
|
|
83
|
-
|
|
85
|
+
</div>
|
|
86
|
+
<div class="row">
|
|
87
|
+
<div class="col">
|
|
84
88
|
<RadioGroup
|
|
85
89
|
v-model:value="value.azureDisk.cachingMode"
|
|
86
90
|
name="cachingMode"
|
|
@@ -92,7 +96,7 @@ export default {
|
|
|
92
96
|
</div>
|
|
93
97
|
</div>
|
|
94
98
|
<div class="row">
|
|
95
|
-
<div class="col
|
|
99
|
+
<div class="col">
|
|
96
100
|
<LabeledInput
|
|
97
101
|
v-model:value="value.azureDisk.fsType"
|
|
98
102
|
:mode="mode"
|
|
@@ -26,8 +26,8 @@ export default {
|
|
|
26
26
|
|
|
27
27
|
<template>
|
|
28
28
|
<div>
|
|
29
|
-
<div class="row
|
|
30
|
-
<div class="col
|
|
29
|
+
<div class="row">
|
|
30
|
+
<div class="col mr-10">
|
|
31
31
|
<LabeledInput
|
|
32
32
|
v-model:value="value.name"
|
|
33
33
|
:required="true"
|
|
@@ -35,7 +35,7 @@ export default {
|
|
|
35
35
|
:label="t('workload.storage.volumeName')"
|
|
36
36
|
/>
|
|
37
37
|
</div>
|
|
38
|
-
<div class="col
|
|
38
|
+
<div class="col" style="display: flex;align-items: center;">
|
|
39
39
|
<Checkbox
|
|
40
40
|
v-model:value="value.azureFile.readOnly"
|
|
41
41
|
:mode="mode"
|
|
@@ -43,8 +43,8 @@ export default {
|
|
|
43
43
|
/>
|
|
44
44
|
</div>
|
|
45
45
|
</div>
|
|
46
|
-
<div class="row
|
|
47
|
-
<div class="col
|
|
46
|
+
<div class="row">
|
|
47
|
+
<div class="col">
|
|
48
48
|
<LabeledInput
|
|
49
49
|
v-model:value="value.azureFile.shareName"
|
|
50
50
|
:mode="mode"
|
|
@@ -52,7 +52,9 @@ export default {
|
|
|
52
52
|
:label="t('workload.storage.csi.shareName')"
|
|
53
53
|
/>
|
|
54
54
|
</div>
|
|
55
|
-
|
|
55
|
+
</div>
|
|
56
|
+
<div class="row">
|
|
57
|
+
<div class="col">
|
|
56
58
|
<LabeledInput
|
|
57
59
|
v-model:value="value.azureFile.secretName"
|
|
58
60
|
:mode="mode"
|
|
@@ -62,7 +64,7 @@ export default {
|
|
|
62
64
|
</div>
|
|
63
65
|
</div>
|
|
64
66
|
<div class="row">
|
|
65
|
-
<div class="col
|
|
67
|
+
<div class="col">
|
|
66
68
|
<LabeledInput
|
|
67
69
|
v-model:value="value.azureFile.fsType"
|
|
68
70
|
:mode="mode"
|
|
@@ -77,8 +77,8 @@ export default {
|
|
|
77
77
|
<template>
|
|
78
78
|
<div>
|
|
79
79
|
<div>
|
|
80
|
-
<div class="row
|
|
81
|
-
<div class="col
|
|
80
|
+
<div class="row">
|
|
81
|
+
<div class="col mr-10">
|
|
82
82
|
<LabeledInput
|
|
83
83
|
v-model:value="value.name"
|
|
84
84
|
:required="true"
|
|
@@ -86,7 +86,7 @@ export default {
|
|
|
86
86
|
:label="t('workload.storage.volumeName')"
|
|
87
87
|
/>
|
|
88
88
|
</div>
|
|
89
|
-
<div class="col
|
|
89
|
+
<div class="col" style="display: flex;align-items: center;">
|
|
90
90
|
<Checkbox
|
|
91
91
|
v-model:value="value.csi.readOnly"
|
|
92
92
|
:mode="mode"
|
|
@@ -94,8 +94,8 @@ export default {
|
|
|
94
94
|
/>
|
|
95
95
|
</div>
|
|
96
96
|
</div>
|
|
97
|
-
<div class="row
|
|
98
|
-
<div class="col
|
|
97
|
+
<div class="row">
|
|
98
|
+
<div class="col">
|
|
99
99
|
<LabeledSelect
|
|
100
100
|
v-model:value="value.csi.driver"
|
|
101
101
|
data-testid="workload-storage-driver"
|
|
@@ -107,10 +107,7 @@ export default {
|
|
|
107
107
|
/>
|
|
108
108
|
</div>
|
|
109
109
|
</div>
|
|
110
|
-
<div
|
|
111
|
-
v-if="driverComponent"
|
|
112
|
-
class="mb-10"
|
|
113
|
-
>
|
|
110
|
+
<div v-if="driverComponent">
|
|
114
111
|
<component
|
|
115
112
|
:is="driverComponent"
|
|
116
113
|
v-model:value="value.csi.volumeAttributes"
|
|
@@ -52,8 +52,8 @@ export default {
|
|
|
52
52
|
</script>
|
|
53
53
|
<template>
|
|
54
54
|
<div>
|
|
55
|
-
<div class="row
|
|
56
|
-
<div class="col
|
|
55
|
+
<div class="row">
|
|
56
|
+
<div class="col">
|
|
57
57
|
<LabeledInput
|
|
58
58
|
v-model:value="value.name"
|
|
59
59
|
:required="true"
|
|
@@ -61,7 +61,9 @@ export default {
|
|
|
61
61
|
:label="t('workload.storage.volumeName')"
|
|
62
62
|
/>
|
|
63
63
|
</div>
|
|
64
|
-
|
|
64
|
+
</div>
|
|
65
|
+
<div class="row">
|
|
66
|
+
<div class="col">
|
|
65
67
|
<LabeledSelect
|
|
66
68
|
v-model:value="medium"
|
|
67
69
|
:mode="mode"
|
|
@@ -71,8 +73,8 @@ export default {
|
|
|
71
73
|
/>
|
|
72
74
|
</div>
|
|
73
75
|
</div>
|
|
74
|
-
<div class="row
|
|
75
|
-
<div class="col
|
|
76
|
+
<div class="row">
|
|
77
|
+
<div class="col">
|
|
76
78
|
<UnitInput
|
|
77
79
|
v-model:value="value.emptyDir.sizeLimit"
|
|
78
80
|
:mode="mode"
|
|
@@ -26,8 +26,8 @@ export default {
|
|
|
26
26
|
|
|
27
27
|
<template>
|
|
28
28
|
<div>
|
|
29
|
-
<div class="row
|
|
30
|
-
<div class="col
|
|
29
|
+
<div class="row">
|
|
30
|
+
<div class="col mr-10">
|
|
31
31
|
<LabeledInput
|
|
32
32
|
v-model:value="value.name"
|
|
33
33
|
:required="true"
|
|
@@ -35,7 +35,7 @@ export default {
|
|
|
35
35
|
:label="t('workload.storage.volumeName')"
|
|
36
36
|
/>
|
|
37
37
|
</div>
|
|
38
|
-
<div class="col
|
|
38
|
+
<div class="col" style="display: flex;align-items: center;">
|
|
39
39
|
<Checkbox
|
|
40
40
|
v-model:value="value.gcePersistentDisk.readOnly"
|
|
41
41
|
:mode="mode"
|
|
@@ -43,8 +43,8 @@ export default {
|
|
|
43
43
|
/>
|
|
44
44
|
</div>
|
|
45
45
|
</div>
|
|
46
|
-
<div class="row
|
|
47
|
-
<div class="col
|
|
46
|
+
<div class="row">
|
|
47
|
+
<div class="col">
|
|
48
48
|
<LabeledInput
|
|
49
49
|
v-model:value="value.gcePersistentDisk.pdName"
|
|
50
50
|
:mode="mode"
|
|
@@ -52,7 +52,9 @@ export default {
|
|
|
52
52
|
:required="true"
|
|
53
53
|
/>
|
|
54
54
|
</div>
|
|
55
|
-
|
|
55
|
+
</div>
|
|
56
|
+
<div class="row">
|
|
57
|
+
<div class="col">
|
|
56
58
|
<LabeledInput
|
|
57
59
|
v-model:value.number="value.gcePersistentDisk.partition"
|
|
58
60
|
:mode="mode"
|
|
@@ -61,7 +63,7 @@ export default {
|
|
|
61
63
|
</div>
|
|
62
64
|
</div>
|
|
63
65
|
<div class="row">
|
|
64
|
-
<div class="col
|
|
66
|
+
<div class="col">
|
|
65
67
|
<LabeledInput
|
|
66
68
|
v-model:value="value.gcePersistentDisk.fsType"
|
|
67
69
|
:mode="mode"
|
|
@@ -82,8 +82,8 @@ export default {
|
|
|
82
82
|
<template>
|
|
83
83
|
<div>
|
|
84
84
|
<div>
|
|
85
|
-
<div class="row
|
|
86
|
-
<div class="col
|
|
85
|
+
<div class="row">
|
|
86
|
+
<div class="col">
|
|
87
87
|
<LabeledInput
|
|
88
88
|
v-model:value="value.name"
|
|
89
89
|
:required="true"
|
|
@@ -92,8 +92,8 @@ export default {
|
|
|
92
92
|
/>
|
|
93
93
|
</div>
|
|
94
94
|
</div>
|
|
95
|
-
<div class="row
|
|
96
|
-
<div class="col
|
|
95
|
+
<div class="row">
|
|
96
|
+
<div class="col">
|
|
97
97
|
<LabeledInput
|
|
98
98
|
v-model:value="value.hostPath.path"
|
|
99
99
|
:required="true"
|
|
@@ -101,7 +101,9 @@ export default {
|
|
|
101
101
|
:label="t('workload.storage.nodePath')"
|
|
102
102
|
/>
|
|
103
103
|
</div>
|
|
104
|
-
|
|
104
|
+
</div>
|
|
105
|
+
<div class="row">
|
|
106
|
+
<div class="col">
|
|
105
107
|
<LabeledSelect
|
|
106
108
|
v-model:value="value.hostPath.type"
|
|
107
109
|
:mode="mode"
|
|
@@ -38,8 +38,8 @@ export default {
|
|
|
38
38
|
<template>
|
|
39
39
|
<div>
|
|
40
40
|
<div>
|
|
41
|
-
<div class="row
|
|
42
|
-
<div class="col
|
|
41
|
+
<div class="row">
|
|
42
|
+
<div class="col mr-10">
|
|
43
43
|
<LabeledInput
|
|
44
44
|
v-model:value="value.name"
|
|
45
45
|
:required="true"
|
|
@@ -47,7 +47,7 @@ export default {
|
|
|
47
47
|
:label="t('workload.storage.volumeName')"
|
|
48
48
|
/>
|
|
49
49
|
</div>
|
|
50
|
-
<div class="col
|
|
50
|
+
<div class="col" style="display: flex;align-items: center;">
|
|
51
51
|
<Checkbox
|
|
52
52
|
v-model:value="value.nfs.readOnly"
|
|
53
53
|
:mode="mode"
|
|
@@ -55,8 +55,8 @@ export default {
|
|
|
55
55
|
/>
|
|
56
56
|
</div>
|
|
57
57
|
</div>
|
|
58
|
-
<div class="row
|
|
59
|
-
<div class="col
|
|
58
|
+
<div class="row">
|
|
59
|
+
<div class="col">
|
|
60
60
|
<LabeledInput
|
|
61
61
|
v-model:value="value.nfs.path"
|
|
62
62
|
:required="true"
|
|
@@ -64,7 +64,9 @@ export default {
|
|
|
64
64
|
:label="t('workload.storage.path')"
|
|
65
65
|
/>
|
|
66
66
|
</div>
|
|
67
|
-
|
|
67
|
+
</div>
|
|
68
|
+
<div class="row">
|
|
69
|
+
<div class="col">
|
|
68
70
|
<LabeledInput
|
|
69
71
|
v-model:value="value.nfs.server"
|
|
70
72
|
:required="true"
|
|
@@ -121,8 +121,8 @@ export default {
|
|
|
121
121
|
@removePvcForm="removePvcForm"
|
|
122
122
|
/>
|
|
123
123
|
</div>
|
|
124
|
-
<div class="row
|
|
125
|
-
<div class="col
|
|
124
|
+
<div class="row">
|
|
125
|
+
<div class="col mr-10">
|
|
126
126
|
<LabeledInput
|
|
127
127
|
v-model:value="value.name"
|
|
128
128
|
:required="true"
|
|
@@ -130,7 +130,16 @@ export default {
|
|
|
130
130
|
:label="t('workload.storage.volumeName')"
|
|
131
131
|
/>
|
|
132
132
|
</div>
|
|
133
|
-
<div class="col
|
|
133
|
+
<div class="col" style="display: flex;align-items: center;">
|
|
134
|
+
<Checkbox
|
|
135
|
+
v-model:value="value.persistentVolumeClaim.readOnly"
|
|
136
|
+
:mode="mode"
|
|
137
|
+
:label="t('workload.storage.readOnly')"
|
|
138
|
+
/>
|
|
139
|
+
</div>
|
|
140
|
+
</div>
|
|
141
|
+
<div class="row">
|
|
142
|
+
<div class="col">
|
|
134
143
|
<LabeledSelect
|
|
135
144
|
v-if="!createNew"
|
|
136
145
|
v-model:value="value.persistentVolumeClaim.claimName"
|
|
@@ -142,13 +151,6 @@ export default {
|
|
|
142
151
|
/>
|
|
143
152
|
</div>
|
|
144
153
|
</div>
|
|
145
|
-
<div class="row">
|
|
146
|
-
<Checkbox
|
|
147
|
-
v-model:value="value.persistentVolumeClaim.readOnly"
|
|
148
|
-
:mode="mode"
|
|
149
|
-
:label="t('workload.storage.readOnly')"
|
|
150
|
-
/>
|
|
151
|
-
</div>
|
|
152
154
|
</div>
|
|
153
155
|
</div>
|
|
154
156
|
</template>
|
|
@@ -156,8 +156,8 @@ export default {
|
|
|
156
156
|
|
|
157
157
|
<template>
|
|
158
158
|
<div>
|
|
159
|
-
<div class="row
|
|
160
|
-
<div class="col
|
|
159
|
+
<div class="row">
|
|
160
|
+
<div class="col">
|
|
161
161
|
<LabeledInput
|
|
162
162
|
v-model:value="value.metadata.name"
|
|
163
163
|
:mode="mode"
|
|
@@ -167,8 +167,9 @@ export default {
|
|
|
167
167
|
/>
|
|
168
168
|
</div>
|
|
169
169
|
</div>
|
|
170
|
-
<div class="row
|
|
171
|
-
<div
|
|
170
|
+
<div class="row">
|
|
171
|
+
<div style="width: 160px;"></div>
|
|
172
|
+
<div class="col">
|
|
172
173
|
<RadioGroup
|
|
173
174
|
v-model:value="isCreatePV"
|
|
174
175
|
name="isCreatePV"
|
|
@@ -177,7 +178,9 @@ export default {
|
|
|
177
178
|
:mode="mode"
|
|
178
179
|
/>
|
|
179
180
|
</div>
|
|
180
|
-
|
|
181
|
+
</div>
|
|
182
|
+
<div class="row">
|
|
183
|
+
<div class="col">
|
|
181
184
|
<LabeledSelect
|
|
182
185
|
v-if="isCreatePV"
|
|
183
186
|
v-model:value="spec.storageClassName"
|
|
@@ -200,16 +203,16 @@ export default {
|
|
|
200
203
|
</div>
|
|
201
204
|
</div>
|
|
202
205
|
|
|
203
|
-
<div class="row
|
|
204
|
-
<div class="col
|
|
205
|
-
<div class="access-modes">
|
|
206
|
-
<t
|
|
207
|
-
class="text-label"
|
|
208
|
-
k="persistentVolumeClaim.accessModes"
|
|
209
|
-
/>
|
|
210
|
-
<span class="text-error">*</span>
|
|
211
|
-
</div>
|
|
206
|
+
<div class="row">
|
|
207
|
+
<div class="col">
|
|
212
208
|
<div class="access-modes">
|
|
209
|
+
<div style="width: 160px;">
|
|
210
|
+
<t
|
|
211
|
+
class="text-label"
|
|
212
|
+
k="persistentVolumeClaim.accessModes"
|
|
213
|
+
/>
|
|
214
|
+
<span class="text-error">*</span>
|
|
215
|
+
</div>
|
|
213
216
|
<Checkbox
|
|
214
217
|
:mode="mode"
|
|
215
218
|
:value="value.spec.accessModes.includes('ReadWriteOnce')"
|
|
@@ -230,9 +233,11 @@ export default {
|
|
|
230
233
|
/>
|
|
231
234
|
</div>
|
|
232
235
|
</div>
|
|
236
|
+
</div>
|
|
237
|
+
<div class="row">
|
|
233
238
|
<div
|
|
234
239
|
v-if="isCreatePV"
|
|
235
|
-
class="col
|
|
240
|
+
class="col"
|
|
236
241
|
>
|
|
237
242
|
<UnitInput
|
|
238
243
|
v-model:value="spec.resources.requests.storage"
|
|
@@ -130,8 +130,8 @@ export default {
|
|
|
130
130
|
<template>
|
|
131
131
|
<div>
|
|
132
132
|
<div>
|
|
133
|
-
<div class="row
|
|
134
|
-
<div class="col
|
|
133
|
+
<div class="row">
|
|
134
|
+
<div class="col">
|
|
135
135
|
<LabeledInput
|
|
136
136
|
v-model:value="value.name"
|
|
137
137
|
:required="true"
|
|
@@ -139,8 +139,9 @@ export default {
|
|
|
139
139
|
:label="t('workload.storage.volumeName')"
|
|
140
140
|
/>
|
|
141
141
|
</div>
|
|
142
|
-
|
|
143
|
-
|
|
142
|
+
</div>
|
|
143
|
+
<div class="row">
|
|
144
|
+
<div class="col">
|
|
144
145
|
<LabeledInput
|
|
145
146
|
v-model:value="defaultMode"
|
|
146
147
|
:mode="mode"
|
|
@@ -149,7 +150,7 @@ export default {
|
|
|
149
150
|
</div>
|
|
150
151
|
</div>
|
|
151
152
|
<div class="row">
|
|
152
|
-
<div class="col
|
|
153
|
+
<div class="col">
|
|
153
154
|
<LabeledSelect
|
|
154
155
|
v-if="type==='secret'"
|
|
155
156
|
v-model:value="value[type].secretName"
|
|
@@ -169,7 +170,9 @@ export default {
|
|
|
169
170
|
:loading="loading"
|
|
170
171
|
/>
|
|
171
172
|
</div>
|
|
172
|
-
|
|
173
|
+
</div>
|
|
174
|
+
<div class="row">
|
|
175
|
+
<div class="col">
|
|
173
176
|
<RadioGroup
|
|
174
177
|
v-model:value="optional"
|
|
175
178
|
:mode="mode"
|
|
@@ -25,8 +25,8 @@ export default {
|
|
|
25
25
|
|
|
26
26
|
<template>
|
|
27
27
|
<div>
|
|
28
|
-
<div class="row
|
|
29
|
-
<div class="col
|
|
28
|
+
<div class="row">
|
|
29
|
+
<div class="col">
|
|
30
30
|
<LabeledInput
|
|
31
31
|
v-model:value="value.name"
|
|
32
32
|
:required="true"
|
|
@@ -35,8 +35,8 @@ export default {
|
|
|
35
35
|
/>
|
|
36
36
|
</div>
|
|
37
37
|
</div>
|
|
38
|
-
<div class="row
|
|
39
|
-
<div class="col
|
|
38
|
+
<div class="row">
|
|
39
|
+
<div class="col">
|
|
40
40
|
<LabeledInput
|
|
41
41
|
v-model:value="value.vsphereVolume.storagePolicyID"
|
|
42
42
|
:mode="mode"
|
|
@@ -44,7 +44,9 @@ export default {
|
|
|
44
44
|
:required="true"
|
|
45
45
|
/>
|
|
46
46
|
</div>
|
|
47
|
-
|
|
47
|
+
</div>
|
|
48
|
+
<div class="row">
|
|
49
|
+
<div class="col">
|
|
48
50
|
<LabeledInput
|
|
49
51
|
v-model:value.number="value.vsphereVolume.storagePolicyName"
|
|
50
52
|
:mode="mode"
|
|
@@ -53,7 +55,7 @@ export default {
|
|
|
53
55
|
</div>
|
|
54
56
|
</div>
|
|
55
57
|
<div class="row">
|
|
56
|
-
<div class="col
|
|
58
|
+
<div class="col">
|
|
57
59
|
<LabeledInput
|
|
58
60
|
v-model:value="value.vsphereVolume.volumePath"
|
|
59
61
|
:mode="mode"
|
|
@@ -61,7 +63,9 @@ export default {
|
|
|
61
63
|
:required="true"
|
|
62
64
|
/>
|
|
63
65
|
</div>
|
|
64
|
-
|
|
66
|
+
</div>
|
|
67
|
+
<div class="row">
|
|
68
|
+
<div class="col">
|
|
65
69
|
<LabeledInput
|
|
66
70
|
v-model:value="value.vsphereVolume.fsType"
|
|
67
71
|
:mode="mode"
|
|
@@ -55,7 +55,13 @@ async function extendApp(vueApp) {
|
|
|
55
55
|
const next = (location) => appPartials.router.push(location);
|
|
56
56
|
// Resolve route
|
|
57
57
|
|
|
58
|
-
|
|
58
|
+
let path = getLocation(router.options.base, router.options.mode);
|
|
59
|
+
|
|
60
|
+
// 🔹 增加 rewrite,不改变原逻辑
|
|
61
|
+
if (path.includes('/cloud/')) {
|
|
62
|
+
path = path.replace(/cloud/g, 'harvester');
|
|
63
|
+
}
|
|
64
|
+
|
|
59
65
|
const route = router.resolve(path);
|
|
60
66
|
|
|
61
67
|
// Set context to app.context
|
|
@@ -37,15 +37,17 @@ export default {
|
|
|
37
37
|
|
|
38
38
|
<template>
|
|
39
39
|
<div>
|
|
40
|
-
<Banner
|
|
41
|
-
color="info"
|
|
42
|
-
:label="t('podSecurityAdmission.banner.modifications')"
|
|
43
|
-
/>
|
|
44
|
-
|
|
45
40
|
<ResourceTable
|
|
46
41
|
:loading="loading"
|
|
47
42
|
:schema="schema"
|
|
48
43
|
:rows="rows"
|
|
49
|
-
|
|
44
|
+
>
|
|
45
|
+
<template #banner>
|
|
46
|
+
<Banner
|
|
47
|
+
color="info"
|
|
48
|
+
:label="t('podSecurityAdmission.banner.modifications')"
|
|
49
|
+
/>
|
|
50
|
+
</template>
|
|
51
|
+
</ResourceTable>
|
|
50
52
|
</div>
|
|
51
53
|
</template>
|
|
@@ -170,6 +170,16 @@ export default {
|
|
|
170
170
|
} catch (err) {
|
|
171
171
|
// This exception handles errors from the `request` action when it receives a failed http request. The `err` object could be from the action's error handler (raw http response object containing `status`) or thrown later on given the response of the action (a massaged object containing `_status`). TBD why one 409 triggers the error handler and another does not.
|
|
172
172
|
const IS_ERR_409 = err.status === 409 || err._status === 409;
|
|
173
|
+
|
|
174
|
+
const IS_ERR_403 = err.status === 403 || err._status === 403;
|
|
175
|
+
|
|
176
|
+
if (err.message === '' && err.fieldName && err.code) {
|
|
177
|
+
err.message = err.code + ' ' + err.fieldName
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
if (IS_ERR_403) {
|
|
181
|
+
err.message = '权限不足'
|
|
182
|
+
}
|
|
173
183
|
|
|
174
184
|
// Conflict, the resource being edited has changed since starting editing
|
|
175
185
|
if (IS_ERR_409 && depth === 0 && this.isEdit) {
|
|
@@ -115,25 +115,26 @@ export default class ProvCluster extends SteveModel {
|
|
|
115
115
|
const actions = [
|
|
116
116
|
// Note: Actions are not supported in the Steve API, so we check
|
|
117
117
|
// available actions for RKE1 clusters, but not RKE2 clusters.
|
|
118
|
+
// {
|
|
119
|
+
// action: 'openShell',
|
|
120
|
+
// label: this.$rootGetters['i18n/t']('nav.shell'),
|
|
121
|
+
// icon: 'icon icon-terminal',
|
|
122
|
+
// enabled: !!this.mgmt?.links.shell && ready,
|
|
123
|
+
// }, {
|
|
124
|
+
// action: 'downloadKubeConfig',
|
|
125
|
+
// bulkAction: 'downloadKubeConfigBulk',
|
|
126
|
+
// label: this.$rootGetters['i18n/t']('nav.kubeconfig.download'),
|
|
127
|
+
// icon: 'icon icon-download',
|
|
128
|
+
// bulkable: true,
|
|
129
|
+
// enabled: this.mgmt?.hasAction('generateKubeconfig'),
|
|
130
|
+
// }, {
|
|
131
|
+
// action: 'copyKubeConfig',
|
|
132
|
+
// label: this.t('cluster.copyConfig'),
|
|
133
|
+
// bulkable: false,
|
|
134
|
+
// enabled: this.mgmt?.hasAction('generateKubeconfig'),
|
|
135
|
+
// icon: 'icon icon-copy',
|
|
136
|
+
// },
|
|
118
137
|
{
|
|
119
|
-
action: 'openShell',
|
|
120
|
-
label: this.$rootGetters['i18n/t']('nav.shell'),
|
|
121
|
-
icon: 'icon icon-terminal',
|
|
122
|
-
enabled: !!this.mgmt?.links.shell && ready,
|
|
123
|
-
}, {
|
|
124
|
-
action: 'downloadKubeConfig',
|
|
125
|
-
bulkAction: 'downloadKubeConfigBulk',
|
|
126
|
-
label: this.$rootGetters['i18n/t']('nav.kubeconfig.download'),
|
|
127
|
-
icon: 'icon icon-download',
|
|
128
|
-
bulkable: true,
|
|
129
|
-
enabled: this.mgmt?.hasAction('generateKubeconfig'),
|
|
130
|
-
}, {
|
|
131
|
-
action: 'copyKubeConfig',
|
|
132
|
-
label: this.t('cluster.copyConfig'),
|
|
133
|
-
bulkable: false,
|
|
134
|
-
enabled: this.mgmt?.hasAction('generateKubeconfig'),
|
|
135
|
-
icon: 'icon icon-copy',
|
|
136
|
-
}, {
|
|
137
138
|
action: 'snapshotAction',
|
|
138
139
|
label: this.$rootGetters['i18n/t']('nav.takeSnapshot'),
|
|
139
140
|
icon: 'icon icon-snapshot',
|
package/models/workload.js
CHANGED
|
@@ -199,8 +199,8 @@ export default class Workload extends WorkloadService {
|
|
|
199
199
|
}
|
|
200
200
|
|
|
201
201
|
this.$dispatch('growl/error', {
|
|
202
|
-
title: '
|
|
203
|
-
message: '
|
|
202
|
+
title: '不可用',
|
|
203
|
+
message: '没有正在运行的 Pod 可用来执行 Shell。'
|
|
204
204
|
}, { root: true });
|
|
205
205
|
}
|
|
206
206
|
|