Skip to content

Commit

Permalink
fix: default arch export helm chart failure
Browse files Browse the repository at this point in the history
Signed-off-by: 张启航 <[email protected]>
  • Loading branch information
ZhangSetSail committed Jul 29, 2024
1 parent efd0de0 commit 989e7c1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion console/services/market_app_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion console/views/recover.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 989e7c1

Please sign in to comment.