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: 新增获取模板文件关联labels接口 #3599

Merged
merged 3 commits into from
Dec 5, 2024

Conversation

LidolLxf
Copy link
Contributor

@LidolLxf LidolLxf commented Nov 8, 2024

feat: 新增获取模板文件关联labels接口

@LidolLxf LidolLxf force-pushed the feat_template_labels branch from 36ac38b to 02ff5f7 Compare November 8, 2024 10:24
@LidolLxf LidolLxf closed this Nov 11, 2024
@LidolLxf LidolLxf reopened this Nov 11, 2024
// 获取模板文件关联labels
rpc GetTemplateAssociateLabels(GetTemplateAssociateLabelsReq) returns (CommonResp) {
option (google.api.http) = {
get: "/clusterresources/v1/projects/{projectCode}/template/labels/{id}"
Copy link
Contributor

Choose a reason for hiding this comment

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

改成 /clusterresources/v1/projects/{projectCode}/templates/{id}/labels

@LidolLxf LidolLxf force-pushed the feat_template_labels branch from 02ff5f7 to e52c964 Compare December 3, 2024 07:32
for _, v := range manifests {
metadata := GetManifestMetadata(v)
// 筛选关联应用的labels
if associateName != "" {
Copy link
Contributor

Choose a reason for hiding this comment

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

层级太多了,可以提前返回的提前返回

@LidolLxf LidolLxf closed this Dec 4, 2024
@LidolLxf LidolLxf reopened this Dec 4, 2024
@LidolLxf LidolLxf force-pushed the feat_template_labels branch from b84de6b to e4b7dde Compare December 5, 2024 02:53
@ifooth ifooth merged commit dd0b169 into TencentBlueKing:master Dec 5, 2024
14 checks passed
evanlixin added a commit that referenced this pull request Dec 6, 2024
* github-bk-bcs/master:
  fix: 修改更新集群接口status状态字段验证规则 (#3628)
  feat: project-manager提供项目活跃度接口 (#3627)
  feat: 新增获取模板文件关联labels接口 (#3599)
  feat: 新增草稿模板文件语法模式 (#3605)
  feat: project-manager支持原生ns接口 (#3612)
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