mirror of
https://github.com/lingble/talos.git
synced 2025-12-03 22:33:50 +00:00
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:
committed by
Andrew Rynhard
parent
a2dee289d1
commit
01d696ed10
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user