lp:~exsdev/landscape-client-charm/juju-app-annotator
- Get this branch:
- bzr branch lp:~exsdev/landscape-client-charm/juju-app-annotator
Branch merges
- 🤖 Landscape Builder: Needs Fixing (test results)
- Landscape: Pending requested
-
Diff: 339 lines (+268/-1)6 files modifiedfiles/landscape-annotator.cron (+1/-0)
files/landscape-annotator.sudoers (+1/-0)
files/landscape_annotator.py (+105/-0)
hooks/hooks.py (+2/-1)
hooks/install.py (+28/-0)
tests/20-landscape-annotator.py (+131/-0)
Branch information
Recent revisions
- 73. By Edin S
-
Add script and supporting files for registering juju apps as Landscape annotations
A few notes about the design choices:
1. The script is run via a cronjob
The alternative (which was attempted previously) was to run register
annotation code whenever charms were deployed/removed. The issue with
this design is that removing other subordinate charms (e.g. filebeat)
did not trigger any code in this charm (e.g. config-changed, or
update-status) to ensure frequent updates of annotations.2. Annotation deployment status (e.g. deployed/removed) are tracked
via annotation values: deployed={true,false} .
This is required to keep track of which applications have been
removed. While annotations are registered by creating a file in
annotations.d, removing the same file does not remove the
annotation. As such annotations are always kept around, but their
values/contents are changed (e.g. deployed=true ->
deployed=false). The accompanying landscape-tagger code then
adds/removes the annotations as tags on landscape-server. - 69. By Simon Poirier
-
Merge sync-charmhelpe
rs-and- keys [f=1834223] [r=roadmr, landscape- builder] [a=Simon Poirier]
Sync charmhelpers to avoid key errors on refresh. - 66. By Simon Poirier
-
Merge 1750668_
bionic_ py3_support [f=1750668] [r=chad. smith,landscape -builder] [a=Simon Poirier]
Wrap hooks hooks to run on version used by landscape-client and correct a couple imports which changed.
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp:landscape-client-charm