Skip to content

Commit

Permalink
fix(seldon operator): "Deployment differs"-logs will never show (#5141)
Browse files Browse the repository at this point in the history
Co-authored-by: xudwang <xudwang@paypal.com>
  • Loading branch information
caozhuozi and xudwang authored Oct 9, 2023
1 parent 1748a22 commit 46ef14e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions operator/controllers/seldondeployment_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -1730,14 +1730,14 @@ func (r *SeldonDeploymentReconciler) createDeployments(components *components, i
}
if !patchResult.IsEmpty() {
log.Info("Updating Deployment", "namespace", deploy.Namespace, "name", deploy.Name)
log.V(5).Info("Deployment differs", "patch result", patchResult.String())
log.V(1).Info("Deployment differs", "patch result", patchResult.String())
b, err := json.Marshal(deploy.Spec.Template.Spec)
if err == nil {
log.V(5).Info("Deployment differs", "existing", string(b))
log.V(1).Info("Deployment differs", "existing", string(b))
}
b2, err := json.Marshal(found.Spec.Template.Spec)
if err == nil {
log.V(5).Info("Deployment differs", "found", string(b2))
log.V(1).Info("Deployment differs", "found", string(b2))
}

desiredDeployment := found.DeepCopy()
Expand Down

0 comments on commit 46ef14e

Please sign in to comment.