Skip to content

Commit

Permalink
Merge pull request #145 from fluxcd/fix-error-event
Browse files Browse the repository at this point in the history
Set correct status on failure events
  • Loading branch information
stefanprodan authored Oct 15, 2020
2 parents e1c7fb1 + 826051a commit 7ec4445
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/kustomization_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ func (r *KustomizationReconciler) Reconcile(req ctrl.Request) (ctrl.Result, erro
reconciledKustomization, reconcileErr := r.reconcile(*kustomization.DeepCopy(), source)
if reconcileErr != nil {
// broadcast the error
r.event(kustomization, source.GetArtifact().Revision, events.EventSeverityError, reconcileErr.Error(), nil)
r.event(reconciledKustomization, source.GetArtifact().Revision, events.EventSeverityError, reconcileErr.Error(), nil)
}

// update status
Expand Down

0 comments on commit 7ec4445

Please sign in to comment.