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(pipeline): inject project/org default namespace for ci/cd pipeline #6443

Merged
merged 1 commit into from
Sep 25, 2024

Conversation

chengjoey
Copy link
Contributor

What this PR does / why we need it:

inject project/org default namespace for ci/cd pipeline

Specified Reviewers:

/assign @sfwn

ChangeLog

Language Changelog
🇺🇸 English Support inject project/org default namespace for ci/cd pipeline
🇨🇳 中文 为cicd流水线注入默认的项目/组织配置ns

Need cherry-pick to release versions?

Add comment like /cherry-pick release/1.0 when this PR is merged.

For details on the cherry pick process, see the cherry pick requests section under CONTRIBUTING.md.

@erda-bot erda-bot added feature pipeline pipeline service labels Sep 25, 2024
@erda-bot erda-bot requested a review from sfwn September 25, 2024 06:07
@@ -95,6 +95,11 @@ func (e *Endpoints) pipelineCreate(ctx context.Context, r *http.Request, vars ma
if err != nil {
return errorresp.ErrResp(err)
}

// also add project/org default config namespace
reqPipeline.ConfigManageNamespaces = append(reqPipeline.ConfigManageNamespaces, makeProjectDefaultLevelCmsNs(app.ProjectID)...)
Copy link
Member

Choose a reason for hiding this comment

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

project namespace should be placed after org namespace, for priority reason.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Copy link

codecov bot commented Sep 25, 2024

Codecov Report

Attention: Patch coverage is 75.00000% with 2 lines in your changes missing coverage. Please review.

Project coverage is 15.62%. Comparing base (cb68cd8) to head (a113a8e).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
internal/apps/dop/endpoints/pipeline.go 75.00% 2 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #6443   +/-   ##
=======================================
  Coverage   15.62%   15.62%           
=======================================
  Files        3674     3674           
  Lines      311601   311609    +8     
=======================================
+ Hits        48675    48686   +11     
+ Misses     257466   257462    -4     
- Partials     5460     5461    +1     
Flag Coverage Δ
by-github-actions 15.62% <75.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
internal/apps/dop/endpoints/pipeline.go 8.40% <75.00%> (+1.08%) ⬆️

... and 6 files with indirect coverage changes

@sfwn
Copy link
Member

sfwn commented Sep 25, 2024

/approve

@erda-bot erda-bot merged commit 154b5f3 into erda-project:master Sep 25, 2024
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

3 participants