higress
higress copied to clipboard
[frontend-gray] Increase gray types according to the ratio-weight gray
Ⅰ. Describe what this PR did
- 增加按照比例灰度的能力,YAML配置如下:
灰度规则
beta-user
的灰度范围为 50%
baseDeployment:
version: "dev"
grayDeployments:
- name: "beta-user"
version: "0.0.1"
enabled: "true"
weight: "50"
- 添加往首页注入脚本的能力
可以分别在 header,body的首部
first
和尾部last
注入相关代码。
---
injection:
header:
- "<script>console.log('Header')</script>"
body:
first:
- "<script>console.log('hello world before')</script>"
- "<script>console.log('hello world before1')</script>"
last:
- "<script>console.log('hello world after')</script>"
- "<script>console.log('hello world after2')</script>"