Code linting
This commit is contained in:
parent
aa8c66ec01
commit
45c77a951d
4 changed files with 6 additions and 11 deletions
|
|
@ -58,10 +58,9 @@ import (
|
|||
)
|
||||
|
||||
const (
|
||||
defUpstreamName = "upstream-default-backend"
|
||||
defServerName = "_"
|
||||
podStoreSyncedPollPeriod = 1 * time.Second
|
||||
rootLocation = "/"
|
||||
defUpstreamName = "upstream-default-backend"
|
||||
defServerName = "_"
|
||||
rootLocation = "/"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
@ -1043,7 +1042,7 @@ func (ic *GenericController) getEndpoints(
|
|||
// avoid duplicated upstream servers when the service
|
||||
// contains multiple port definitions sharing the same
|
||||
// targetport.
|
||||
adus := make(map[string]bool, 0)
|
||||
adus := make(map[string]bool)
|
||||
|
||||
// ExternalName services
|
||||
if s.Spec.Type == api.ServiceTypeExternalName {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue