Skip to content

Conversation

@khanhtc1202
Copy link
Member

What this PR does / why we need it:

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 31.97%. This pull request does not change code coverage.


message DeploymentNode {
// List of applications which should be deployed at the same time in chain.
repeated Application applications = 1;
Copy link
Member

Choose a reason for hiding this comment

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

I think we have to think about this field.
Should it be a list of applications or a list of triggered deployments or a list of application IDs?
Could you share your thoughts about this?

Copy link
Member

Choose a reason for hiding this comment

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

Btw, in the case of storing the application list, how can we have the status (info) of actually triggered deployments to show in the web console at the "Chains" tab?

Copy link
Member Author

@khanhtc1202 khanhtc1202 Nov 16, 2021

Choose a reason for hiding this comment

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

Ah, I get your point 👍 Since the name of this model is DeploymentChain it should be a chain of deployments, that what I was thought at first, but it looks like at the time we create this DeploymentChain model object, we don't trigger for deployment yet so that we don't have deployment object to use, my plan is to use ApplicationDeploymentReference. But I was wrong, we may need to add the ability to piped of the first application in the chain to enable it to trigger deployments for all applications in the chain and use it here 👍

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks for your valuable comment 🙏 Addressed by 668b664

Copy link
Member

Choose a reason for hiding this comment

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

we may need to add the ability to piped of the first application in the chain to enable it to trigger deployments for all applications in the chain and use it here

Actually, I still don't see a clear path for triggering all deployments from the first piped since some applications could be handled by other piped.
But it seems we have to store both application ref and deployment ref: all application ref are added when the deployment chain model is initialized, deployment refs are added when its piped triggers them.

I think it is hard to find out a perfect one at this time. So I am ok to merge this PR now and we can update the model if needed later.

string id = 1 [(validate.rules).string.min_len = 1];
// The ID of the project this environment belongs to.
string project_id = 2 [(validate.rules).string.min_len = 1];
// Deployment node contains all configuration required to perform deployment(s)
Copy link
Member

Choose a reason for hiding this comment

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

nit: . at the end.

@pipecd-bot
Copy link
Collaborator

COVERAGE

Code coverage for golang is 31.97%. This pull request does not change code coverage.

@pipecd-bot
Copy link
Collaborator

COVERAGE

Code coverage for golang is 31.97%. This pull request does not change code coverage.

@nghialv
Copy link
Member

nghialv commented Nov 16, 2021

/lgtm

@nakabonne
Copy link
Member

/approve

@pipecd-bot
Copy link
Collaborator

APPROVE

This pull request is APPROVED by nakabonne.

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 pipecd-bot merged commit c00e51a into master Nov 16, 2021
@pipecd-bot pipecd-bot deleted the add-deployment-chain-model branch November 16, 2021 04:55
pipecd-bot pushed a commit that referenced this pull request Nov 19, 2021
**What this PR does / why we need it**:

**Which issue(s) this PR fixes**:

Follow PR #2790 

**Does this PR introduce a user-facing change?**:
<!--
If no, just write "NONE" in the release-note block below.
-->
```release-note
NONE
```

This PR was merged by Kapetanios.
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.

5 participants