Skip to content

HIVE-2847: AWSPrivateLink: improve VPCEndpoint reconcile #2671

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

Merged

Conversation

2uasimojo
Copy link
Member

@2uasimojo 2uasimojo commented Apr 30, 2025

  • Detect whether a previously-configured hub VPCEndpoint went bad (was rejected or deleted) and replace it. NOTE: If the new VPCEndpoint is in a different VPC than the original, we will also replace the HostedZone, leaking the old one.
  • Produce a log message with the count of the total number of hub VPCEndpoints to facilitate leak detection. This is at Warn level if >1, Info otherwise; and contains a field with key numVPCEndpoints for your alerting needs.

@openshift-ci-robot
Copy link

openshift-ci-robot commented Apr 30, 2025

@2uasimojo: This pull request references HIVE-2847 which is a valid jira issue.

In response to this:

  • Detect whether a previously-configured hub VPCEndpoint went bad (was rejected or deleted) and replace it.
  • Produce a metric counting the total number of hub VPCEndpoints to facilitate leak detection. Consumers could alert on something like (hive_hub_vpc_endpoints_total / number_of_healthy_privatelink_clusters) > 1).

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 openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Apr 30, 2025
@openshift-ci openshift-ci bot requested review from jstuever and suhanime April 30, 2025 21:56
@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 30, 2025
@2uasimojo
Copy link
Member Author

/hold

I should add UT.

/cc @dustman9000 @joshbranham

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Apr 30, 2025
Copy link

codecov bot commented May 1, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 50.28%. Comparing base (4bc5b48) to head (04adc57).
Report is 4 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2671      +/-   ##
==========================================
+ Coverage   50.24%   50.28%   +0.04%     
==========================================
  Files         287      287              
  Lines       33971    33995      +24     
==========================================
+ Hits        17069    17096      +27     
+ Misses      15553    15550       -3     
  Partials     1349     1349              
Files with missing lines Coverage Δ
...roller/awsprivatelink/awsprivatelink_controller.go 69.68% <100.00%> (+1.07%) ⬆️

... and 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@2uasimojo 2uasimojo force-pushed the HIVE-2847/count-vpces branch 2 times, most recently from 2dd2691 to 3415a85 Compare May 2, 2025 20:47
@2uasimojo
Copy link
Member Author

/assign @jstuever

@2uasimojo
Copy link
Member Author

/hold cancel

@openshift-ci openshift-ci bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label May 2, 2025
@2uasimojo
Copy link
Member Author

/hold

I did the metrics wrong.

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label May 2, 2025
@2uasimojo 2uasimojo force-pushed the HIVE-2847/count-vpces branch from 3415a85 to 2481859 Compare May 2, 2025 22:07
@openshift-ci-robot
Copy link

openshift-ci-robot commented May 2, 2025

@2uasimojo: This pull request references HIVE-2847 which is a valid jira issue.

In response to this:

  • Detect whether a previously-configured hub VPCEndpoint went bad (was rejected or deleted) and replace it.
  • Produce a log message with the count of the total number of hub VPCEndpoints to facilitate leak detection. This is at Warn level if >1, Info otherwise; and contains a field with key numVPCEndpoints for your alerting needs.

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 openshift-eng/jira-lifecycle-plugin repository.

@2uasimojo 2uasimojo force-pushed the HIVE-2847/count-vpces branch from 2481859 to 2440692 Compare May 6, 2025 14:21
@2uasimojo
Copy link
Member Author

/hold cancel

/assign @jstuever

@openshift-ci openshift-ci bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label May 6, 2025
- Detect whether a previously-configured hub VPCEndpoint went bad (was
  rejected or deleted) and replace it. NOTE: If the new VPCEndpoint is
  in a different VPC than the original, we will also replace the
  HostedZone, leaking the old one.
- Produce a log message with the count of the total number of hub
  VPCEndpoints to facilitate leak detection. This is at Warn level if
  >1, Info otherwise; and contains a field with key `numVPCEndpoints`
  for your alerting needs.
@2uasimojo 2uasimojo force-pushed the HIVE-2847/count-vpces branch from 2440692 to 04adc57 Compare May 6, 2025 20:45
Copy link
Contributor

@jstuever jstuever left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label May 6, 2025
Copy link
Contributor

openshift-ci bot commented May 6, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: 2uasimojo, jstuever

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

Copy link
Contributor

openshift-ci bot commented May 6, 2025

@2uasimojo: all tests passed!

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-sigs/prow repository. I understand the commands that are listed here.

@openshift-merge-bot openshift-merge-bot bot merged commit 726d1ab into openshift:master May 6, 2025
10 checks passed
@2uasimojo 2uasimojo deleted the HIVE-2847/count-vpces branch May 7, 2025 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants