• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

kubevirt / hyperconverged-cluster-operator / 4278
84%
main: 76%

Build:
Build:
LAST BUILD BRANCH: fix-CNV-79639
DEFAULT BRANCH: main
Ran 08 Nov 2020 08:34AM UTC
Jobs 1
Files 1
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

08 Nov 2020 07:31AM UTC coverage: 82.585%. Remained the same
4278

push

travis-ci

web-flow
Distinguish reconciliation requests triggered by the primary resource from ones triggered by others (#919)

Previous all the reconciliation resources were always
enqueued using the the same HyperConverged object
and this was not allowing us to distinguish reconciliation
requests triggered by a change on HCO CR (the primary resource)
from reconciliation requests triggered the other way around
(a change on one of the CRs created and controlled by HCO).

The watch on the primary resource is enqueuing with
InstrumentedEnqueueRequestForObject, while the watches on secondary
resources enque with EnqueueRequestsFromMapFunc so, in this second case,
we can easily set there a placeholder reconcile.Request just to be able
to distinguish the two flows.

With this, each time we are going to reconcile a CR controlled by HCO,
we can distinguish the case where we are updating it due a change
started from HCO CR from the case where we are reconciling it to
overwrite a change directly introduced (by the user?)
on the controlled resource reverting it to an opinionated state.

Let's also add an additional flag (Overwritten) to EnsureResult considering
it as a subset of Updated to be able to report it back to handlers.

Fixing then the log messages and adding relevant unit tests.

Signed-off-by: Simone Tiraboschi <stirabos@redhat.com>

460 of 557 relevant lines covered (82.59%)

23.17 hits per line

Jobs
ID Job ID Ran Files Coverage
1 4278.1 08 Nov 2020 08:34AM UTC 0
82.59
Travis Job 4278.1
Source Files on build 4278
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #4278
  • dd32e5d1 on github
  • Prev Build on release-4.7 (#4383)
  • Next Build on release-4.7 (#4388)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc