~freyes/charm-grafana:minor-changes

Last commit made on 2021-09-15
Get this branch:
git clone -b minor-changes https://git.launchpad.net/~freyes/charm-grafana
Only Felipe Reyes can upload to this branch. If you are Felipe Reyes please log in for upload directions.

Branch merges

Branch information

Name:
minor-changes
Repository:
lp:~freyes/charm-grafana

Recent commits

e87f080... by Felipe Reyes

Minor refactor to _ensure_certs_permissions().

Move the assignment of inst_method to the beginning of the function and
use it in the rest of it instead of calling hookenv.config() many times.

176b342... by Felipe Reyes

Fix grammar errors in the comments.

1eaa29a... by Felipe Reyes

Fix format error

cb853f6... by Felipe Reyes

Add ssl_ca, ssl_cert and ssl_key config options

Reviewed-on: https://code.launchpad.net/~freyes/charm-grafana/+git/charm-grafana/+merge/407900
Reviewed-by: James Troup <email address hidden>

62caaf6... by Felipe Reyes

Add ssl_ca, ssl_cert and ssl_key config options

This change enables operators that want to pass manually generated
certificates instead of relating grafana charm to Vault to do it using
"juju config".

The functional test deploys a HTTP environment, then at the setup stage
a self-signed certificate is genenerated for grafana/0, then they are
set in grafana via 'juju config ssl_*' once the units are idle the rest
of the testing suite is executed.

Fixes-Bug: #1893137

3b7ba54... by Seyeong Kim

once prometheus is down or something wrong when grafana checks it then the status is blocked,
it is not going back to active unless we change config then it triggers proper function.

e.g juju config grafana debug=True or False

this patch includes code that status_set to active when prometheus returns 200

Reviewed-on: https://code.launchpad.net/~seyeongkim/charm-grafana/+git/charm-grafana/+merge/408267
Reviewed-by: James Troup <email address hidden>

ed36ef1... by Seyeong Kim

blocked to active when normal

628aeb5... by Felipe Reyes

Add tls-client layer to support HTTPS

Reviewed-on: https://code.launchpad.net/~freyes/charm-grafana/+git/charm-grafana/+merge/406763
Reviewed-by: James Troup <email address hidden>

8e1a7da... by Felipe Reyes

Wait until /etc/cron.d/juju-dashboards-backup appears

There is a race condition where the model will show itself as idle
while the cronjob installed to backup the dashboards hasn't showed up
in the file system.

This change will block the execution of
test_13_grafana_dashboard_backup() until the cronjob file appears.

44515aa... by Felipe Reyes

Replace assertTrue with assertIn, assertNotIn and assertEqual

This replacement helps to troubleshoot quicker tests failures.