-
Notifications
You must be signed in to change notification settings - Fork 213
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
Fix semantics and rename http flag #2122
Conversation
@@ -133,6 +135,11 @@ func Run(ctx context.Context, logger log.Logger, reg *prometheus.Registry, flags | |||
defer closer() | |||
} | |||
|
|||
if flags.Port != "" { | |||
level.Warn(logger).Log("msg", "flag --port is deprecated, use --http-address instead") |
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.
We broke a bunch of flags in this release I think adding one more doesn’t make a difference
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.
Agreed.
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.
👍
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'd done it but then reverted; it broke the snap. I think this is one of the oldest flags, so let's not ruin the backward compatibility on this one.
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
b0a1d27
to
8ba259f
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.
🎉
Deprecate port flag Signed-off-by: Kemal Akkoyun <kakkoyun@gmail.com>
Signed-off-by: Kemal Akkoyun <kakkoyun@gmail.com>
acf6953
to
901df9f
Compare
847a695
to
901df9f
Compare
* Fix semantics for http address flag. Deprecate port flag Signed-off-by: Kemal Akkoyun <kakkoyun@gmail.com> * Address CI issues Signed-off-by: Kemal Akkoyun <kakkoyun@gmail.com> * CI fixes Signed-off-by: Kemal Akkoyun <kakkoyun@gmail.com> Signed-off-by: Kemal Akkoyun <kakkoyun@gmail.com>
Signed-off-by: Kemal Akkoyun kakkoyun@gmail.com