Update matchAllDomainsNumLabels and numLabelsSpecificMatch

These variables seem like they should be updated when updating the thing they are supposed to be derived from.

Signed-off-by: Dobes Vandermeer <dobesv@gmail.com>
This commit is contained in:
Dobes Vandermeer
2019-05-24 09:57:53 +01:00
committed by Michael Tsang
parent 52ce959356
commit 6d28bee388
+2
View File
@@ -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
}
}