amenezes / config-client

config-client package for spring cloud config and cloud foundry
https://config-client.amenezes.net/
Apache License 2.0
24 stars 18 forks source link

Support for p.config-server #35

Closed samarsinghal closed 4 years ago

samarsinghal commented 4 years ago

The library is working fine for Spring Cloud Services 1.x and 2.x (p-config-server) but failing for 3.x config server service instances (p.config-server).

Below files need to be updated to support p.config-server along with p-config-server

config/cfenv.py
 config/cloudfoundry.py
 tests/unit/test_cfenv.py
 tests/unit/test_oauth2.py

amenezes commented 4 years ago

@samarsinghal sorry for delay. Did you try use as in the example below?

from config.cf import CF
from config.cfenv import CFenv

cf = CF(cfenv=CFEnv(vcap_service_prefix="p.config-server"))
cf.get_config()

Could you share some log with me?

amenezes commented 4 years ago

@samarsinghal I will close this issue for now. If you have any update, some data to share or log, that help me to understand whats happen or some feedback from my last comment I'd be happy to be able to help you.