Use patches instead of deprecated patchesStrategicMerge
Remove hardcoded namespace from resources This is automatically added by the config kustomization. Having it requires overlays to specify namespace: system or others in their patches: target which is confusing.
Tests
Created a dummy config kustomization and tested that allow following scenarios result in the same kustomize build
Specifying the namespace: example-ns
Removing the namespace (results in exactly the same manifests, but with cosmos-operator-system as namespace ofc)
namespace: system
or others in theirpatches: target
which is confusing.Tests
Created a dummy config kustomization and tested that allow following scenarios result in the same kustomize build
example-ns
cosmos-operator-system
as namespace ofc)target
from the patch