Problem
In multiple places the controller assumes that other system components are deployed in the sdc-system namespace.
https://github.com/sdcio/config-server/blob/main/pkg/sdc/schemaserver/client/client.go#L32
https://github.com/sdcio/config-server/blob/main/pkg/sdc/dataserver/client/client.go#L34
This means if you deploy sdc to a different namespace additional configuration (setting SDC_DATA_SERVER environment variable is required for the application to function correctly.
Suggested solution
We should instead assume that all components of the application are deployed in the same namespace and use the POD_NAMESPACE environment variable (instead of hard-coding to sdc-system to construct the default schema server and data server addresses.