-
Story
-
Resolution: Done
-
Medium
-
NONRTRIC Dev F1
Updating of dynamic configuration via REST does not work.
The problem is that the config cannot be updated via REST if the file is controlled by a configmap.
The configmap for PMS application will only be used for initial configuration after this change.
When the PMS is started, the initial configuration is copied to the configuration file location unless the configuration file is already there.
The configuration file moved to a persistent volume.
Details:
The configuration file is moved from
/opt/app/policy-agent/data/application_configuration.json -> /var/policy-management-service/application_configuration.json
/var/policy-management-service/ is mapped to a persistent volume claim.
Config map which now is only initial (installation) data is mapped to:
/etc/app/policy-management-service/initialdata
An init container copies the initial configuration file /etc/app/policy-management-service/initialdata/application_configuration.json to /var/policy-management-service/
unless it is already there.