go report card fixes (#3182)
Went over the list at https://goreportcard.com/report/github.com/coredns/coredns and removed/fix some code to make it slightly happier. Signed-off-by: Miek Gieben <miek@miek.nl>
This commit is contained in:
parent
62451fd3eb
commit
07748d0c34
5 changed files with 2 additions and 13 deletions
|
@ -78,7 +78,7 @@ func generateEndpoints(cidr string, client kubernetes.Interface) {
|
|||
},
|
||||
}
|
||||
ep.ObjectMeta.Name = "svc" + strconv.Itoa(count)
|
||||
_, err = client.CoreV1().Endpoints("testns").Create(ep)
|
||||
client.CoreV1().Endpoints("testns").Create(ep)
|
||||
count++
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue