-
Notifications
You must be signed in to change notification settings - Fork 53
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: check chart versions against target version in users config before upgrading #2319
Conversation
✅ Deploy Preview for constellation-docs canceled.
|
Coverage report
|
db2a183
to
3146c37
Compare
LGTM. We definitely need those checks. I will let Adrian give the final approval as he is working on that code much more actively. |
"helm.sh/helm/v3/pkg/chart" | ||
) | ||
|
||
func TestAppendNewAction(t *testing.T) { |
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.
❤️
aaa97d9
to
36fcbdf
Compare
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.
should we run a no-op + upgrade test E2E before merging?
upgrade:
https://github.com/edgelesssys/constellation/actions/runs/6120817357
no-op:
https://github.com/edgelesssys/constellation/actions/runs/6120821079
Signed-off-by: Daniel Weiße <[email protected]>
Signed-off-by: Daniel Weiße <[email protected]>
Signed-off-by: Daniel Weiße <[email protected]>
36fcbdf
to
60f53f7
Compare
Context
Our CLI embeds the Helm charts used for the Kubernetes cluster.
For charts we pull in from external providers, the version of these charts is dependent on the version we set for that release.
For charts we package ourselves, the version of the chart is dependent on the version of the CLI binary.
For these charts, on
constellation upgrade apply
, we should only apply an upgrade if the version specifies in the user's config is an upgrade to the version running in their cluster. And only to the version set in the config.For this the Helm code is currently missing some checks.
Proposed change(s)
appendNewAction
methodAdditional info