Skip to content

Feature: Fieldignorerules#1912

Closed
nrfox wants to merge 2 commits into
istio-ecosystem:mainfrom
nrfox:fieldignorerules
Closed

Feature: Fieldignorerules#1912
nrfox wants to merge 2 commits into
istio-ecosystem:mainfrom
nrfox:fieldignorerules

Conversation

@nrfox

@nrfox nrfox commented May 5, 2026

Copy link
Copy Markdown
Contributor

What type of PR is this?

  • Enhancement / New Feature
  • Bug Fix
  • Refactor
  • Optimization
  • Test
  • Documentation Update

What this PR does / why we need it:

This is #1708 with an additional commit on top that changes the Typing a bit. The additional commit mostly removes boilerplate converting to/from "Untyped" and adds additional unit tests for unstructured objects. You can see the diff here: https://github.com/dgn/sail-operator/compare/fieldignorerules...nrfox:sail-operator:fieldignorerules?expand=1

Which issue(s) this PR fixes:

Fixes #430 and #1148

Related Issue/PR #1708

Additional information:

dgn and others added 2 commits April 25, 2026 14:28
this is a cleaner API around ignoring certain fields in watches and when
installing charts, through a PostRender func. The goal is to eventually
expose this API to the user, but for now it'll just help to keep track
of our default ignores that we have implemented to fix specific bugs.

Signed-off-by: Daniel Grimm <dgrimm@redhat.com>
Removes the "Untyped" variants of FieldIgnoreRules in favor of a passing `Unstructured` as the specific type for generic rules coming from either helm manifest or user input.

Signed-off-by: Nick Fox <nfox@redhat.com>
@nrfox nrfox requested a review from a team as a code owner May 5, 2026 15:50
@codecov

codecov Bot commented May 5, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 87.20930% with 22 lines in your changes missing coverage. Please review.
✅ Project coverage is 81.06%. Comparing base (37f2998) to head (c6b2461).
⚠️ Report is 51 commits behind head on main.

Files with missing lines Patch % Lines
pkg/fieldignore/fieldignore.go 91.97% 6 Missing and 5 partials ⚠️
pkg/helm/chartmanager.go 66.66% 3 Missing and 3 partials ⚠️
pkg/fieldignore/defaults.go 62.50% 1 Missing and 2 partials ⚠️
cmd/main.go 0.00% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main    #1912       +/-   ##
===========================================
+ Coverage   69.52%   81.06%   +11.54%     
===========================================
  Files          46       53        +7     
  Lines        2838     2715      -123     
===========================================
+ Hits         1973     2201      +228     
+ Misses        697      387      -310     
+ Partials      168      127       -41     
Flag Coverage Δ
integration-tests 71.26% <72.94%> (+1.74%) ⬆️
unit-tests 54.58% <83.13%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@nrfox

nrfox commented May 7, 2026

Copy link
Copy Markdown
Contributor Author

Closing this as I can just push to the fork/branch to update the original PR.

@nrfox nrfox closed this May 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Operator forever/continuously reconciles IstioCNI helm release

3 participants