You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge pull request juju#17578 from hpidcock/rootless-3.6
juju#17578
Uses updated pebble version with pebble identities so that the charm container in a k8s deployment can run without root and connect to the pebble instances running in the workload containers (who may be running as a different user).
With this patch the charm can specify in the metadata.yaml a charm-user field with either the values root, non-root or sudoer.
|charm-user|user|user-id|
|-|-|-|
|root|root|0|
|non-root|juju|170|
|sudoer|sjuju|171|
## QA steps
- test root charm can be deployed
- test model with root charm from 3.5 can be model migrated
- test rootless charm can be deployed (with charm-user: non-root and charm-user: sudoer) works
- run integration tests `./main.sh -p k8s -c minikube sidecar test_rootless`
## Documentation changes
Document in metadata.yaml docs the `charm-user` field.
## Links
**Jira card:** JUJU-5130
0 commit comments