Used for DCAE Dockerized microservices written in Python. Pulls your configuration from the Config Binding Service
The environment that this client runs in, whether it be in Docker or "natively", needs to have the following env variables:
HOSTNAME
is the name of your component in ConsulCONFIG_BINDING_SERVICE
a resolvable hostname to the CBSDCAE_CA_CERTPATH
: a path to a cacert file to verify the running CBSSee the example
folder for a simple test client.
If the CBS is reachable, but your configuration key is not there, you will get a CantGetConfig exception:
onap_dcae_cbs_docker_client.exceptions.CantGetConfig
You can access the original HTTP status code and text via the code
and text
attributes.
If the CBS is unreachable, you will get an exception:
onap_dcae_cbs_docker_client.exceptions.CBSUnreachable
pip install onap-dcae-cbs-docker-client
tox
When changes are made, the versions to be bumped are in: