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 secondary sources #73

Closed
wants to merge 12 commits into from
Closed

Add secondary sources #73

wants to merge 12 commits into from

Conversation

cfir
Copy link

@cfir cfir commented Dec 29, 2020

what

I am adding dynamic object to support secindary sources

why

You are not supporting it right now and we need it.

@cfir cfir requested a review from a team as a code owner December 29, 2020 10:20
@cfir cfir requested review from jamengual and SweetOps and removed request for a team December 29, 2020 10:20
@@ -280,6 +280,23 @@ resource "aws_codebuild_project" "default" {
}
}

dynamic "secondary_sources"{
iterator = secondary_source
Copy link
Contributor

Choose a reason for hiding this comment

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

remove pls iterator for consistency with other modules

@@ -280,6 +280,23 @@ resource "aws_codebuild_project" "default" {
}
}

dynamic "secondary_sources"{
iterator = secondary_source
for_each = length(var.secondary_sources) > 0 ? var.secondary_sources : []
Copy link
Contributor

Choose a reason for hiding this comment

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

this condition isn't required

iterator = secondary_source
for_each = length(var.secondary_sources) > 0 ? var.secondary_sources : []
content {
git_clone_depth = secondary_source.value.git_clone_depth
Copy link
Contributor

Choose a reason for hiding this comment

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

need to add fallback to null for non-required vars (see

status = lookup(s3_logs.value, "status", null)
as example)

@mergify
Copy link

mergify bot commented Jan 23, 2021

This pull request is now in conflict. Could you fix it @cfir? 🙏

@cfir cfir requested review from a team as code owners January 31, 2021 18:30
@mergify mergify bot dismissed SweetOps’s stale review January 31, 2021 18:31

This Pull Request has been updated, so we're dismissing all reviews.

This reverts commit 55d0d2b.
@bcoddens
Copy link
Contributor

Hey all, what needs to be done to get this integraded ? We need the same feature so if I can help ...

@jamengual
Copy link

This feature has been added to the module in #87

@jamengual jamengual closed this Mar 16, 2021
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.

None yet

4 participants