Skip to content

Commit 3bc631c

Browse files
author
Kalen Wessel
committed
Refactor cluster iteration to use the correct data structure in GenerateParams function
1 parent bfe1df6 commit 3bc631c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/generator/cluster.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ func (g *ClusterGenerator) GenerateParams(appSetGenerator *argoappsetv1alpha1.Ap
9494

9595
var secretsFound []corev1.Secret
9696

97-
for _, cluster := range clustersFromArgoCD.Items {
97+
for _, cluster := range clustersFromArgoCD {
9898

9999
// If there is a secret for this cluster, then it's a non-local cluster, so it will be
100100
// handled by the next step.

0 commit comments

Comments
 (0)