diff --git a/controller/state.go b/controller/state.go index 98f2f88cc4..6d3a20afdb 100644 --- a/controller/state.go +++ b/controller/state.go @@ -437,6 +437,10 @@ func (m *appStateManager) CompareAppState(app *v1alpha1.Application, revision st } else { resState.Status = v1alpha1.SyncStatusCodeSynced } + // we can't say anything about the status if we were unable to get the target objects + if failedToLoadObjs { + resState.Status = v1alpha1.SyncStatusCodeUnknown + } managedResources[i] = managedResource{ Name: resState.Name, Namespace: resState.Namespace,