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

feat: bcs-monitor支持X-Partial-Response #3661

Merged
merged 1 commit into from
Jan 2, 2025

Conversation

LidolLxf
Copy link
Contributor

@LidolLxf LidolLxf commented Jan 2, 2025

feat: bcs-monitor支持X-Partial-Response

@@ -76,12 +76,14 @@ func (t *TenantAuthMiddleware) NewHandler(handlerName string, handler http.Handl
}

scopeClusteID := r.Header.Get("X-Scope-ClusterId")
partialResponse := r.Header.Get("X-Partial-Response")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里的合法性校验是在thanos那处理了么? 正常如果填写不合法,直接返回错误

Copy link
Contributor Author

@LidolLxf LidolLxf Jan 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanos处理了:
支持true的情况:"1", "t", "T", "true", "TRUE", "True"
支持false的情况:"0", "f", "F", "false", "FALSE", "False"

@LidolLxf LidolLxf force-pushed the feat_partial_header branch from c323bef to fd6a17c Compare January 2, 2025 09:28
@ifooth ifooth merged commit 1572199 into TencentBlueKing:master Jan 2, 2025
13 checks passed
evanlixin added a commit that referenced this pull request Jan 7, 2025
* github-bk-bcs/master:
  feat: api-gateway-syncing 增加 addons 相关文档 (#3617)
  修改升级tencentcloud/common包后提交空数组报参数错误的问题 (#3659)
  fix: 取消nodetemplate相关接口的越权访问 (#3662)
  feat: bcs-monitor 数据盘监控,支持配置数据盘路径 (#3660)
  feat: bcs-monitor支持X-Partial-Response (#3661)
  feat: webconsole pod 添加项目前缀 (#3640)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants