In parsing.RepoParser.GetApp, in the section where we are iterating through the JSON bytes of every resource:
Put the resource bytes into map[string]interface{}.
Check if the map has a metadata key, if it does, cast the value of this key into a k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta and then unset the Namespace field.
In
parsing.RepoParser.GetApp
, in the section where we are iterating through the JSON bytes of every resource:map[string]interface{}
.metadata
key, if it does, cast the value of this key into ak8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta
and then unset theNamespace
field.