Closed annashamray closed 7 months ago
Example:
export OPEN_ZAAK_DEFAULT_SELECTIELIJST_YEAR=2020
export OPEN_ZAAK_AUTH_APPLICATIONS=/volumes/auth.yaml
$ python src/manage.py setup_configuration --overwrite
This will set the default selectielijst year to 2020 and will store/overwrite all applications with the permission in the yaml file.
Description
Registration APIs (but not limited to these projects) should be configurable without manual actions in the Admin (following the configuration-as-code infrastructure principle). So the configuration using only environment variables is needed for the following APIs:
Tasklist
1st iteration
setup_configuration
, which would run through all the configuration steps, execute them and (optionally) self-test them. This management command should be run in non-interactive mode. It can be executed in k8s job or init container.overwrite
, which will replace the existing configuration - making the command viable for first-time setup or to enforce a specific configurationMIDDLEWARE
variableConfigurationStep
base class2nd iteration
zgw_consumers.Service
). The could be used to load data similar to django fixtures, but with a framework-agnostic format. Where relevant, the data in the YAML files should follow the shape/format as the API endpoints that disclose this information. The files can be mounted as files or configmaps (kubernetes) to provide them to the application container(s).Result / acceptance criteria
setup_configuration
command. The APIs should be able to interaction with each other and pass a smoke testRelated issues in other projects