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

feat: improve StatefulSet immutable field error messages #654

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

aali309
Copy link

@aali309 aali309 commented Dec 17, 2024

Fixes: 20899
Depends on: 21209

Before:
Screenshot 2024-12-13 at 8 30 35 PM

After:
Screenshot 2025-02-13 at 4 33 35 PM

@aali309 aali309 changed the title feat: Enhance sync error message to report the actual field(s) that violated forbidden updates feat: improve StatefulSet immutable field error messages Dec 17, 2024
Copy link

codecov bot commented Dec 17, 2024

Codecov Report

Attention: Patch coverage is 75.35211% with 35 lines in your changes missing coverage. Please review.

Project coverage is 53.82%. Comparing base (8849c3f) to head (3df63b1).
Report is 28 commits behind head on master.

Files with missing lines Patch % Lines
pkg/sync/sync_context.go 75.35% 24 Missing and 11 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #654      +/-   ##
==========================================
- Coverage   54.26%   53.82%   -0.45%     
==========================================
  Files          64       64              
  Lines        6164     6551     +387     
==========================================
+ Hits         3345     3526     +181     
- Misses       2549     2738     +189     
- Partials      270      287      +17     

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

@aali309 aali309 force-pushed the reportTheFieldThatViolated branch from 0ede6a9 to ffd6fbb Compare December 18, 2024 19:29
@aali309 aali309 marked this pull request as ready for review December 18, 2024 19:33
@aali309 aali309 requested a review from a team as a code owner December 18, 2024 19:33
@aali309 aali309 force-pushed the reportTheFieldThatViolated branch 3 times, most recently from ffd6fbb to 1751d55 Compare December 19, 2024 20:49
Copy link

feat: enhance StatefulSet immutable field error message to show specific field changes

Signed-off-by: Atif Ali <[email protected]>

formatting && added tests

Signed-off-by: Atif Ali <[email protected]>
@aali309 aali309 force-pushed the reportTheFieldThatViolated branch from 1751d55 to 8b51f31 Compare February 10, 2025 21:22
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.

Report the field that violated the updates to fields are forbidden constraint
1 participant