Skip to content

Commit

Permalink
Pass existing DS to updateDaemonSetStatus in updateDaemonSet when no …
Browse files Browse the repository at this point in the history
…change is required (#94)
  • Loading branch information
mantoine96 committed May 25, 2020
1 parent e44716e commit 04f8786
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/datadogagent/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ func (r *ReconcileDatadogAgent) updateDaemonSet(logger logr.Logger, dda *datadog
now := metav1.NewTime(time.Now())
if comparison.IsSameSpecMD5Hash(newHash, ds.GetAnnotations()) {
// no update needed so update the status and return
newStatus.Agent = updateDaemonSetStatus(newDS, newStatus.Agent, &now)
newStatus.Agent = updateDaemonSetStatus(ds, newStatus.Agent, &now)
return reconcile.Result{}, nil
}

Expand Down

0 comments on commit 04f8786

Please sign in to comment.