Skip to content

Commit 8f117d5

Browse files
authored
Merge pull request #217 from willejs/add-start-reconciliation-event
2 parents f8b0c3a + 7156abc commit 8f117d5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

controllers/helmrelease_controller.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,11 +325,13 @@ func (r *HelmReleaseReconciler) reconcileRelease(ctx context.Context,
325325
// Deploy the release.
326326
var deployAction v2.DeploymentAction
327327
if rel == nil {
328+
r.event(ctx, hr, revision, events.EventSeverityInfo, "Helm install has started")
328329
deployAction = hr.Spec.GetInstall()
329330
rel, err = run.Install(hr, chart, values)
330331
err = r.handleHelmActionResult(ctx, &hr, revision, err, deployAction.GetDescription(),
331332
v2.ReleasedCondition, v2.InstallSucceededReason, v2.InstallFailedReason)
332333
} else {
334+
r.event(ctx, hr, revision, events.EventSeverityInfo, "Helm upgrade has started")
333335
deployAction = hr.Spec.GetUpgrade()
334336
rel, err = run.Upgrade(hr, chart, values)
335337
err = r.handleHelmActionResult(ctx, &hr, revision, err, deployAction.GetDescription(),

0 commit comments

Comments
 (0)