ansible-devops
ansible-devops copied to clipboard
Grafana role replaces entire cluster-monitoring-config CM instead of patching
Collection version
22.5.2
Environment information
quay.io/ibmmas/cli:10.9.2
What happened?
When install_core playbook is run, by default it also installs grafana. Grafana role changes the CM named cluster-monitoring-config to include enableUserWorkload: true parameter. However, the CM is not patched, but replaced. If there was any previous configuration in the CM it is lost. Corresponding code: file ibm/mas_devops/roles/grafana/tasks/install/main.yml lines 9-23. Expected behaviour: grafana role should append enableUserWorkload: true to current configuration stored in ConfigMap if that parameter is not set.
Relevant log output
n/a