chore: update golangci-lint-1.23.3

`gomnd` disabled, as it complains about every number used in the code,
and `wsl` became much more thorough.

Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
This commit is contained in:
Andrey Smirnov
2020-02-04 19:21:34 +03:00
committed by Andrew Rynhard
parent a2dee289d1
commit 01d696ed10
15 changed files with 47 additions and 1 deletions

View File

@@ -275,12 +275,14 @@ func (h *Client) Drain(node string) error {
for _, pod := range pods.Items {
go func(p corev1.Pod) {
defer wg.Done()
for _, ref := range p.ObjectMeta.OwnerReferences {
if ref.Kind == "DaemonSet" {
log.Printf("skipping DaemonSet pod %s\n", p.GetName())
return
}
}
if err := h.evict(p, int64(60)); err != nil {
log.Printf("WARNING: failed to evict pod: %v", err)
}