Merge pull request #1715 from dobesv/patch-1
Fix logic to select the solver that has the most labels
This commit is contained in:
commit
5908d2f181
@ -495,6 +495,7 @@ func determineSolverConfigToUse(candidates []cmapi.ACMEChallengeSolver, authz *a
|
||||
if len(d.Selector.MatchLabels) > matchAllDomainsNumLabels || matchAll == nil {
|
||||
matchAll = &d
|
||||
matchAllToSolve = acmech
|
||||
matchAllDomainsNumLabels = len(d.Selector.MatchLabels)
|
||||
}
|
||||
}
|
||||
for _, dom := range d.Selector.DNSNames {
|
||||
@ -504,6 +505,7 @@ func determineSolverConfigToUse(candidates []cmapi.ACMEChallengeSolver, authz *a
|
||||
if len(d.Selector.MatchLabels) > numLabelsSpecificMatch || specificMatch == nil {
|
||||
specificMatch = &d
|
||||
specificMatchToSolve = acmech
|
||||
numLabelsSpecificMatch = len(d.Selector.MatchLabels)
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user