From 989e7c12eb8cfddf658a65c71b51a2f59604e39e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=90=AF=E8=88=AA?= <101104760+ZhangSetSail@users.noreply.github.com> Date: Mon, 29 Jul 2024 19:03:36 +0800 Subject: [PATCH] fix: default arch export helm chart failure MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 张启航 <101104760+ZhangSetSail@users.noreply.github.com> --- console/services/market_app_service.py | 2 +- console/views/recover.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/console/services/market_app_service.py b/console/services/market_app_service.py index 16063ed12..1c519a0d8 100644 --- a/console/services/market_app_service.py +++ b/console/services/market_app_service.py @@ -90,7 +90,7 @@ def install_app(self, chaos_arch = list(set(body.get("list"))) template_arch = app_template.get("arch", "amd64") template_arch = template_arch if template_arch else "amd64" - if template_arch not in chaos_arch and len(chaos_arch) < 2: + if template_arch not in chaos_arch and len(chaos_arch) < 2 and not dry_run: raise AbortRequest("app arch does not match build node arch", "应用架构与构建节点架构不匹配", status_code=404, error_code=404) if not app_template.get("goavernance_mode"): app_template["governance_mode"] = GovernanceModeEnum.KUBERNETES_NATIVE_SERVICE.name diff --git a/console/views/recover.py b/console/views/recover.py index ae159303c..8d28e71c4 100644 --- a/console/views/recover.py +++ b/console/views/recover.py @@ -7,7 +7,6 @@ from rest_framework.response import Response - class RegionRecover(BaseApiView): def post(self, request, *args, **kwargs): recover_range = request.data.get("recover_range", "all")