Skip to content

feat(ingress/fabric_legacy): expose legacy_resource_details from utility module#548

Merged
sanmesh-kakade merged 1 commit into
developfrom
expose-legacy-resource-details-fabric
May 7, 2026
Merged

feat(ingress/fabric_legacy): expose legacy_resource_details from utility module#548
sanmesh-kakade merged 1 commit into
developfrom
expose-legacy-resource-details-fabric

Conversation

@sanmesh-kakade
Copy link
Copy Markdown
Contributor

Summary

  • Re-exports module.nginx_gateway_fabric.legacy_resource_details from the three legacy fabric wrapper flavors (aws, azure, gcp).
  • Required because Terraform module outputs do not auto-passthrough — without these declarations, the utility module's legacy_resource_details (added in facets-utility-modules#35) is invisible to consumers.
  • Downstream effect: level2/legacy.tf in facets-iac does lookup(local.module_<key>, "legacy_resource_details", []) — until this output exists on the wrapper it falls back to [] and the Facets UI shows nothing for ingress resource values (basic auth password, base domain, per-rule domains).

Files

  • modules/ingress/nginx_gateway_fabric_legacy_aws/1.0/outputs.tf
  • modules/ingress/nginx_gateway_fabric_legacy_azure/1.0/outputs.tf
  • modules/ingress/nginx_gateway_fabric_legacy_gcp/1.0/outputs.tf

Each gets a 4-line addition:

output "legacy_resource_details" {
  value = module.nginx_gateway_fabric.legacy_resource_details
}

Test plan

  • Republish the wrapper module via the Facets control plane after merge so the S3 zip picks up the new output.
  • Trigger a release on an environment using nginx_gateway_fabric_legacy_aws and confirm the Facets UI ingress resource-values panel now shows: Basic Authentication Password (when basic_auth: true), Base Domain, and one row per rule.
  • Verify terraform output -json | jq '.legacy_resource_details.value' after apply contains entries with resource_type = "ingress" / resource_type = "ingress_rules_infra".
  • Repeat smoke test on azure and gcp flavors.
  • Confirm no "Provider produced inconsistent final plan" error on first apply (when basic_auth password is generated).

Dependency

Depends on facets-utility-modules#35 which adds legacy_resource_details to the underlying utility module. That PR is merged.

🤖 Generated with Claude Code

…ity module

Re-export the underlying nginx_gateway_fabric module's
legacy_resource_details so ingress values (basic auth password, base
domain, per-rule domains) reach level2's concat in facets-iac and show
up in the Facets UI. Without this passthrough, level2's
lookup(local.module_<key>, "legacy_resource_details", []) falls back to
[] and the UI's resource-values panel is empty.

Applied to all three flavors (aws, azure, gcp) for parity.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 7, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

🗂️ Base branches to auto review (1)
  • facets-saas

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: b74d1a58-b858-4a58-b270-85d312f921e9

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch expose-legacy-resource-details-fabric

Comment @coderabbitai help to get the list of available commands and usage tips.

@sanmesh-kakade
Copy link
Copy Markdown
Contributor Author

LGTM

@sanmesh-kakade sanmesh-kakade merged commit fca49cf into develop May 7, 2026
2 checks passed
@sanmesh-kakade sanmesh-kakade deleted the expose-legacy-resource-details-fabric branch May 7, 2026 13:21
unni-facets pushed a commit that referenced this pull request May 7, 2026
…ity module (#548) (#549)

Re-export the underlying nginx_gateway_fabric module's
legacy_resource_details so ingress values (basic auth password, base
domain, per-rule domains) reach level2's concat in facets-iac and show
up in the Facets UI. Without this passthrough, level2's
lookup(local.module_<key>, "legacy_resource_details", []) falls back to
[] and the UI's resource-values panel is empty.

Applied to all three flavors (aws, azure, gcp) for parity.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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