From ec600cb8a07f03b8d371eba288518fa3a84b35d1 Mon Sep 17 00:00:00 2001 From: Jon Huhn Date: Tue, 29 Jul 2025 14:30:46 -0500 Subject: [PATCH] :bug: Try to upgrade Releases in pending states --- internal/helm_client.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/internal/helm_client.go b/internal/helm_client.go index 2adb53bd..4d7749f9 100644 --- a/internal/helm_client.go +++ b/internal/helm_client.go @@ -463,6 +463,11 @@ func shouldUpgradeHelmRelease(ctx context.Context, existing helmRelease.Release, return true, nil } + if existing.Info.Status == helmRelease.StatusPendingInstall || existing.Info.Status == helmRelease.StatusPendingUpgrade { + log.Info("Release is in a pending state, upgrading") + return true, nil + } + klog.V(2).Infof("Diff between values is:\n%s", cmp.Diff(existing.Config, values)) // TODO: Comparing yaml is not ideal, but it's the best we can do since DeepEquals fails. This is because int64 types