mirror of
https://github.com/wahyd4/cert-manager.git
synced 2026-08-22 19:46:53 +10:00
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:
committed by
Michael Tsang
parent
52ce959356
commit
6d28bee388
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user