diff --git a/pkg/k8splan/watcher.go b/pkg/k8splan/watcher.go index 36e2a491..cca7a26d 100644 --- a/pkg/k8splan/watcher.go +++ b/pkg/k8splan/watcher.go @@ -264,7 +264,7 @@ func (w *watcher) start(ctx context.Context) { } } - if errorFromApply != nil || wasFailedPlan { + if errorFromApply != nil || (wasFailedPlan && !needsApplied) { logrus.Debugf("[K8s] Plan with checksum (%s) failed during application", cp.Checksum) // Update the corresponding counts/outputs secret.Data[failedChecksumKey] = []byte(cp.Checksum)