From 5ee875afbde28071d9c4971df69a45e3557e1bac Mon Sep 17 00:00:00 2001 From: stefanprodan Date: Wed, 29 Apr 2020 08:49:45 +0300 Subject: [PATCH] status: add revision to the ready condition message --- controllers/gitrepository_controller.go | 2 +- controllers/helmchart_controller.go | 2 +- controllers/helmrepository_controller.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/controllers/gitrepository_controller.go b/controllers/gitrepository_controller.go index 3cd49e613..77deb35a8 100644 --- a/controllers/gitrepository_controller.go +++ b/controllers/gitrepository_controller.go @@ -358,7 +358,7 @@ func (r *GitRepositoryReconciler) sync(ctx context.Context, repository sourcev1. return sourcev1.GitRepositoryNotReady(repository, sourcev1.StorageOperationFailedReason, err.Error()), err } - message := fmt.Sprintf("Git repoistory artifacts are available at: %s", artifact.Path) + message := fmt.Sprintf("Fetched revision: %s", artifact.Revision) return sourcev1.GitRepositoryReady(repository, artifact, url, sourcev1.GitOperationSucceedReason, message), nil } diff --git a/controllers/helmchart_controller.go b/controllers/helmchart_controller.go index 2bdcb3748..541414063 100644 --- a/controllers/helmchart_controller.go +++ b/controllers/helmchart_controller.go @@ -248,7 +248,7 @@ func (r *HelmChartReconciler) sync(ctx context.Context, repository sourcev1.Helm return sourcev1.HelmChartNotReady(chart, sourcev1.StorageOperationFailedReason, err.Error()), err } - message := fmt.Sprintf("Helm chart is available at: %s", artifact.Path) + message := fmt.Sprintf("Fetched revision: %s", artifact.Revision) return sourcev1.HelmChartReady(chart, artifact, chartUrl, sourcev1.ChartPullSucceededReason, message), nil } diff --git a/controllers/helmrepository_controller.go b/controllers/helmrepository_controller.go index 80fba9fc3..925dc9208 100644 --- a/controllers/helmrepository_controller.go +++ b/controllers/helmrepository_controller.go @@ -216,7 +216,7 @@ func (r *HelmRepositoryReconciler) sync(ctx context.Context, repository sourcev1 return sourcev1.HelmRepositoryNotReady(repository, sourcev1.StorageOperationFailedReason, err.Error()), err } - message := fmt.Sprintf("Helm repository index is available at: %s", artifact.Path) + message := fmt.Sprintf("Fetched revision: %s", artifact.Revision) return sourcev1.HelmRepositoryReady(repository, artifact, indexURL, sourcev1.IndexationSucceededReason, message), nil }