Skip to content
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

Add default allow downgrades in carvel pkgs #4192

Merged
merged 4 commits into from
Feb 2, 2022

Conversation

antgamdia
Copy link
Contributor

Description of the change

This PR simply adds support for another default plugin-wide configuration as I commented at #4165 (comment).

More specifically, it enables users to decide whether or not the packages can be upgraded to a prior version, that is, a downgrade. This is done by adding (or not) an annotation in the PackageInstall objects.

Benefits

More customization options for Carvel plugin users.

Possible drawbacks

At the moment, this is a plugin-wide configuration, meaning it cannot be modified (yet) for specific packages.
Nevertheless, it is a good way to identify which config options we may want to add in the UI in the future,

Applicable issues

Additional information

N/A

Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com>
Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com>
Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com>
Copy link
Contributor

@absoludity absoludity left a comment

Choose a reason for hiding this comment

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

When you first mentioned this option, I'd not realised it would be setting an annotation on the installed packages (thought it would be affecting how we calculate the version selector). Not sure about setting the annotation as a blanket, but assume you've thought through the consequence (and it's a default that we may later enable changing per package etc.)

docs/user/managing-carvel-packages.md Outdated Show resolved Hide resolved
Co-authored-by: Michael Nelson <absoludity@gmail.com>
@antgamdia antgamdia merged commit cae43f8 into vmware-tanzu:main Feb 2, 2022
@antgamdia antgamdia deleted the addDefaultAllowDowngrades branch February 2, 2022 17:48
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.

None yet

2 participants