Skip to content

Commit

Permalink
show version in the status as well (#139)
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Ng <ming@redhat.com>
  • Loading branch information
mikeshng committed Mar 24, 2022
1 parent 14a4926 commit cd5fbb2
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,8 @@ func (r *ReconcileHelmRelease) install(instance *appv1.HelmRelease, manager helm
}

if installedRelease != nil && installedRelease.Manifest != "" && instance.OwnerReferences != nil {
r.populateAppSubStatus(installedRelease.Manifest, instance, manager, string(appSubStatusV1alpha1.PackageDeployed), string(appv1.ReasonInstallSuccessful))
r.populateAppSubStatus(installedRelease.Manifest, instance, manager, string(appSubStatusV1alpha1.PackageDeployed),
instance.Repo.Version+" "+string(appv1.ReasonInstallSuccessful))
}

return reconcile.Result{}, err
Expand Down Expand Up @@ -567,7 +568,8 @@ func (r *ReconcileHelmRelease) upgrade(instance *appv1.HelmRelease, manager helm
}

if upgradedRelease != nil && upgradedRelease.Manifest != "" && instance.OwnerReferences != nil {
r.populateAppSubStatus(upgradedRelease.Manifest, instance, manager, string(appSubStatusV1alpha1.PackageDeployed), string(appv1.ReasonUpgradeSuccessful))
r.populateAppSubStatus(upgradedRelease.Manifest, instance, manager, string(appSubStatusV1alpha1.PackageDeployed),
instance.Repo.Version+" "+string(appv1.ReasonUpgradeSuccessful))
}

return reconcile.Result{}, err
Expand Down

0 comments on commit cd5fbb2

Please sign in to comment.