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

fix(controller): Move v4 client instantiation to reconcileDelete #465

Merged
merged 6 commits into from
Jul 31, 2024

Conversation

thunderboltsid
Copy link
Contributor

@thunderboltsid thunderboltsid commented Jul 30, 2024

In order to reduce the number of calls made to /prism_central to establish whether a v4 client can be created, we move the v4 client creation to reconcileDelete function as currently that's the only place where we need to make v4 VG detach calls. This ensures we don't impact the regular reconcile cycle and all the new calls only take place on the delete path.

Copy link

codecov bot commented Jul 30, 2024

Codecov Report

Attention: Patch coverage is 7.81250% with 59 lines in your changes missing coverage. Please review.

Project coverage is 31.14%. Comparing base (fb76b4f) to head (68e55a6).

Files Patch % Lines
controllers/nutanixmachine_controller.go 7.81% 59 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #465      +/-   ##
==========================================
+ Coverage   29.33%   31.14%   +1.80%     
==========================================
  Files          14       14              
  Lines        1476     1477       +1     
==========================================
+ Hits          433      460      +27     
+ Misses       1043     1017      -26     

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

controllers/nutanixmachine_controller.go Outdated Show resolved Hide resolved
controllers/nutanixmachine_controller.go Outdated Show resolved Hide resolved
controllers/nutanixmachine_controller.go Show resolved Hide resolved
@thunderboltsid thunderboltsid force-pushed the issue/fix-v4client-instantiation branch from dae5e54 to 14c2186 Compare July 30, 2024 19:23
@thunderboltsid thunderboltsid requested a review from dkoshkin July 30, 2024 19:49
@thunderboltsid thunderboltsid force-pushed the issue/fix-v4client-instantiation branch from 14c2186 to 618f939 Compare July 30, 2024 21:38
@thunderboltsid thunderboltsid requested review from deepakm-ntnx and removed request for tuxtof and yannickstruyf3 July 30, 2024 22:20
controllers/nutanixmachine_controller.go Outdated Show resolved Hide resolved
In order to reduce the number of calls made to /prism_central to
establish whether a v4 client can be created, we move the v4 client
creation to reconcileDelete function as currently that's the only
place where we need to make v4 VG detach calls.
@thunderboltsid thunderboltsid force-pushed the issue/fix-v4client-instantiation branch from 618f939 to 452336c Compare July 31, 2024 00:25
@thunderboltsid thunderboltsid requested a review from adiantum July 31, 2024 12:46
Copy link
Contributor

@adiantum adiantum left a comment

Choose a reason for hiding this comment

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

lgtm

@thunderboltsid thunderboltsid merged commit 89974b1 into main Jul 31, 2024
9 of 11 checks passed
@thunderboltsid thunderboltsid deleted the issue/fix-v4client-instantiation branch July 31, 2024 15:50
Copy link
Contributor

@deepakm-ntnx deepakm-ntnx left a comment

Choose a reason for hiding this comment

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

lgtm

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.

4 participants