Skip to content

Conversation

@tonyandrewmeyer
Copy link
Collaborator

@tonyandrewmeyer tonyandrewmeyer commented Dec 18, 2025

Juju 4 flips the default value of additionalProperties from true to false (see juju/juju#21294). Add a note to the actions how-to guide that lets people know this and that they need to explicitly include the field if they want to ensure compatibility across Juju 3 and Juju 4.

@tonyandrewmeyer
Copy link
Collaborator Author

@james-garner-canonical I realised after opening this that it would be good to change the tutorial charm as well, so I've added that. Feel free to re-review or not as you please.

Copy link
Contributor

@dwilding dwilding left a comment

Choose a reason for hiding this comment

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

Good catch, thanks!

Co-authored-by: Dave Wilding <tech@dpw.me>
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR documents the breaking change in Juju 4 where the default value of additionalProperties flips from true to false. The documentation update guides users to explicitly set this field to ensure consistent behavior across Juju 3 and Juju 4 deployments.

  • Adds a prominent note to the actions how-to guide explaining the default value change
  • Updates all action examples to explicitly include the additionalProperties field

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
docs/howto/manage-actions.md Adds documentation explaining the additionalProperties default change between Juju 3 and 4
examples/k8s-5-observe/charmcraft.yaml Adds explicit additionalProperties: false to action definition
examples/k8s-4-action/charmcraft.yaml Adds explicit additionalProperties: False to action definition
docs/tutorial/from-zero-to-hero-write-your-first-kubernetes-charm/expose-operational-tasks-via-actions.md Adds explicit additionalProperties: False to tutorial action example

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

tonyandrewmeyer and others added 2 commits December 19, 2025 17:18
…arm/expose-operational-tasks-via-actions.md

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@tonyandrewmeyer tonyandrewmeyer merged commit 5f6c5f0 into canonical:main Dec 19, 2025
56 checks passed
@tonyandrewmeyer tonyandrewmeyer deleted the update-docs-additionalProperties branch December 19, 2025 05:34
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