Skip to content

Commit

Permalink
fix(seldon operator): "Deployment differs"-logs will never show
Browse files Browse the repository at this point in the history
  • Loading branch information
xudwang committed Sep 27, 2023
1 parent 1748a22 commit e403458
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 e403458

Please sign in to comment.