-
Notifications
You must be signed in to change notification settings - Fork 125
docs: update the action how-to to explain the additionalProperties default flip #2249
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: update the action how-to to explain the additionalProperties default flip #2249
Conversation
5807472 to
a53d3bb
Compare
|
@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. |
There was a problem hiding this 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>
There was a problem hiding this 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
additionalPropertiesfield
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.
.../from-zero-to-hero-write-your-first-kubernetes-charm/expose-operational-tasks-via-actions.md
Outdated
Show resolved
Hide resolved
…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>
Juju 4 flips the default value of
additionalPropertiesfromtruetofalse(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.