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

fix(upgrade-job): set defaults for absent helm values #337

Merged
merged 1 commit into from
Sep 4, 2023

Conversation

niladrih
Copy link
Member

@niladrih niladrih commented Sep 4, 2023

The upgrade-job parses few specific values from the source mayastor helm chart's values.yaml. These are used to make conditional value 'sets'. Usually these values would always be available in the target helm chart, but it may be absent in the source helm chart (as it may have been added during later releases). It has to assume sane defaults for these values, so that the parse operation does not fail for the source helm chart.

Description

This PR sets default values for 'csi.image.snapshotterTag', 'csi.image.snapshotControllerTag' and 'eventing.enabled'.

N.B.:
These default values are not used in the final values set used with the helm upgrade. They are simply used to conveniently make decisions about 'special' yq set operations (e.g. changed default values, etc.). Values yaml for upgrade is generated using yq.

Copy link
Member

@Abhinandan-Purkait Abhinandan-Purkait left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks

@niladrih
Copy link
Member Author

niladrih commented Sep 4, 2023

bors merge

@bors bors bot merged commit 879e80b into openebs:develop Sep 4, 2023
@bors
Copy link
Contributor

bors bot commented Sep 4, 2023

Build succeeded!

The publicly hosted instance of bors-ng is deprecated and will go away soon.

If you want to self-host your own instance, instructions are here.
For more help, visit the forum.

If you want to switch to GitHub's built-in merge queue, visit their help page.

bors bot pushed a commit that referenced this pull request Sep 4, 2023
338: Cherry-pick #337 to release/2.4 branch r=niladrih a=niladrih

<!

Co-authored-by: Niladri Halder <[email protected]>
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.

4 participants