Skip to content

Conversation

@akocbek
Copy link
Contributor

@akocbek akocbek commented Mar 6, 2024

  • feat: add new code engine module
  • feat: add new code engine module

Description

Release required?

  • No release
  • Patch release (x.x.X)
  • Minor release (x.X.x)
  • Major release (X.x.x)
Release notes content

Run the pipeline

If the CI pipeline doesn't run when you create the PR, the PR requires a user with GitHub collaborators access to run the pipeline.

Run the CI pipeline when the PR is ready for review and you expect tests to pass. Add a comment to the PR with the following text:

/run pipeline

Checklist for reviewers

  • If relevant, a test for the change is included or updated with this PR.
  • If relevant, documentation for the change is included or updated with this PR.

For mergers

  • Use a conventional commit message to set the release level. Follow the guidelines.
  • Include information that users need to know about the PR in the commit message. The commit message becomes part of the GitHub release notes.
  • Use the Squash and merge option.

@akocbek akocbek marked this pull request as ready for review March 12, 2024 08:45
@akocbek
Copy link
Contributor Author

akocbek commented Mar 12, 2024

/run pipeline

2 similar comments
@akocbek
Copy link
Contributor Author

akocbek commented Mar 12, 2024

/run pipeline

@akocbek
Copy link
Contributor Author

akocbek commented Mar 12, 2024

/run pipeline

@ocofaigh ocofaigh requested review from shemau and removed request for ocofaigh March 12, 2024 11:58
@ocofaigh
Copy link
Contributor

@akocbek can you update code owners file - I propose to add yourself and @shemau as primary and secondary owners.

@shemau would you mind reviewing the PR code please?

@akocbek
Copy link
Contributor Author

akocbek commented Mar 14, 2024

/run pipeline

1 similar comment
@akocbek
Copy link
Contributor Author

akocbek commented Mar 14, 2024

/run pipeline

description: "Creates IBM Cloud Code Engine resources."

# Use a comma-separated list of topics to set on the repo (ensure not to use any caps in the topic string).
topics: terraform, ibm-cloud, terraform-module
Copy link
Contributor

Choose a reason for hiding this comment

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

please add these topics too: core-team, code-engine, stable, supported

@akocbek
Copy link
Contributor Author

akocbek commented Mar 21, 2024

/run pipeline

README.md Outdated


<!-- This heading should always match the name of the root level module (aka the repo name) -->
## terraform-ibm-module-template
Copy link
Contributor

Choose a reason for hiding this comment

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

terraform-ibm-code-engine

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

README.md Outdated
Use real values instead of "var.<var_name>" or other placeholder values
unless real values don't help users know what to change.
-->
source = "../.."
Copy link
Contributor

Choose a reason for hiding this comment

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

this isnt properly formatted:
Uploading image.png…

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

README.md Outdated
-->
source = "../.."
resource_group_id = module.resource_group.resource_group_id
project_name = "${var.prefix}-project"
Copy link
Contributor

Choose a reason for hiding this comment

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

can you use real world like values here instead of var.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

Copy link
Contributor

@shemau shemau left a comment

Choose a reason for hiding this comment

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

There is a test coverage issue, in that neither binding or domain_mapping are tested anywhere.
These a potentially more complex tests, in that a binding requires a service to bind to, along with a process to generate a service access key. I am not sure about a domain mapping (knowledge gap).

name = string
resource_type = string
}))
default = []
Copy link
Contributor

Choose a reason for hiding this comment

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

This is a required property, so this default does not work. I think it should be required.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

secret_name = var.secret_name

dynamic "component" {
for_each = var.components != null ? var.components : []
Copy link
Contributor

Choose a reason for hiding this comment

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

Also noted in the variables.tf comment. component is a required property, so var.components should never be null and the for_each should never run off the empty list.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

name = string
resource_type = string
}))
default = []
Copy link
Contributor

Choose a reason for hiding this comment

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

This is a required property, no default required.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

name = var.name
tls_secret = var.tls_secret
dynamic "component" {
for_each = var.components != null ? var.components : []
Copy link
Contributor

Choose a reason for hiding this comment

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

This is required, so var.components should not be null and passing an empty list will cause an issue at apply.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

@akocbek
Copy link
Contributor Author

akocbek commented Mar 26, 2024

/run pipeline

@akocbek
Copy link
Contributor Author

akocbek commented Mar 26, 2024

/run pipeline

@akocbek
Copy link
Contributor Author

akocbek commented Mar 26, 2024

/run pipeline

@akocbek
Copy link
Contributor Author

akocbek commented Mar 26, 2024

/run pipeline

@akocbek
Copy link
Contributor Author

akocbek commented Mar 26, 2024

/run pipeline

@akocbek
Copy link
Contributor Author

akocbek commented Mar 26, 2024

/run pipeline

@akocbek
Copy link
Contributor Author

akocbek commented Mar 26, 2024

/run pipeline

@shemau shemau self-requested a review March 26, 2024 21:26
@akocbek
Copy link
Contributor Author

akocbek commented Mar 27, 2024

/run pipeline

@akocbek
Copy link
Contributor Author

akocbek commented Mar 27, 2024

/run pipeline

@ocofaigh
Copy link
Contributor

ocofaigh commented Mar 27, 2024

I haven't reviewed the code (I'll delegate that to @shemau ) however I think it would be better if you had examples named application and job and just ensure that we have coverage for all features across them (Don't have to add all features in both). Try keep the examples to a possible real world use case too.

@akocbek
Copy link
Contributor Author

akocbek commented Mar 27, 2024

/run pipeline

@akocbek
Copy link
Contributor Author

akocbek commented Mar 27, 2024

/run pipeline

Copy link
Contributor

@shemau shemau left a comment

Choose a reason for hiding this comment

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

LGTM

@ocofaigh ocofaigh merged commit fd31ea6 into main Mar 27, 2024
@ocofaigh ocofaigh deleted the new_module branch March 27, 2024 15:21
@terraform-ibm-modules-ops
Copy link
Contributor

🎉 This PR is included in version 1.0.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants