Skip to content

Conversation

@hpidcock
Copy link
Member

@hpidcock hpidcock commented Dec 4, 2023

Adds new metadata fields required to enable rootless charms on Kubernetes.

  • add the uid and gid fields to each container in the containers section which can be omitted.
  • limit the uid and gid values to less than 1000 and greater than 9999 as per the spec.
  • add the charm-user field which can be omitted, with values of root, sudoer and non-root.

QA

Run unit tests.

Links

Specs: JU074 JU075
Jira: JUJU-5123 JUJU-5127

Copy link
Contributor

@ycliuhw ycliuhw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, ty!

@hpidcock
Copy link
Member Author

hpidcock commented Dec 5, 2023

/build

@hpidcock
Copy link
Member Author

hpidcock commented Dec 5, 2023

/merge

@jujubot jujubot merged commit cbe04c8 into juju:v12 Dec 5, 2023
jujubot added a commit to juju/juju that referenced this pull request Dec 5, 2023
#16666

Bumps github.com/juju/charm to v12.0.0 to include new `metadata.yaml` options from juju/charm#420 and juju/charm#421

## QA steps

Can deploy a charm.

## Links

**Jira card:** JUJU-5151
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants