Skip to content

Commit 107c760

Browse files
committed
Merge branch 'master' of github.com:KubeOperator/KubePi
2 parents c7f3d75 + 8b5731a commit 107c760

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

web/dashboard/src/components/detail/detail-containers.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ export default {
121121
label: this.$t("commons.button.terminal"),
122122
icon: "iconfont iconline-terminalzhongduan",
123123
click: (row) => {
124-
this.openTerminalLogs(row)
124+
this.openTerminal(row)
125125
},
126126
disabled: () => {
127127
return !checkPermissions({ scope: "namespace", apiGroup: "", resource: "pods/exec", verb: "*" })

web/kubepi/src/business/cluster-management/create/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ export default {
110110
configContent: ""
111111
},
112112
rules: {
113-
name: [Rule.RequiredRule, Rule.LengthRule],
113+
name: [Rule.RequiredRule, Rule.LengthRule,Rule.CommonNameRule],
114114
apiServer: [Rule.RequiredRule],
115115
token: [Rule.RequiredRule],
116116
certDataStr: [Rule.RequiredRule],
@@ -225,4 +225,4 @@ export default {
225225

226226
<style scoped>
227227
228-
</style>
228+
</style>

web/kubepi/src/utils/rules.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const LengthRule = {
3535
message: i18n.t("commons.validate.limit", [1, 30]),
3636
trigger: "blur"
3737
}
38-
const NamePattern = /^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$/
38+
const NamePattern = /^[a-z0-9]([-_a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-_a-z0-9]*[a-z0-9])?)*$/
3939

4040
const CommonNameRule = {
4141
required: true,

0 commit comments

Comments
 (0)