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: added v2 service as submodule #200

Merged
merged 8 commits into from
Jun 5, 2024
Merged

feat: added v2 service as submodule #200

merged 8 commits into from
Jun 5, 2024

Conversation

prabhu34
Copy link
Collaborator

@prabhu34 prabhu34 commented May 12, 2024

@bharathkkb @q2w

@prabhu34 prabhu34 requested review from anamer, gtsorbo and a team as code owners May 12, 2024 17:04
@prabhu34
Copy link
Collaborator Author

/gcbrun

Copy link
Member

@bharathkkb bharathkkb left a comment

Choose a reason for hiding this comment

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

Thanks for the PR @prabhu34! Some initial thoughts. @q2w could you test this module to validate the API?

modules/cloud-run-v2-service/README.md Outdated Show resolved Hide resolved
modules/cloud-run-v2-service/main.tf Outdated Show resolved Hide resolved
modules/cloud-run-v2-service/main.tf Outdated Show resolved Hide resolved
modules/cloud-run-v2-service/versions.tf Outdated Show resolved Hide resolved
modules/job-exec/README.md Outdated Show resolved Hide resolved
modules/cloud-run-v2-service/variables.tf Outdated Show resolved Hide resolved
modules/cloud-run-v2-service/variables.tf Outdated Show resolved Hide resolved
@prabhu34
Copy link
Collaborator Author

/gcbrun

@@ -0,0 +1,86 @@
# Cloud Run v2 Service
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should a metadata.yaml file be created for this new module? I don't see metadata.yaml available for this module. But we do have this file for modules present in https://github.com/terraform-google-modules

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I am not very sure of a metadata.yaml files usage. @bharathkkb Should I generate them?

Copy link
Member

Choose a reason for hiding this comment

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

@prabhu34 you can set this in makefile to autogenerate https://github.com/terraform-google-modules/terraform-google-folders/blob/696570e8cf5d996336b586c9293ae6fea3edf98c/Makefile#L79

go/blueprints-metadata has more instructions but feel free to do this in a follow up to not block this PR

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I have created the metadata now. Seems like the Makefile was outdated and I had added the env to the generate_docs.

@prabhu34
Copy link
Collaborator Author

@q2w Feel free to make changes and amend!

@prabhu34
Copy link
Collaborator Author

/gcbrun

@prabhu34 prabhu34 requested a review from bharathkkb May 20, 2024 13:59
@prabhu34
Copy link
Collaborator Author

/gcbrun

@prabhu34
Copy link
Collaborator Author

@bharathkkb For your second review with changes.

Copy link
Member

@bharathkkb bharathkkb left a comment

Choose a reason for hiding this comment

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

Sorry for the delay! A few minor comments otherwise lgtm

dynamic "containers" {
for_each = var.containers
content {
name = containers.value.container_name
Copy link
Member

Choose a reason for hiding this comment

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

Could we use key rather than using a separate container_name?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I tried that earlier, but having a container name is optional input and container image will be a bigger key name. Let me know your thoughts!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Made it list(objects) instead.

tag = traffic.value.tag
}
}
}
Copy link
Member

Choose a reason for hiding this comment

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

Do we need to ignore chnage any annotations added by the service like

ignore_changes = [

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I guess these are not needed as they will be part of effective_annotations and we can add them later if really needed.

@prabhu34
Copy link
Collaborator Author

prabhu34 commented Jun 4, 2024

/gcbrun

modules/v2/variables.tf Outdated Show resolved Hide resolved
@prabhu34
Copy link
Collaborator Author

prabhu34 commented Jun 4, 2024

/gcbrun

@prabhu34 prabhu34 merged commit be49330 into main Jun 5, 2024
7 checks passed
@prabhu34 prabhu34 deleted the feat/cr-v2 branch June 5, 2024 04:58
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.

3 participants