Skip to content

Implement identity and reference types for ComputeNetworkAttachment#9630

Open
codebot-robot wants to merge 1 commit into
GoogleCloudPlatform:masterfrom
codebot-robot:issue_9627
Open

Implement identity and reference types for ComputeNetworkAttachment#9630
codebot-robot wants to merge 1 commit into
GoogleCloudPlatform:masterfrom
codebot-robot:issue_9627

Conversation

@codebot-robot

Copy link
Copy Markdown
Collaborator

This PR implements the identity and reference types for ComputeNetworkAttachment following the canonical IdentityV2 and refs.Ref pattern.

Key Changes:

  • Identity Implementation: Implemented the identity.IdentityV2 and identity.Resource interfaces for ComputeNetworkAttachment using gcpurls.Template in apis/compute/v1alpha1/networkattachment_identity.go.
  • Reference Implementation: Implemented the refs.Ref interface for ComputeNetworkAttachmentRef in apis/compute/v1alpha1/networkattachment_reference.go.
  • Direct Controller: Updated pkg/controller/direct/compute/networkattachment_controller.go to use the new modern identity and reference structure.
  • Unit Tests: Added comprehensive unit tests in apis/compute/v1alpha1/networkattachment_identity_test.go verifying identity parsing, validation, and reference normalization.

Fixes #9627

justinsb
justinsb previously approved these changes Jun 9, 2026

@justinsb justinsb left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

/approve
/lgtm

@justinsb justinsb left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

/approve
/lgtm

@justinsb

Copy link
Copy Markdown
Collaborator

Please rebase to pick up fixes to tests-e2e-fixtures-billingbudgets on head

@justinsb justinsb assigned codebot-robot and unassigned justinsb Jun 10, 2026
auto-merge was automatically disabled June 10, 2026 11:43

Head branch was pushed to by a user without write access

@codebot-robot codebot-robot removed their assignment Jun 10, 2026
@google-oss-prow google-oss-prow Bot removed the lgtm label Jun 10, 2026
justinsb
justinsb previously approved these changes Jun 10, 2026

@justinsb justinsb left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

/approve
/lgtm

justinsb
justinsb previously approved these changes Jun 10, 2026

@justinsb justinsb left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

/approve
/lgtm

@justinsb justinsb added this pull request to the merge queue Jun 10, 2026
@google-oss-prow google-oss-prow Bot added the lgtm label Jun 10, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jun 10, 2026
@justinsb justinsb added this pull request to the merge queue Jun 10, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Jun 10, 2026
@justinsb

Copy link
Copy Markdown
Collaborator

Please rebase

justinsb
justinsb previously approved these changes Jun 10, 2026
@justinsb justinsb enabled auto-merge June 10, 2026 15:41
@justinsb justinsb added this pull request to the merge queue Jun 10, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Jun 10, 2026
@justinsb

Copy link
Copy Markdown
Collaborator

One more rebase, I'm afraid

This commit implements the identity and reference types for ComputeNetworkAttachment following the standard IdentityV2 and refs.Ref pattern.

Key Changes:
- Implement identity.IdentityV2 and identity.Resource interfaces for ComputeNetworkAttachment in networkattachment_identity.go.
- Implement refs.Ref interface for ComputeNetworkAttachmentRef in networkattachment_reference.go.
- Update networkattachment_controller.go to use the new identity and reference structure.
- Add comprehensive unit tests in networkattachment_identity_test.go.

Fixes GoogleCloudPlatform#9627
@google-oss-prow

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: justinsb

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

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.

Implement identity and reference types for ComputeNetworkAttachment

2 participants