-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
upgrade: unit tests #2672
upgrade: unit tests #2672
Conversation
This change introduces some unit tests on individual methods in the upgrade code path, along with some minor cleanup. Part of #2637 Signed-off-by: Andrew Seigner <[email protected]>
Integration test results for 9ba396d: success 🎉 |
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. Just some minor comments and TIOLI.
@@ -482,6 +483,7 @@ func toPromLogLevel(level string) string { | |||
} | |||
} | |||
|
|||
// TODO: are `installValues.Configs` and `configs` redundant? |
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.
I think installValues.Configs
is used in the chart/templates/config.yaml
helm chart template. Essentially, it's the JSON of configs
.
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.
I think my question is more around: If installValues.Configs
and configs
are just different representations of the same data, can we just keep one copy of that data around, and generate one version from the other on-demand? Any time we have multiple copies of the same data, I get concerned about which version is the source of truth, and what happens if they are not in sync.
9003ace
to
9ba396d
Compare
Integration test results for 9ba396d: success 🎉 |
Signed-off-by: Andrew Seigner <[email protected]>
Integration test results for 3ca1c3c: success 🎉 |
This change introduces some unit tests on individual methods in the
upgrade code path, along with some minor cleanup.
Part of #2637
Signed-off-by: Andrew Seigner [email protected]