Skip to content

Conversation

@LidolLxf
Copy link
Contributor

feat: k8s api 鉴权支持放开共享集群特定集群域资源的权限

if !strings.HasPrefix(skipRes, "/") {
skipRes = "/" + skipRes
}
if strings.Contains(resource.URL, skipRes) {
Copy link
Contributor

Choose a reason for hiding this comment

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

用 resource.ResourceType 判断,比如 pods customresourcedefinitions

@LidolLxf LidolLxf force-pushed the feat_perm_cluster_scope branch from 9826be6 to f40ba26 Compare January 8, 2026 06:25
@LidolLxf LidolLxf force-pushed the feat_perm_cluster_scope branch from f40ba26 to 540f96f Compare January 20, 2026 03:12
@evanlixin evanlixin merged commit f7d26da into TencentBlueKing:master Jan 20, 2026
16 checks passed
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.

3 participants