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

Cherry-pick PR #360 and #403 to release-v1.3 #409

Merged
merged 3 commits into from
Apr 11, 2024

Conversation

thunderboltsid
Copy link
Contributor

@thunderboltsid thunderboltsid commented Apr 10, 2024

Cherry-Pick Details

dkoshkin and others added 2 commits April 10, 2024 21:38
* refactor: client.go file helper methods

Refactored the existing methods and functions to be unit testable.
Also made some methods that do not use the struct as generic functions.
The changes were primarily an effort to add unit test coverage.

* refactor: more testable read file function

* test: new nutanixcluster types unit tests

* test: additional test cases for errors

* fixup! refactor: client.go file helper methods

* fixup! refactor: client.go file helper methods

* fixup! refactor: more testable read file function

* fixup! refactor: client.go file helper methods
Skip reading fallback config file from /etc/nutanix/config/prismCentral
if NutanixCluster has prismCentral set.

Co-authored-by: Sid Shukla <sid.shukla@nutanix.com>
deepakm-ntnx
deepakm-ntnx previously approved these changes Apr 10, 2024
dkoshkin
dkoshkin previously approved these changes Apr 10, 2024
add codecov token
@thunderboltsid thunderboltsid dismissed stale reviews from dkoshkin and deepakm-ntnx via c96af7d April 11, 2024 12:39
Copy link

✅ None of your dependencies violate policy!

Copy link

codecov bot commented Apr 11, 2024

Codecov Report

Attention: Patch coverage is 78.94737% with 16 lines in your changes are missing coverage. Please review.

Project coverage is 15.66%. Comparing base (1b1acb7) to head (c96af7d).

Files Patch % Lines
pkg/client/client.go 78.33% 13 Missing ⚠️
controllers/helpers.go 0.00% 3 Missing ⚠️
Additional details and impacted files
@@               Coverage Diff                @@
##           release-v1.3     #409      +/-   ##
================================================
+ Coverage         12.18%   15.66%   +3.47%     
================================================
  Files                21       21              
  Lines              2060     2075      +15     
================================================
+ Hits                251      325      +74     
+ Misses             1809     1750      -59     

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

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
/approve

@nutanix-cn-prow-bot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: adiantum, thunderboltsid

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:
  • OWNERS [adiantum,thunderboltsid]

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

@thunderboltsid thunderboltsid merged commit 2591f82 into release-v1.3 Apr 11, 2024
7 of 8 checks passed
@thunderboltsid thunderboltsid deleted the jira/krbn-8115 branch April 11, 2024 13:48
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.

5 participants