fix(action): return an error if len > 0

Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
pull/6217/head
Matthew Fisher 5 years ago
parent fddf066121
commit 4c366c972d
No known key found for this signature in database
GPG Key ID: 92AA783CBAAE8E3B

@ -116,8 +116,10 @@ func (cfg *Configuration) deleteHookByPolicy(h *release.Hook, policy release.Hoo
return errors.Wrapf(err, "unable to build kubernetes object for deleting hook %s", h.Path)
}
_, errs := cfg.KubeClient.Delete(resources)
if len(errs) > 0 {
return errors.New(joinErrors(errs))
}
}
return nil
}

Loading…
Cancel
Save