Skip to content

Conversation

@khanhtc1202
Copy link
Member

What this PR does / why we need it:

Rename as suggestion discussed in #2815 (comment)

Which issue(s) this PR fixes:

Fixes #

Does this PR introduce a user-facing change?:

NONE

// ApplicationMatchers provides list of ChainApplicationMatcher which contain filters to be used
// to find applications to deploy as chain node. It's required to not empty.
Nodes []*DeploymentChainNode `json:"applications"`
ApplicationMatchers []*ChainApplicationMatcher `json:"applications"`
Copy link
Member

Choose a reason for hiding this comment

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

Don't need to use pointer.

// as a part of the deployment chain.
type DeploymentChainNode struct {
type ChainApplicationMatcher struct {
AppName string `json:"name"`
Copy link
Member

Choose a reason for hiding this comment

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

"Name" is enough.

Copy link
Member Author

Choose a reason for hiding this comment

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

Nice point 👍 addressed by 91d35ee

@pipecd-bot pipecd-bot added size/M and removed size/S labels Nov 19, 2021
@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.

@pipecd-bot
Copy link
Collaborator

COVERAGE

Code coverage for golang is 31.98%. This pull request increases coverage by 0.00%.

File Function Base Head Diff
pkg/config/deployment.go ChainApplicationMatcher.Validate -- 75.00% +75.00%
pkg/config/deployment.go DeploymentChainNode.Validate 75.00% -- -75.00%

@pipecd-bot pipecd-bot merged commit 3d43a1f into master Nov 19, 2021
@pipecd-bot pipecd-bot deleted the rename-config-field branch November 19, 2021 12:05
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.

4 participants