Issue #1404 - App controller unnecessary set namespace to cluster level resources (#1405)

This commit is contained in:
Alexander Matyushentsev 2019-04-08 12:02:06 -07:00 committed by GitHub
parent 9988b3d8e6
commit 7382ebce27
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -262,7 +262,7 @@ func (m *appStateManager) CompareAppState(app *v1alpha1.Application, revision st
gvk := obj.GroupVersionKind()
resState := v1alpha1.ResourceStatus{
Namespace: util.FirstNonEmpty(obj.GetNamespace(), app.Spec.Destination.Namespace),
Namespace: obj.GetNamespace(),
Name: obj.GetName(),
Kind: gvk.Kind,
Version: gvk.Version,