Skip to content

compute: fix FirewallPolicy observe by correcting identifier resolution#875

Open
AndresAbdo wants to merge 2 commits intocrossplane-contrib:mainfrom
AndresAbdo:bugFix/firewallpolicy-observe-820
Open

compute: fix FirewallPolicy observe by correcting identifier resolution#875
AndresAbdo wants to merge 2 commits intocrossplane-contrib:mainfrom
AndresAbdo:bugFix/firewallpolicy-observe-820

Conversation

@AndresAbdo
Copy link
Copy Markdown

Description of your changes

This PR fixes observe failures for ComputeFirewallPolicy resources caused by
incorrect identifier resolution during observe.

When the identifier was not constructed correctly, the provider issued a list
request instead of a direct get, which resulted in a 400 error due to a missing
parentId. This change ensures the correct identifier is used so observe calls
target the proper get endpoint.

This PR also includes regenerated APIs and CRDs produced by make reviewable.
As part of regeneration, the FirewallPolicy name observation field was
removed, since it is no longer exposed by the Terraform provider schema and is
represented via external-name semantics.

Fixes #820

I have:

  • Read and followed Crossplane's [contribution process].
  • Run make reviewable to ensure this PR is ready for review.

How has this code been tested

  • Tested locally using make local-deploy
  • Verified that an existing FirewallPolicy can be successfully observed
  • Confirmed that observe behavior works correctly in cases where the current
    production code fails

Derive google_compute_firewall_policy name from the last segment of
crossplane.io/external-name and omit name from spec to avoid conflicts.
Fixes Observe failures reported in crossplane-contrib#820.

Signed-off-by: Andres Abdo <andresabdo23@gmail.com>
Regenerate provider APIs and CRDs after FirewallPolicy identifier changes.

This commit includes:
- Removal of the deprecated/omitted FirewallPolicy `name` observation field,
  as it is no longer present in the Terraform provider schema or is represented
  via external-name semantics.
- Updated deepcopy and CRD schemas produced by make reviewable.

No functional changes beyond generated output.

Signed-off-by: Andres Abdo <andresabdo23@gmail.com>
@github-actions
Copy link
Copy Markdown

This provider repo does not have enough maintainers to address every pull request. Since there has been no activity in the last 90 days it is now marked as stale. It will be closed in 14 days if no further activity occurs. Leaving a comment starting with /fresh will mark this issue as not stale.

@github-actions github-actions Bot added the stale label Mar 18, 2026
@AndresAbdo
Copy link
Copy Markdown
Author

/fresh please keep this pull request open. This is a real issue which impacts the ability to observe existing FirewallPolicy resources. @sergenyalcin @turkenf @jastang @ulucinar @erhancagirici If one of you could please review this pull request, it would be greatly appreciated.

@github-actions github-actions Bot removed the stale label Mar 19, 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.

[Bug]: provider-gcp-compute FirewallPolicy MR claims non-existing 'parentId' API field as "Required"

1 participant