From 4d0c23fb96353f92eca2ebc1d345b16c8d915759 Mon Sep 17 00:00:00 2001 From: dengqichen Date: Fri, 12 Dec 2025 18:28:25 +0800 Subject: [PATCH] =?UTF-8?q?1.30=E5=A2=9E=E5=8A=A0K8S=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/messages.properties | 32 +++++++++++++++++++ .../main/resources/messages_en_US.properties | 32 +++++++++++++++++++ .../main/resources/messages_zh_CN.properties | 32 +++++++++++++++++++ 3 files changed, 96 insertions(+) diff --git a/backend/src/main/resources/messages.properties b/backend/src/main/resources/messages.properties index f7bbd487..a9d6ffe4 100644 --- a/backend/src/main/resources/messages.properties +++ b/backend/src/main/resources/messages.properties @@ -298,3 +298,35 @@ jenkins.response.parse.error=Jenkins响应解析失败:{0} # 团队应用相关 (2920-2939) team.application.already.exists=该应用已配置到此环境 team.application.deploy.job.exists=该环境下已有其他应用使用此 Jenkins Job,请检查配置 + +# -------------------------------------------------------------------------------------- +# K8S集成相关 (K8S Integration) - 3220-3239 +# -------------------------------------------------------------------------------------- +# K8S集群错误 +k8s.cluster.not.found=K8S集群不存在或已删除 +k8s.connection.failed=无法连接到K8S集群,请检查集群地址和网络连接 +k8s.auth.failed=K8S集群认证失败,请检查kubeconfig配置是否正确 + +# K8S配置错误 +k8s.config.invalid=K8S配置格式无效,请检查配置内容 +k8s.config.empty=K8S配置不能为空,请先配置K8S集群信息 +k8s.kubeconfig.invalid=kubeconfig内容格式无效,请检查YAML格式是否正确 +k8s.kubeconfig.empty=kubeconfig内容不能为空,请提供有效的kubeconfig文件内容 + +# K8S资源错误 +k8s.namespace.not.found=K8S命名空间不存在 +k8s.deployment.not.found=K8S Deployment不存在 +k8s.pod.not.found=K8S Pod不存在 +k8s.resource.not.found=K8S资源不存在 + +# K8S API错误 +k8s.api.error=K8S API调用失败,请检查集群状态和配置 +k8s.server.error=K8S服务器错误,请稍后重试 + +# K8S同步错误 +k8s.sync.failed=K8S资源同步失败,请检查集群连接和权限配置 +k8s.namespace.sync.failed=K8S命名空间同步失败,请检查集群配置和网络连接 +k8s.deployment.sync.failed=K8S Deployment同步失败,请检查集群配置和权限 + +# K8S操作错误 +k8s.operation.failed=K8S操作失败,请稍后重试 diff --git a/backend/src/main/resources/messages_en_US.properties b/backend/src/main/resources/messages_en_US.properties index efc94b76..7697e000 100644 --- a/backend/src/main/resources/messages_en_US.properties +++ b/backend/src/main/resources/messages_en_US.properties @@ -231,3 +231,35 @@ jenkins.response.parse.error=Jenkins response parse error: {0} # Team Application Related (2920-2939) team.application.already.exists=Application already configured for this environment team.application.deploy.job.exists=This Jenkins Job is already used by another application in this environment, please check the configuration + +# -------------------------------------------------------------------------------------- +# K8S Integration Related - 3220-3239 +# -------------------------------------------------------------------------------------- +# K8S Cluster Errors +k8s.cluster.not.found=K8S cluster not found or has been deleted +k8s.connection.failed=Unable to connect to K8S cluster, please check cluster address and network connection +k8s.auth.failed=K8S cluster authentication failed, please check kubeconfig configuration + +# K8S Configuration Errors +k8s.config.invalid=Invalid K8S configuration format, please check the configuration content +k8s.config.empty=K8S configuration cannot be empty, please configure K8S cluster information first +k8s.kubeconfig.invalid=Invalid kubeconfig content format, please check YAML format +k8s.kubeconfig.empty=Kubeconfig content cannot be empty, please provide valid kubeconfig file content + +# K8S Resource Errors +k8s.namespace.not.found=K8S namespace not found +k8s.deployment.not.found=K8S deployment not found +k8s.pod.not.found=K8S pod not found +k8s.resource.not.found=K8S resource not found + +# K8S API Errors +k8s.api.error=K8S API call failed, please check cluster status and configuration +k8s.server.error=K8S server error, please try again later + +# K8S Synchronization Errors +k8s.sync.failed=K8S resource synchronization failed, please check cluster connection and permissions +k8s.namespace.sync.failed=K8S namespace synchronization failed, please check cluster configuration and network connection +k8s.deployment.sync.failed=K8S deployment synchronization failed, please check cluster configuration and permissions + +# K8S Operation Errors +k8s.operation.failed=K8S operation failed, please try again later diff --git a/backend/src/main/resources/messages_zh_CN.properties b/backend/src/main/resources/messages_zh_CN.properties index 206094b4..ea41d088 100644 --- a/backend/src/main/resources/messages_zh_CN.properties +++ b/backend/src/main/resources/messages_zh_CN.properties @@ -231,3 +231,35 @@ jenkins.response.parse.error=Jenkins响应解析失败:{0} # 团队应用相关 (2920-2939) team.application.already.exists=该应用已配置到此环境 team.application.deploy.job.exists=该环境下已有其他应用使用此 Jenkins Job,请检查配置 + +# -------------------------------------------------------------------------------------- +# K8S集成相关 (K8S Integration) - 3220-3239 +# -------------------------------------------------------------------------------------- +# K8S集群错误 +k8s.cluster.not.found=K8S集群不存在或已删除 +k8s.connection.failed=无法连接到K8S集群,请检查集群地址和网络连接 +k8s.auth.failed=K8S集群认证失败,请检查kubeconfig配置是否正确 + +# K8S配置错误 +k8s.config.invalid=K8S配置格式无效,请检查配置内容 +k8s.config.empty=K8S配置不能为空,请先配置K8S集群信息 +k8s.kubeconfig.invalid=kubeconfig内容格式无效,请检查YAML格式是否正确 +k8s.kubeconfig.empty=kubeconfig内容不能为空,请提供有效的kubeconfig文件内容 + +# K8S资源错误 +k8s.namespace.not.found=K8S命名空间不存在 +k8s.deployment.not.found=K8S Deployment不存在 +k8s.pod.not.found=K8S Pod不存在 +k8s.resource.not.found=K8S资源不存在 + +# K8S API错误 +k8s.api.error=K8S API调用失败,请检查集群状态和配置 +k8s.server.error=K8S服务器错误,请稍后重试 + +# K8S同步错误 +k8s.sync.failed=K8S资源同步失败,请检查集群连接和权限配置 +k8s.namespace.sync.failed=K8S命名空间同步失败,请检查集群配置和网络连接 +k8s.deployment.sync.failed=K8S Deployment同步失败,请检查集群配置和权限 + +# K8S操作错误 +k8s.operation.failed=K8S操作失败,请稍后重试