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

Resource pluralization for Postgres #230

Merged
merged 1 commit into from
Mar 8, 2022

Conversation

rashedkvm
Copy link
Member

Signed-off-by: Rashed Kamal [email protected]

Pull request

What this PR does / why we need it

Tactical fix for Postgres resource pluralization. Correcting this bug using DynamicRestMapper requires major refactoring. We will clean up this implementation as we refactor this operator.

Which issue(s) this PR fixes

Fixes #190

Describe testing done for PR

Unit test for pkg/resolver/serviceable_resolver_test.go requires registering types. API group sql.tanzu.vmware.com is not public and did not register. Manual testing installing Tanzu Postgres Operator

Additional information or special notes for your reviewer

@vmwclabot vmwclabot added the cla-not-required CLA not required label Mar 8, 2022
@rashedkvm rashedkvm requested a review from scothis March 8, 2022 05:52
@codecov-commenter
Copy link

Codecov Report

Merging #230 (0ae7e76) into main (d1ceefa) will decrease coverage by 0.34%.
The diff coverage is 40.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #230      +/-   ##
==========================================
- Coverage   93.36%   93.02%   -0.35%     
==========================================
  Files          16       16              
  Lines         769      774       +5     
==========================================
+ Hits          718      720       +2     
- Misses         40       42       +2     
- Partials       11       12       +1     
Impacted Files Coverage Δ
pkg/resolver/serviceable_resolver.go 85.00% <40.00%> (-6.43%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d1ceefa...0ae7e76. Read the comment docs.

@rashedkvm rashedkvm marked this pull request as ready for review March 8, 2022 12:32
@rashedkvm rashedkvm merged commit 025d32f into vmware-tanzu:main Mar 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-not-required CLA not required
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Service Resources with non-obvious pluralization fails
4 participants