add dnsStore interface for upcoming operator webhook (#10077)

This commit is contained in:
Harshavardhana
2020-07-20 12:28:48 -07:00
committed by GitHub
parent 518f44908c
commit 9fd836e51f
7 changed files with 43 additions and 11 deletions

View File

@@ -44,8 +44,8 @@ func (t *apiConfig) init(cfg api.Config) {
}
apiRequestsMax := cfg.APIRequestsMax
if len(globalEndpoints.Hosts()) > 0 {
apiRequestsMax /= len(globalEndpoints.Hosts())
if len(globalEndpoints.Hostnames()) > 0 {
apiRequestsMax /= len(globalEndpoints.Hostnames())
}
t.requestsPool = make(chan struct{}, apiRequestsMax)