From 2f85cf19fc52a7780083a76c480eef791c0a37bb Mon Sep 17 00:00:00 2001 From: Kinara Shah Date: Wed, 27 Apr 2022 22:38:13 +0530 Subject: [PATCH] Revert "added logic which will reapply user addons after cluster upgrade" This reverts commit 3840eb5e5a0b0f4f6d877e41f8ab793b281f8787. --- cluster/addons.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/cluster/addons.go b/cluster/addons.go index c3535b33..6b7b2307 100644 --- a/cluster/addons.go +++ b/cluster/addons.go @@ -186,18 +186,6 @@ func (c *Cluster) deployK8sAddOns(ctx context.Context, data map[string]interface func (c *Cluster) deployUserAddOns(ctx context.Context) error { log.Infof(ctx, "[addons] Setting up user addons") if c.Addons != "" { - addonJobExists, err := addons.AddonJobExists(UserAddonJobName, c.LocalKubeConfigPath, c.K8sWrapTransport) - if err != nil { - return nil - } - if addonJobExists { - log.Infof(ctx, "[addons] Removing old user addons") - if err := c.doAddonDelete(ctx, UserAddonResourceName, false); err != nil { - return err - } - - log.Infof(ctx, "[addons] Old user addons removed successfully") - } if err := c.doAddonDeploy(ctx, c.Addons, UserAddonResourceName, false); err != nil { return err }