Skip to content
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

Update controller-runtime #250

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

SuperQ
Copy link
Contributor

@SuperQ SuperQ commented Jan 23, 2025

  • Update controller runtime to v0.15.3.
  • Fixup breaking changes in Validate calls.
  • Remove client metric tweak that was removed upstream.
  • Bump images in Dockerfiles to match CI.
  • Improve upgrade test script.
  • Disable metrics in upgrade test.

@SuperQ
Copy link
Contributor Author

SuperQ commented Jan 23, 2025

This might fix #249, need to test.

Copy link

codecov bot commented Jan 23, 2025

Codecov Report

Attention: Patch coverage is 86.66667% with 2 lines in your changes missing coverage. Please review.

Project coverage is 76.84%. Comparing base (95c940a) to head (69e0df6).

Files with missing lines Patch % Lines
apis/milvus.io/v1beta1/milvus_webhook.go 77.77% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #250      +/-   ##
==========================================
+ Coverage   76.82%   76.84%   +0.02%     
==========================================
  Files          64       64              
  Lines        6697     6695       -2     
==========================================
  Hits         5145     5145              
+ Misses       1351     1349       -2     
  Partials      201      201              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@SuperQ SuperQ force-pushed the rest_metrics branch 8 times, most recently from b887934 to 7b59e46 Compare January 23, 2025 17:36
@SuperQ
Copy link
Contributor Author

SuperQ commented Jan 23, 2025

Ugh, I have no idea why the controller upgrade is not doing the right thing here. I guess I'll have to setup a local test setup so I can watch the controller logs.

@sre-ci-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: haorenfsa, SuperQ

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

@haorenfsa haorenfsa added this to the v1.3.0 milestone Jan 24, 2025
* Update controller runtime to v0.15.3.
* Fixup breaking changes in Validate calls.
* Remove client metric tweak that was removed upstream.
* Bump images in Dockerfiles to match CI.
* Improve upgrade test script.
* Disable metrics in upgrade test.

Signed-off-by: SuperQ <[email protected]>
@SuperQ
Copy link
Contributor Author

SuperQ commented Jan 26, 2025

I discovered the issue with the controller-runtime upgrade. The kind setup in the CI pipeline does not include the Prometheus Operator. With the previous runtime it seems like the creation failure of the PodMonitor was being ignored. The Milvus would go ready, but had not completely setup the PodMonitor. When the patch was applied, it would never succeed.

Between the two options of installing the Prometheus Operator bundle so the CRDs exist, and simply disabling metrics for this test, I went with disable metrics.

@SuperQ SuperQ requested a review from haorenfsa January 26, 2025 12:31
@haorenfsa
Copy link
Collaborator

/lgtm

@sre-ci-robot sre-ci-robot added the lgtm looks good to merge label Jan 27, 2025
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.

3 participants