-
Sub-task
-
Resolution: Done
-
Medium
-
None
-
None
- (NEW) CBS-Client adapted to read configuration from the file on a configMap (convert yaml to json before sending config back to app)
- (OPTIONAL) CBS-Client is reading the file periodically, and updates the application config immediately after a read is completed.
- (NEW) CBS-Client is configurable on the location of the configuration file on the container FS (default: /app-config/application_config.yaml) via
ENV (CBS_CLIENT_CONFIG_PATH). If env is defined, use path provided to lookup config file otherwise use default. - Configuration source fallback is implemented:
- CBS-Client falls back to the CBS REST interface, in the absence of a configuration file in given location.
- CBS-Client falls back to the built-in container file configuration, if the CBS REST interface doesn`t respond
CBS client library : https://git.onap.org/dcaegen2/utils/tree/onap-dcae-cbs-docker-client