Skip to content

[Feature Request] Make intra app communications namespace aware #419

@markafarrell

Description

@markafarrell

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions