-
Notifications
You must be signed in to change notification settings - Fork 54
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
cli: save Helm charts to disk before running upgrades #2305
Conversation
Coverage report
|
This could be a good chance to add a unit test with some default setups for the CSPs and to check that the chart is rendered as expected. Happy to help out |
Can we document this behavior in https://docs.edgeless.systems/constellation/workflows/upgrade? |
I think this feature should be released with #2310 to be able to actually skip the apply. Can we document this at the same time? (The user can review the helm chart files and skip the helm chart application through |
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.
lgtm besides open points
I'm not sure how well this would fit a unit test.
Saving the charts to disk does not actually perform any rendering of the charts. We do not template the charts, we simply save the chart we previously loaded from the embedded file system.
Please view the linked ticket in the PR description
This is not what this feature implementation was made for. It is intended to allow for better troubleshooting in case of failing to upgrade helm charts during |
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.
LGTM and testing was successful.
6e8ddc6
to
32d6420
Compare
This comment was marked as spam.
This comment was marked as spam.
Would it be valuable to add this in AB#3413 though since we now support this review? |
Fair point, only real rendering (through dry-run) could probably provide any value and also OS makes the testing less ideal. |
32d6420
to
5407235
Compare
Signed-off-by: Daniel Weiße <[email protected]>
5407235
to
5b194d3
Compare
Context
constellation upgrade apply
upgrades and/or installs chart to the cluster.What charts are used for this, and how the values look can be rather hard to determine for a user, making potential troubleshooting difficult.
Additionally, the values used to apply these upgrades are not shown or saved anywhere.
Proposed change(s)
constellation upgrade apply
to disk before running said operationSaveCharts
method to the Helm interfaceconstellation-upgrade/upgrade-<timestamp>-<uid>
SaveChart
method that is called by the interface<dir>/helm-install
<dir>/helm-upgrade
overrides.yaml
in the chart directoryAdditional info
SaveDir
function from helm'schartutil
package because the original function saved dependencies as tar files instead of writing chart files directly.Checklist