Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf: sync apigw 只发布对应环境的网关接口 #7472 #7477

Open
wants to merge 2 commits into
base: release_3.32.2_by_master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions gcloud/apigw/management/commands/sync_saas_apigw.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@
import os
import traceback

from django.core.management.base import BaseCommand
from django.conf import settings
from django.core.management import call_command
from django.core.management.base import BaseCommand

import env

Expand All @@ -25,7 +26,7 @@ def handle(self, *args, **kwargs):
if not env.IS_PAAS_V3:
print("[bk-sops]current version is not open v3,skip sync_saas_apigw")
return

stage = [settings.BK_APIGW_STAGE_NAME]
definition_file_path = os.path.join(__file__.rsplit("/", 1)[0], "data/api-definition.yml")
resources_file_path = os.path.join(__file__.rsplit("/", 1)[0], "data/api-resources.yml")

Expand All @@ -42,7 +43,7 @@ def handle(self, *args, **kwargs):
call_command("sync_resource_docs_by_archive", file=definition_file_path)

print("[bk-sops]call create_version_and_release_apigw with definition: %s" % definition_file_path)
call_command("create_version_and_release_apigw", "--generate-sdks", file=definition_file_path)
call_command("create_version_and_release_apigw", "--generate-sdks", file=definition_file_path, stage=stage)

print("[bk-sops]call fetch_apigw_public_key")
call_command("fetch_apigw_public_key")
Expand Down
Loading