-
Notifications
You must be signed in to change notification settings - Fork 403
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
feat: deprecate enforcesemver2 config option #522
Conversation
if err != nil { | ||
// TODO: this is an error if invalid semver, making "EnforceSemver2" useless... | ||
return filename, &HTTPError{http.StatusInternalServerError, err.Error()} |
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.
💭 While I get familiar with everything, should we return a 400
here and skip the call to ChartVersionFromStorageObject
entirely? We don't need the version for anything anymore
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.
yes, that sounds good
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.
cool, fixed in 2f11e50!
cdd5fec
to
d4fc0e8
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.
do we want a way to mark config options as deprecated and print warnings
yes, that would be great. Thanks @cbuto!
pkg/chartmuseum/server.go
Outdated
// EnforceSemver was deprecated, see https://github.com/helm/chartmuseum/issues/485 for more info | ||
EnforceSemver2: options.EnforceSemver2, | ||
Version: options.Version, | ||
CacheInterval: options.CacheInterval, |
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 place it at the bottom of the struct, so we can have a section for deprecated?
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.
done in 2f11e50 👍
if err != nil { | ||
// TODO: this is an error if invalid semver, making "EnforceSemver2" useless... | ||
return filename, &HTTPError{http.StatusInternalServerError, err.Error()} |
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.
yes, that sounds good
Signed-off-by: Casey Buto <[email protected]>
Signed-off-by: Casey Buto <[email protected]>
4894cdc
to
2f11e50
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.
👍
Cool @cbuto , it really do me a favor 🥳 |
This is a follow up on #482 to fully "deprecate" the
--enforce-semver2
flag. It seems like some of the documentation work is capture in #485, which I can follow up on.Also, do we want a way to mark config options as deprecated and print warnings if they are set on startup?