Skip to content

Commit

Permalink
fix: s-mart 应用镜像拉取地址直接使用配置值 (#886)
Browse files Browse the repository at this point in the history
  • Loading branch information
shabbywu authored Nov 15, 2023
1 parent d5a21c1 commit 356bcd7
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions apiserver/paasng/paasng/extensions/smart_app/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,8 @@ def get_base_image_info(self) -> NamedImage:

def get_image_info(self, tag: str = "latest") -> NamedImage:
"""获取当前 S-Mart 应用的镜像信息"""
# TODO: bkrepo 支持 https 访问后去除该逻辑.
if ":80" in bksmart_settings.registry.host:
host = bksmart_settings.registry.host.replace(":80", "")
else:
host = bksmart_settings.registry.host

return NamedImage(
domain=host,
domain=bksmart_settings.registry.host,
name=f"{bksmart_settings.registry.namespace}/{self.module.application.code}/{self.module.name}",
tag=tag,
)
Expand Down

0 comments on commit 356bcd7

Please sign in to comment.