Skip to content

Commit af77de1

Browse files
authored
Merge pull request #48 from fluxcd/status-message
status: add revision to the ready condition message
2 parents 6ffb946 + 5ee875a commit af77de1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

controllers/gitrepository_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ func (r *GitRepositoryReconciler) sync(ctx context.Context, repository sourcev1.
358358
return sourcev1.GitRepositoryNotReady(repository, sourcev1.StorageOperationFailedReason, err.Error()), err
359359
}
360360

361-
message := fmt.Sprintf("Git repoistory artifacts are available at: %s", artifact.Path)
361+
message := fmt.Sprintf("Fetched revision: %s", artifact.Revision)
362362
return sourcev1.GitRepositoryReady(repository, artifact, url, sourcev1.GitOperationSucceedReason, message), nil
363363
}
364364

controllers/helmchart_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ func (r *HelmChartReconciler) sync(ctx context.Context, repository sourcev1.Helm
248248
return sourcev1.HelmChartNotReady(chart, sourcev1.StorageOperationFailedReason, err.Error()), err
249249
}
250250

251-
message := fmt.Sprintf("Helm chart is available at: %s", artifact.Path)
251+
message := fmt.Sprintf("Fetched revision: %s", artifact.Revision)
252252
return sourcev1.HelmChartReady(chart, artifact, chartUrl, sourcev1.ChartPullSucceededReason, message), nil
253253
}
254254

controllers/helmrepository_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ func (r *HelmRepositoryReconciler) sync(ctx context.Context, repository sourcev1
216216
return sourcev1.HelmRepositoryNotReady(repository, sourcev1.StorageOperationFailedReason, err.Error()), err
217217
}
218218

219-
message := fmt.Sprintf("Helm repository index is available at: %s", artifact.Path)
219+
message := fmt.Sprintf("Fetched revision: %s", artifact.Revision)
220220
return sourcev1.HelmRepositoryReady(repository, artifact, indexURL, sourcev1.IndexationSucceededReason, message), nil
221221
}
222222

0 commit comments

Comments
 (0)