Skip to content

terraform-cloud: cleanup and json schema#385

Open
jtdoepke wants to merge 1 commit into
mainfrom
terraform-cloud-cleanup-and-schema
Open

terraform-cloud: cleanup and json schema#385
jtdoepke wants to merge 1 commit into
mainfrom
terraform-cloud-cleanup-and-schema

Conversation

@jtdoepke

@jtdoepke jtdoepke commented May 22, 2026

Copy link
Copy Markdown
Contributor

Document five values that the templates already consume but were never declared in values.yaml: top-level nameOverride and jobs; global.application, global.component, global.additionalLabels; and irsa.nameOverride. All are optional with safe defaults, so there is no behavior change for existing consumers.

Add a permissive values.schema.json that provides type validation for declared values while leaving room for unknown keys, so the dynamic defaultVars / instances / IRSA vars pass-throughs to Terraform modules remain unconstrained.

Also fix two small inconsistencies:

  • The postgresql.terraform.defaultVars.enable_deletion_protection comment was missing its : bool type hint; aligned with the matching comment in the other database modules.
  • irsa.nameOverride was commented under irsa.terraform, but the template reads .Values.irsa.nameOverride (top-level on the irsa block). Moved the documentation to the correct level.

Document five values that the templates already consume but were never
declared in values.yaml: top-level `nameOverride` and `jobs`;
`global.application`, `global.component`, `global.additionalLabels`;
and `irsa.nameOverride`. All are optional with safe defaults, so there
is no behavior change for existing consumers.

Add a permissive `values.schema.json` that provides type validation
for declared values while leaving room for unknown keys, so the
dynamic `defaultVars` / `instances` / IRSA `vars` pass-throughs to
Terraform modules remain unconstrained.

Also fix two small inconsistencies discovered during the audit:

 - The `postgresql.terraform.defaultVars.enable_deletion_protection`
   comment was missing its `: bool` type hint; aligned with the
   matching comment in the other database modules.
 - `irsa.nameOverride` was commented under `irsa.terraform`, but the
   template reads `.Values.irsa.nameOverride` (top-level on the
   `irsa` block). Moved the documentation to the correct level.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@jtdoepke jtdoepke force-pushed the terraform-cloud-cleanup-and-schema branch from e27bbc5 to 03dd166 Compare May 22, 2026 18:00
@jtdoepke jtdoepke changed the title terraform-cloud: document undeclared values and fix typos terraform-cloud: cleanup and json schema May 22, 2026
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.

1 participant