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

Merge pull request #2905 from rayandas/fix-error-handling

Fix error handling
This commit is contained in:
Rayan Das
2022-04-19 21:07:12 +05:30
committed by GitHub

View File

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