@@ -113,7 +113,7 @@ const (
113
113
)
114
114
115
115
// GitRepositoryReady sets the given artifact and url on the
116
- // HelmRepository and resets the conditions to SourceCondition of
116
+ // GitRepository and resets the conditions to SourceCondition of
117
117
// type Ready with status true and the given reason and message.
118
118
// It returns the modified GitRepository.
119
119
func GitRepositoryReady (repository GitRepository , artifact Artifact , url , reason , message string ) GitRepository {
@@ -139,7 +139,23 @@ func GitRepositoryReady(repository GitRepository, artifact Artifact, url, reason
139
139
return repository
140
140
}
141
141
142
- // GitRepositoryNotReady resets the conditions of the HelmRepository
142
+ // GitRepositoryProgressing resets the conditions of the GitRepository
143
+ // to SourceCondition of type Ready with status unknown and
144
+ // progressing reason and message. It returns the modified GitRepository.
145
+ func GitRepositoryProgressing (repository GitRepository ) GitRepository {
146
+ repository .Status .Conditions = []SourceCondition {
147
+ {
148
+ Type : ReadyCondition ,
149
+ Status : corev1 .ConditionUnknown ,
150
+ LastTransitionTime : metav1 .Now (),
151
+ Reason : ProgressingReason ,
152
+ Message : "reconciliation in progress" ,
153
+ },
154
+ }
155
+ return repository
156
+ }
157
+
158
+ // GitRepositoryNotReady resets the conditions of the GitRepository
143
159
// to SourceCondition of type Ready with status false and the given
144
160
// reason and message. It returns the modified GitRepository.
145
161
func GitRepositoryNotReady (repository GitRepository , reason , message string ) GitRepository {
0 commit comments