1
0
mirror of https://github.com/rancher/rke.git synced 2025-09-25 06:33:56 +00:00

fix error handling

This commit is contained in:
Rayan Das
2022-04-19 20:37:34 +05:30
parent 0156604790
commit c8a73fd90d

View File

@@ -188,7 +188,7 @@ func (c *Cluster) deployUserAddOns(ctx context.Context) error {
if c.Addons != "" {
addonJobExists, err := addons.AddonJobExists(UserAddonJobName, c.LocalKubeConfigPath, c.K8sWrapTransport)
if err != nil {
return nil
return err
}
if addonJobExists {
log.Infof(ctx, "[addons] Removing old user addons")