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

Add Namespace to built-in args #624

Merged
merged 2 commits into from
Aug 14, 2020
Merged

Add Namespace to built-in args #624

merged 2 commits into from
Aug 14, 2020

Conversation

nakabonne
Copy link
Member

What this PR does / why we need it:
Small Breaking Changes are contained:

  • Application Name will be able to be referred from `{{ .AppName }}
  • A namespace will be able to be referred from `{{ .K8s.Namespace }}

Which issue(s) this PR fixes:

Fixes #

Does this PR introduce a user-facing change?:

NONE

@pipecd-bot
Copy link
Collaborator

COVERAGE

Code coverage for golang is 21.45%. This pull request decreases coverage by -0.02%.

File Function Base Head Diff
pkg/app/piped/executor/analysis/analysis.go Executor.render 0.00% 0.00% +0.00%

@@ -56,9 +56,9 @@ func Register(r registerer) {
// templateArgs allows deployment-specific data to be embedded in the analysis template.
// NOTE: Changing its fields will force users to change the template definition.
type templateArgs struct {
App struct {
Name string
Env string
Copy link
Member

Choose a reason for hiding this comment

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

Not sure why env was removed?

Copy link
Member Author

Choose a reason for hiding this comment

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

I thought unneeded, but now I figured out when to use it.

@pipecd-bot
Copy link
Collaborator

TODO

The following ISSUES will be created once got merged. If you want me to skip creating the issue, you can use /todo skip command.

Details

1. Populate Env

https://github.com/pipe-cd/pipe/blob/7113d8889720228a731739f3f9c9caf3a9b246cb/pkg/app/piped/executor/analysis/analysis.go#L321-L324

This was created by todo plugin since "TODO:" was found in 7113d88 when #624 was merged. cc: @nakabonne.

@nakabonne
Copy link
Member Author

/todo skip

@pipecd-bot
Copy link
Collaborator

COVERAGE

Code coverage for golang is 21.45%. This pull request decreases coverage by -0.02%.

File Function Base Head Diff
pkg/app/piped/executor/analysis/analysis.go Executor.render 0.00% 0.00% +0.00%

@nghialv
Copy link
Member

nghialv commented Aug 14, 2020

/approve

@pipecd-bot
Copy link
Collaborator

APPROVE

This pull request is APPROVED by nghialv.

Approvers can cancel the approval by writing /approve cancel in a comment. Any additional commits also will change this pull request to be not-approved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants