Merge ~prometheus-charmers/charm-prometheus2:core-resource into ~prometheus-charmers/charm-prometheus2:master
Status: | Merged |
---|---|
Approved by: | Kevin W Monroe |
Approved revision: | d7199e79fa9c95561a2750a1c6bca0da0619d403 |
Merged at revision: | 89dc19ff15b5b7dfcd268c2027e0ff7e0530d607 |
Proposed branch: | ~prometheus-charmers/charm-prometheus2:core-resource |
Merge into: | ~prometheus-charmers/charm-prometheus2:master |
Diff against target: |
96 lines (+51/-3) 4 files modified
Makefile (+42/-0) README.md (+4/-3) metadata.yaml (+4/-0) reactive/prometheus.py (+1/-0) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Stuart Bishop (community) | Approve | ||
Review via email:
|
Commit message
lp:1828063 add a core.snap resource to facilitate offline installs
Description of the change
The core snap is required by the prometheus snap. To facilitate offline deployment, users need the ability to attach a core.snap resource in addition to the prometheus.snap resource.
A downside of this is that future prometheus2 charm releases will need to have a zero-byte core.snap resource attached, as in:
rm /tmp/core.snap && touch /tmp/core.snap
charm push /path/to/
charm release <prometheus2-X> --resource core-0 --resource prometheus-Y
For normal deployments, layer-snap will recognize that core.snap is a 0-byte resource and will fall back to installing from the snap store. For offline deployments, users will need to attach the desired core.snap, as in:
juju deploy /path/to/
--resource core=/path/
--resource prometheus=
Also in offline deployments, we need to ensure the core.snap is installed prior to prometheus.snap, hence this is dependent on:
This merge proposal is being monitored by mergebot. Change the status to Approved to merge.