Merge pull request #48 from fluxcd/status-message

status: add revision to the ready condition message
This commit is contained in:
Stefan Prodan 2020-04-29 10:43:57 +03:00 committed by GitHub
commit af77de193b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -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
}

View File

@ -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
}

View File

@ -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
}