Skip to content

chore: migrate terraform modules to CC008 - #129

Merged
weiiwang01 merged 6 commits into
mainfrom
chore/terraform-cc008-migration-charmkeeper
Oct 19, 2026
Merged

weiiwang01 merged 6 commits into
mainfrom
chore/terraform-cc008-migration-charmkeeper

Conversation

@weiiwang01

Copy link
Copy Markdown
Contributor

Migrate Terraform modules to the CC008 standard

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
weiiwang01 and others added 2 commits October 14, 2026 20:52
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@weiiwang01
weiiwang01 marked this pull request as ready for review October 15, 2026 04:46
@weiiwang01
weiiwang01 requested a review from a team as a code owner October 15, 2026 04:46
weiiwang01 and others added 2 commits October 15, 2026 13:35
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…/product layout

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@florentianayuwono
florentianayuwono requested a lite review from Copilot October 15, 2026 12:21

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Warning

Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.

Copilot review overview

2 open findings
What changed in this PR

Migrates the Terraform module layout and CI to align with the CC008 Charm Terraform Standard, including updated module interface and workflows.

Changes:

  • Introduces CC008-style module outputs (application/provides/requires) and adds a constraints input.
  • Moves/creates CC008 Terraform tests under terraform/charm/tests and updates CI workflows for compliance, testing, release, and docs generation.
  • Updates documentation and repository config (README, changelog, gitignore, license config) to reflect the new module structure.
File Description
terraform/​versions.tf Updates Terraform and Juju provider version constraints.
terraform/​variables.tf Adds CC008-required inputs (constraints) and adjusts nullability/defaults.
terraform/​main.tf Wires new constraints variable into the Juju application resource.
terraform/​tests/​setup/​main.tf Updates test setup Terraform/provider versions and makes test model name unique.
terraform/​tests/​main.tftest.hcl Removes old root test file (tests moved under terraform/charm).
terraform/​tests/​integration/​main.tf Removes old integration test module.
terraform/​tests/​integration/​wait-for-status.sh Removes external-script-based status polling for old tests.
terraform/​outputs.tf Removes deprecated outputs (app_name, endpoints).
terraform/​charm/​tests/​main.tftest.hcl Adds CC008-style tests targeting the terraform/charm module.
terraform/​charm/​outputs.tf Adds CC008-style outputs (application, provides, requires).
terraform/​charm/​MAJOR_VERSION Adds MAJOR_VERSION file for charm module path.
terraform/​README.md Updates docs to reference CC008 module path/outputs and adds terraform-docs markers.
terraform/​MAJOR_VERSION Introduces module major version file at terraform/.
docs/​changelog.md Documents the CC008 migration and interface changes.
.licenserc.yaml Exempts **/MAJOR_VERSION from license header checks.
.gitignore Updates Terraform ignore patterns (including lockfile).
.github/​workflows/​test_terraform_modules.yaml Adds new Terraform module test workflow using pinned operator-workflows.
.github/​workflows/​test_terraform_module.yaml Removes old Terraform module test workflow.
.github/​workflows/​terraform_modules_release.yaml Adds Terraform module release workflow using pinned operator-workflows.
.github/​workflows/​terraform_modules_compliance.yaml Adds Terraform module compliance workflow using pinned operator-workflows.
.github/​workflows/​generate_terraform_docs.yaml Adds workflow to auto-generate Terraform docs for terraform/charm.

🧠 Review effort: Lite


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread terraform/charm/tests/main.tftest.hcl
Comment thread docs/changelog.md
Comment thread terraform/charm/MAJOR_VERSION Outdated
Comment thread terraform/MAJOR_VERSION
Comment thread terraform/tests/integration/main.tf
@weiiwang01
weiiwang01 merged commit 2e14d28 into main Oct 19, 2026
57 of 61 checks passed
@weiiwang01
weiiwang01 deleted the chore/terraform-cc008-migration-charmkeeper branch October 19, 2026 09:47
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.

3 participants