Skip to content

Use ServiceID to match VPC Endpoint Service in ReadMany operation #273

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

knottnt
Copy link

@knottnt knottnt commented Jul 8, 2025

Issue #, if available:

Description of changes:

  • Add ServiceId as ReadMany operation matching field
  • Add bootstrapped VPC Endpoint Service to e2e tests
  • Add test for adopting VPC Endpoint Service

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Copy link

ack-prow bot commented Jul 8, 2025

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@ack-prow ack-prow bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jul 8, 2025
Copy link

ack-prow bot commented Jul 8, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: knottnt

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

The pull request process is described here

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

@ack-prow ack-prow bot requested review from michaelhtm and rushmash91 July 8, 2025 16:40
@ack-prow ack-prow bot added the approved label Jul 8, 2025
build_date: "2025-07-08T05:50:37Z"
build_hash: 580a56e85fed07f60089ef2cae634548b523981b
go_version: go1.24.3
version: v0.48.0-2-g580a56e-dirty
Copy link
Author

Choose a reason for hiding this comment

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

Needs to be re-built once this code-gen PR is merged.

@@ -254,12 +254,6 @@ operations:
operation_type:
- Delete
resource_name: VpcEndpointServiceConfiguration
CreateVpcEndpointServiceConfiguration:
Copy link
Author

Choose a reason for hiding this comment

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

Removed duplicate operation objects

acktest @ git+https://github.com/knottnt/ack-test-infra.git@93adae31a050a11a67567e1e8d3c440b47f4044e
Copy link
Author

Choose a reason for hiding this comment

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

Need to replace this once this PR is merged

Comment on lines +103 to +104
if ko.Status.AllocationID == nil || *elem.AllocationId != *ko.Status.AllocationID {
continue
Copy link
Author

@knottnt knottnt Jul 8, 2025

Choose a reason for hiding this comment

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

It looks like Elastic IP Address had a similar issue which is solved with this hook. It has the same affect of causing the nil Status field to result in a Not Found Error. While it does require custom code it does have the benefit of avoiding the ReadMany API call and loop which could have performance benefits when dealing with a large amount of AWS resources.

I'd be interested in you thoughts on this trade off of moving custom code to code-generation vs performance in high resource count environments. Alternatively, we could look at improving my code-generator change to add a check similar to the hook.

Copy link
Author

@knottnt knottnt Jul 8, 2025

Choose a reason for hiding this comment

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

Note, this degrades the performance to that of a Spec matching field where no match exists and we can't specify a filter in the ReadMany API call.

@knottnt knottnt requested a review from a-hilaly July 8, 2025 16:49
@knottnt
Copy link
Author

knottnt commented Jul 8, 2025

/test all

@knottnt
Copy link
Author

knottnt commented Jul 9, 2025

/retest

@knottnt knottnt force-pushed the endpoint-service-matching branch from 640a2ad to 2251ee3 Compare July 9, 2025 23:43
@knottnt
Copy link
Author

knottnt commented Jul 9, 2025

/retest

@knottnt knottnt force-pushed the endpoint-service-matching branch from 2251ee3 to 22a4b21 Compare July 9, 2025 23:49
@knottnt
Copy link
Author

knottnt commented Jul 9, 2025

/retest

1 similar comment
@knottnt
Copy link
Author

knottnt commented Jul 10, 2025

/retest

@knottnt knottnt force-pushed the endpoint-service-matching branch from 22a4b21 to 73e0514 Compare July 10, 2025 16:59
@knottnt
Copy link
Author

knottnt commented Jul 10, 2025

/retest

@knottnt knottnt marked this pull request as ready for review July 10, 2025 18:16
@ack-prow ack-prow bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jul 10, 2025
- Use ServiceID as matching field for list operation
- Update synced check to use Available instead of available
@knottnt knottnt force-pushed the endpoint-service-matching branch from 73e0514 to 4ea0400 Compare July 10, 2025 22:24
@@ -1068,7 +1062,10 @@ resources:
when:
- path: Status.ServiceState
in:
- available
- Available
Copy link
Author

Choose a reason for hiding this comment

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

Resource was never reached ACK.ResourceSynced=True due to case mismatch.

Copy link

ack-prow bot commented Jul 10, 2025

@knottnt: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ec2-kind-e2e 4ea0400 link true /test ec2-kind-e2e

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant