-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: create reverse proxy for logo when plugin created (#2652)
#### What type of PR is this? /kind improvement /area core /milestone 2.0 #### What this PR does / why we need it: 插件 logo 支持配置外部 URL 或相对于 resources 的路径 Console 端展示插件 logo 时使用的字段需要使用 status.logo 而非 spec.logo #### Which issue(s) this PR fixes: Fixes #2651 #### Special notes for your reviewer: how to test it? 1. 插件配置 logo 为外部 url 例如 https://guqing.xyz/avatar 2. 安装此插件后不会注册 ReverseProxy 规则 3. logo 配置为相对于 resources 的路径例如:/logo.png 4. 安装此插件后可以访问到 /plugins/{your-plugin-name}/assets/logo.png 5. 开发模式启动插件后,修改了 plugin.yaml 中的 spec.logo 则也会更新 ReverseProxy 的 rule /cc @halo-dev/sig-halo #### Does this PR introduce a user-facing change? ```release-note 插件 Logo 支持配置外部 URL 或相对于 resources 的路径 ```
- Loading branch information
Showing
9 changed files
with
269 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.