-
Notifications
You must be signed in to change notification settings - Fork 51
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: remove/refactor upgrade package #2266
Conversation
✅ Deploy Preview for constellation-docs canceled.
|
47da689
to
52c2ca2
Compare
did you run an E2E upgrade? |
This is unrelated to this PR, and the problem was already fixed here: #2262 I'll rerun the test once a couple other PRs are merged, and I have rebased this branch |
@@ -6,11 +6,14 @@ SPDX-License-Identifier: AGPL-3.0-only | |||
package cmd | |||
|
|||
import ( | |||
"context" |
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.
Can you test that IAM upgrades still works (e.g. remove one permission and check if diff is applied)? Writing a test still seems different in the current code stage but would ofc be more sustainable
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.
Manual tests ran without problem.
I will start a couple automated upgrade tests later.
like the design changes, good job! |
efd33b3
to
a8e06b8
Compare
Signed-off-by: Daniel Weiße <dw@edgeless.systems>
Signed-off-by: Daniel Weiße <dw@edgeless.systems>
Signed-off-by: Daniel Weiße <dw@edgeless.systems>
Signed-off-by: Daniel Weiße <dw@edgeless.systems>
Signed-off-by: Daniel Weiße <dw@edgeless.systems>
Signed-off-by: Daniel Weiße <dw@edgeless.systems>
Signed-off-by: Daniel Weiße <dw@edgeless.systems>
Signed-off-by: Daniel Weiße <dw@edgeless.systems>
a8e06b8
to
d1ee331
Compare
sorry just realized that my review was pending |
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.
when the upgrade tests are green, lgtm
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.
Lovely.
Didn't do a detailed pass as it seems like Adrian already did.
* Move IAM migration client to cloudcmd package * Move Terraform Cluster upgrade client to cloudcmd package * Use hcl for creating Terraform IAM variables files * Unify terraform upgrade code * Rename some cloudcmd files for better clarity --------- Signed-off-by: Daniel Weiße <dw@edgeless.systems>
Context
The
upgrade
package does not need to exist, since the code fits well intocloudcmd
.Additionally, code in the package contains a lot of duplication and could use a general clean up.
Proposed change(s)
upgrade
package incli/internal/upgrade
cloudcmd
package incli/internal/cloudcmd
hcl
package, instead of using custom string methods