You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Authors can also optionally define a messagePath, which is a path in the resource where Cartographer can pull off a message to display in the owner status.
however, absent of such field, we always end up with a message that indicates that an error occurred, which gives the impression that such field is treated as a requirement.
for instance, consider the following supply chain:
Please provide a set of steps to reproduce the behavior (example):
apply the objects above
observe status of Workload
Expected behavior:
keep being ready: true as we see, but, in the message field for the resource condition (type healthy), avoid mentioning the lack of messagePath as an error (in case messagePath points at something that's indeed wrong, I think it makes sense to explicitly mention that it's indeed an error but then also ready: false it).
Bug description:
in the rfc that introduced
healthRules
(see readable version of the RFC) it's stated:however, absent of such field, we always end up with a message that indicates that an error occurred, which gives the impression that such field is treated as a requirement.
for instance, consider the following supply chain:
with the template being defined as
now, creating a workload that matches the supply chain, we end up with:
Steps to reproduce:
Please provide a set of steps to reproduce the behavior (example):
Expected behavior:
keep being
ready: true
as we see, but, in themessage
field for the resource condition (type healthy), avoid mentioning the lack ofmessagePath
as an error (in casemessagePath
points at something that's indeed wrong, I think it makes sense to explicitly mention that it's indeed an error but then alsoready: false
it).Versions:
Additional context:
see
cartographer/pkg/realizer/healthcheck/healthcheck.go
Lines 122 to 125 in 2ee79e6
The text was updated successfully, but these errors were encountered: