-
Notifications
You must be signed in to change notification settings - Fork 9
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
remove writing out lastCheckedAt status #300
Conversation
682db9c
to
8ea0c47
Compare
Signed-off-by: craig <[email protected]> rh-pre-commit.version: 2.2.0 rh-pre-commit.check-secrets: ENABLED
8ea0c47
to
db6233f
Compare
@@ -246,11 +252,11 @@ func (w *Probe) Start(clientctx context.Context, k8sClient client.Client, probe | |||
} else { | |||
freshProbe.Status.ConsecutiveFailures = 0 | |||
} | |||
logger.V(1).Info("health: execution complete ", "result", probeResult, "checked at", probeResult.CheckedAt.String(), "previoud check at ", probeResult.PreviousCheck) | |||
freshProbe.Status.Healthy = &probeResult.Healthy | |||
freshProbe.Status.LastCheckedAt = probeResult.CheckedAt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We probably should not write LastCheckedAt
to the probe CR anymore
@@ -26,10 +26,13 @@ const ( | |||
) | |||
|
|||
type ProbeResult struct { | |||
// CheckedAt the current helath check time | |||
CheckedAt metav1.Time |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need this value any more? I thought that the only that matters is LastCheckedAt
in the localProbe
🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will merge as is and then we can enhance it more afterwards as this will stop a lot of events happening anyway |
Signed-off-by: craig [email protected]
rh-pre-commit.version: 2.2.0
rh-pre-commit.check-secrets: ENABLED