mirror of
https://github.com/vmware-tanzu/pinniped.git
synced 2026-09-08 17:16:56 +00:00
webhookcachefiller adds more detail when it chooses to update or not update status conditions
This commit is contained in:
committed by
Ryan Richard
parent
ca5bb2170c
commit
1438f06c12
@@ -479,11 +479,14 @@ func (c *webhookCacheFillerController) updateStatus(
|
||||
)
|
||||
|
||||
if equality.Semantic.DeepEqual(original, updated) {
|
||||
logger.Debug("choosing to not update the webhookauthenticator status since there is no update to make",
|
||||
"phase", updated.Status.Phase)
|
||||
return nil
|
||||
}
|
||||
_, err := c.client.AuthenticationV1alpha1().WebhookAuthenticators().UpdateStatus(ctx, updated, metav1.UpdateOptions{})
|
||||
if err == nil {
|
||||
logger.Debug("webhookauthenticator status successfully updated")
|
||||
logger.Debug("webhookauthenticator status successfully updated",
|
||||
"phase", updated.Status.Phase)
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user