diff --git a/web/dashboard/src/business/network/endpoints/create/index.vue b/web/dashboard/src/business/network/endpoints/create/index.vue index 84af614d..a90ec526 100644 --- a/web/dashboard/src/business/network/endpoints/create/index.vue +++ b/web/dashboard/src/business/network/endpoints/create/index.vue @@ -33,7 +33,7 @@ - + {{ $t("commons.button.delete") }} @@ -70,7 +70,7 @@ - + {{ $t("commons.button.delete") }} diff --git a/web/dashboard/src/business/workloads/index.vue b/web/dashboard/src/business/workloads/index.vue index ff939ab9..3933e7e1 100644 --- a/web/dashboard/src/business/workloads/index.vue +++ b/web/dashboard/src/business/workloads/index.vue @@ -511,6 +511,11 @@ export default { this.unValidInfo = this.$t("business.workload.container") + this.$t("commons.validate.params_not_complete") return } + if (!this.$refs.ko_security_context.checkIsValid(this.podSpec, this.currentContainerType, this.currentContainerIndex)) { + this.isValid = false + this.unValidInfo = this.$t("business.workload.security_context") + this.$t("commons.validate.params_not_complete") + return + } if (!this.$refs.ko_pod_scheduling.checkIsValid()) { this.isValid = false this.unValidInfo = "Pod " + this.$t("business.workload.schedule") + this.$t("commons.validate.params_not_complete") diff --git a/web/dashboard/src/components/ko-configuration/ko-key-value.vue b/web/dashboard/src/components/ko-configuration/ko-key-value.vue index d9926c4d..54689b9d 100644 --- a/web/dashboard/src/components/ko-configuration/ko-key-value.vue +++ b/web/dashboard/src/components/ko-configuration/ko-key-value.vue @@ -21,7 +21,7 @@ @change.native="transformation"/> - + {{ $t("commons.button.delete") }} diff --git a/web/dashboard/src/components/ko-configuration/ko-metric-selector.vue b/web/dashboard/src/components/ko-configuration/ko-metric-selector.vue index 0cc7dc26..c5672576 100644 --- a/web/dashboard/src/components/ko-configuration/ko-metric-selector.vue +++ b/web/dashboard/src/components/ko-configuration/ko-metric-selector.vue @@ -32,7 +32,7 @@ ... - + {{ $t("commons.button.delete") }} diff --git a/web/dashboard/src/components/ko-configuration/ko-resource-quota.vue b/web/dashboard/src/components/ko-configuration/ko-resource-quota.vue index c8ab743e..4c283080 100644 --- a/web/dashboard/src/components/ko-configuration/ko-resource-quota.vue +++ b/web/dashboard/src/components/ko-configuration/ko-resource-quota.vue @@ -19,7 +19,7 @@ - + {{ $t("commons.button.delete") }} @@ -70,7 +70,7 @@ - + {{ $t("commons.button.delete") }} diff --git a/web/dashboard/src/components/ko-configuration/ko-secret-data.vue b/web/dashboard/src/components/ko-configuration/ko-secret-data.vue index 4281125d..05821ea8 100644 --- a/web/dashboard/src/components/ko-configuration/ko-secret-data.vue +++ b/web/dashboard/src/components/ko-configuration/ko-secret-data.vue @@ -21,7 +21,7 @@ v-model="label.value" @change.native="transform"/> - + {{ $t("commons.button.delete") }} diff --git a/web/dashboard/src/components/ko-network/ingress-rules.vue b/web/dashboard/src/components/ko-network/ingress-rules.vue index efd79d67..78f3c2a9 100644 --- a/web/dashboard/src/components/ko-network/ingress-rules.vue +++ b/web/dashboard/src/components/ko-network/ingress-rules.vue @@ -78,7 +78,7 @@ - + {{ $t("commons.button.delete") }} diff --git a/web/dashboard/src/components/ko-network/service-ip-addresses.vue b/web/dashboard/src/components/ko-network/service-ip-addresses.vue index 54fa142f..52331a62 100644 --- a/web/dashboard/src/components/ko-network/service-ip-addresses.vue +++ b/web/dashboard/src/components/ko-network/service-ip-addresses.vue @@ -18,7 +18,7 @@ @input="$forceUpdate()"> - + {{ $t("commons.button.delete") }} diff --git a/web/dashboard/src/components/ko-network/service-ports.vue b/web/dashboard/src/components/ko-network/service-ports.vue index af48d817..c5144a8f 100644 --- a/web/dashboard/src/components/ko-network/service-ports.vue +++ b/web/dashboard/src/components/ko-network/service-ports.vue @@ -41,7 +41,7 @@ - + {{ $t("commons.button.delete") }} diff --git a/web/dashboard/src/components/ko-rbac/grant-resource.vue b/web/dashboard/src/components/ko-rbac/grant-resource.vue index 1d6e8501..047f3918 100644 --- a/web/dashboard/src/components/ko-rbac/grant-resource.vue +++ b/web/dashboard/src/components/ko-rbac/grant-resource.vue @@ -43,7 +43,7 @@ - + {{ $t("commons.button.delete") }} diff --git a/web/dashboard/src/components/ko-workloads/ko-annotations.vue b/web/dashboard/src/components/ko-workloads/ko-annotations.vue index 5cdcef7f..14da0963 100644 --- a/web/dashboard/src/components/ko-workloads/ko-annotations.vue +++ b/web/dashboard/src/components/ko-workloads/ko-annotations.vue @@ -19,7 +19,7 @@ - + {{ $t("commons.button.delete") }} diff --git a/web/dashboard/src/components/ko-workloads/ko-base.vue b/web/dashboard/src/components/ko-workloads/ko-base.vue index 5d8161a8..fd1e66ca 100644 --- a/web/dashboard/src/components/ko-workloads/ko-base.vue +++ b/web/dashboard/src/components/ko-workloads/ko-base.vue @@ -2,7 +2,7 @@ - + {{item.label}} @@ -147,4 +147,4 @@ export default { }, }, } - \ No newline at end of file + diff --git a/web/dashboard/src/components/ko-workloads/ko-command.vue b/web/dashboard/src/components/ko-workloads/ko-command.vue index bf8bad4f..076f7bc7 100644 --- a/web/dashboard/src/components/ko-workloads/ko-command.vue +++ b/web/dashboard/src/components/ko-workloads/ko-command.vue @@ -32,7 +32,7 @@ - + {{ $t("commons.button.delete") }} @@ -57,7 +57,7 @@ - + {{ $t("commons.button.delete") }} @@ -183,4 +183,4 @@ export default { } }, } - \ No newline at end of file + diff --git a/web/dashboard/src/components/ko-workloads/ko-data.vue b/web/dashboard/src/components/ko-workloads/ko-data.vue index 0b1bddf0..8d3e9b43 100644 --- a/web/dashboard/src/components/ko-workloads/ko-data.vue +++ b/web/dashboard/src/components/ko-workloads/ko-data.vue @@ -19,7 +19,7 @@ - + {{ $t("commons.button.delete") }} diff --git a/web/dashboard/src/components/ko-workloads/ko-environment.vue b/web/dashboard/src/components/ko-workloads/ko-environment.vue index 1b644ca5..4464b3ea 100644 --- a/web/dashboard/src/components/ko-workloads/ko-environment.vue +++ b/web/dashboard/src/components/ko-workloads/ko-environment.vue @@ -31,7 +31,7 @@ - + {{ $t("commons.button.delete") }} @@ -251,4 +251,4 @@ export default { } }, } - \ No newline at end of file + diff --git a/web/dashboard/src/components/ko-workloads/ko-health-check.vue b/web/dashboard/src/components/ko-workloads/ko-health-check.vue index e368961d..4d5331c5 100644 --- a/web/dashboard/src/components/ko-workloads/ko-health-check.vue +++ b/web/dashboard/src/components/ko-workloads/ko-health-check.vue @@ -39,7 +39,7 @@ - + {{ $t("commons.button.delete") }} @@ -98,7 +98,7 @@ - + {{ $t("commons.button.delete") }} diff --git a/web/dashboard/src/components/ko-workloads/ko-kv-table.vue b/web/dashboard/src/components/ko-workloads/ko-kv-table.vue index 8d27e2ae..a81a203b 100644 --- a/web/dashboard/src/components/ko-workloads/ko-kv-table.vue +++ b/web/dashboard/src/components/ko-workloads/ko-kv-table.vue @@ -11,7 +11,7 @@ - + {{ $t("commons.button.delete") }} @@ -34,7 +34,7 @@ - + {{ $t("commons.button.delete") }} @@ -66,7 +66,7 @@ - + {{ $t("commons.button.delete") }} diff --git a/web/dashboard/src/components/ko-workloads/ko-labels.vue b/web/dashboard/src/components/ko-workloads/ko-labels.vue index aaa6cae0..a8c9c5ab 100644 --- a/web/dashboard/src/components/ko-workloads/ko-labels.vue +++ b/web/dashboard/src/components/ko-workloads/ko-labels.vue @@ -20,7 +20,7 @@ - + {{ $t("commons.button.delete") }} diff --git a/web/dashboard/src/components/ko-workloads/ko-match-table.vue b/web/dashboard/src/components/ko-workloads/ko-match-table.vue index 61877387..c84c5417 100644 --- a/web/dashboard/src/components/ko-workloads/ko-match-table.vue +++ b/web/dashboard/src/components/ko-workloads/ko-match-table.vue @@ -14,7 +14,7 @@ - + {{ $t("commons.button.delete") }} @@ -74,4 +74,4 @@ export default { }, }, } - \ No newline at end of file + diff --git a/web/dashboard/src/components/ko-workloads/ko-node-scheduling.vue b/web/dashboard/src/components/ko-workloads/ko-node-scheduling.vue index 1c074210..a41bdb79 100644 --- a/web/dashboard/src/components/ko-workloads/ko-node-scheduling.vue +++ b/web/dashboard/src/components/ko-workloads/ko-node-scheduling.vue @@ -62,7 +62,7 @@ - + {{ $t("commons.button.delete") }} diff --git a/web/dashboard/src/components/ko-workloads/ko-ports.vue b/web/dashboard/src/components/ko-workloads/ko-ports.vue index f012394a..31875784 100644 --- a/web/dashboard/src/components/ko-workloads/ko-ports.vue +++ b/web/dashboard/src/components/ko-workloads/ko-ports.vue @@ -23,7 +23,7 @@ - + {{ $t("commons.button.delete") }} @@ -100,4 +100,4 @@ export default { } }, } - \ No newline at end of file + diff --git a/web/dashboard/src/components/ko-workloads/ko-security-context.vue b/web/dashboard/src/components/ko-workloads/ko-security-context.vue index 8eafaf2e..6f910a18 100644 --- a/web/dashboard/src/components/ko-workloads/ko-security-context.vue +++ b/web/dashboard/src/components/ko-workloads/ko-security-context.vue @@ -1,6 +1,6 @@