Skip to content

Support Multiple Labels In Environment Repositories #2449

@ats1999

Description

@ats1999

My spring cloud config server is using JDBC as backend. My requirement is to use multiple labels to fetch config.

When fetching data using http://localhost:8888/test_app,test_app2/dev,prod/master URL i am getting the following response

{
  "name": "test_app,test_app2",
  "profiles": [
    "dev,prod"
  ],
  "label": "master",
  "version": null,
  "state": null,
  "propertySources": [
    {
      "name": "test_app2-prod",
      "source": {
        "name_dev": "rahul_dev9999"
      }
    },
    {
      "name": "test_app-prod",
      "source": {
        "name": "rahul"
      }
    },
    {
      "name": "test_app2-dev",
      "source": {
        "name_dev": "rahul_dev9999"
      }
    },
    {
      "name": "test_app-dev",
      "source": {
        "name_dev": "rahul_dev"
      }
    }
  ]
}

But getting empty response after adding another label, http://localhost:8888/test_app,test_app2/dev,prod/master,feature

{
  "name": "test_app,test_app2",
  "profiles": [
    "dev,prod"
  ],
  "label": "master,feature",
  "version": null,
  "state": null,
  "propertySources": []
}

Is this supported by spring cloud config?

It is required when working on feature branch, i want all configs to be pulled from master label while certain config from feature label.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions