Skip to content

Commit 37ae172

Browse files
committed
update property
1 parent 21c6b23 commit 37ae172

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

source/Calamari/ArgoCD/Conventions/UpdateArgoCDAppImagesInstallConvention.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ ProcessApplicationResult ProcessApplication(ArgoCDApplicationDto application,
134134

135135
return new ProcessApplicationResult(applicationName.ToApplicationName())
136136
{
137+
UpdatedSourceCount = updatedSourcesResults.Count,
137138
TotalSourceCount = applicationFromYaml.Spec.Sources.Count,
138139
MatchingSourceCount = applicationFromYaml.Spec.Sources.Count(s => deploymentScope.Matches(ScopingAnnotationReader.GetScopeForApplicationSource(s.Name.ToApplicationSourceName(), applicationFromYaml.Metadata.Annotations, containsMultipleSources))),
139140
GitReposUpdated = updatedSourcesResults.Select(r => r.applicationSource.Source.RepoUrl.AbsoluteUri).ToHashSet(),
@@ -597,7 +598,7 @@ public ProcessApplicationResult(ApplicationName applicationName)
597598
public ApplicationName ApplicationName { get; }
598599
public HashSet<string> UpdatedImages { get; set; } = new HashSet<string>();
599600

600-
public int UpdatedSourceCount => GitReposUpdated.Count;
601+
public int UpdatedSourceCount { get; set; }
601602
public bool Updated => UpdatedSourceCount > 0;
602603
}
603604
}

0 commit comments

Comments
 (0)