Context
The charm should avoid to be stateful whenever possible.
In particular, configuration files should not be part of a PVC.
This can be achieved with the following steps.
Rock
The underlying rock needs to be modified so that the configuration path is owned by _daemon_:
mlmd:
override-build:
...
# make config dir
mkdir -p $CRAFT_PART_INSTALL/config
non-root-user:
plugin: nil
override-prime: |
craftctl default
install -d -o 584792 -g 584792 -m 770 \
config
Charm
In the metadata.yaml any storage and mounts reference needs to be removed.
In the charm, any check on storage availability needs to be removed.
Unit tests might to be updated to remove harness.attach_storage() call if present.
What needs to get done
- Update rock
- Update charm
- Backport change
Definition of Done
- Rock is updated
- Charm is updated
- New rock is integrated
- Tests are passing
- Change is backported
Context
The charm should avoid to be stateful whenever possible.
In particular, configuration files should not be part of a PVC.
This can be achieved with the following steps.
Rock
The underlying rock needs to be modified so that the configuration path is owned by
_daemon_:Charm
In the
metadata.yamlanystorageandmountsreference needs to be removed.In the charm, any check on storage availability needs to be removed.
Unit tests might to be updated to remove
harness.attach_storage()call if present.What needs to get done
Definition of Done