ansible-devops icon indicating copy to clipboard operation
ansible-devops copied to clipboard

Grafana role replaces entire cluster-monitoring-config CM instead of patching

Open witekwww opened this issue 1 year ago • 0 comments

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

witekwww avatar Oct 03 '24 06:10 witekwww