-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
admin: fix /server_info hot restart version #8022
Changes from all commits
4bc2392
b626d60
8e33783
23939c1
a54e576
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -245,14 +245,15 @@ TEST_F(OptionsImplTest, OptionsAreInSyncWithProto) { | |
Server::CommandLineOptionsPtr command_line_options = options->toCommandLineOptions(); | ||
// Failure of this condition indicates that the server_info proto is not in sync with the options. | ||
// If an option is added/removed, please update server_info proto as well to keep it in sync. | ||
// Currently the following 5 options are not defined in proto, hence the count differs by 5. | ||
// Currently the following 7 options are not defined in proto, hence the count differs by 7. | ||
// 1. version - default TCLAP argument. | ||
// 2. help - default TCLAP argument. | ||
// 3. ignore_rest - default TCLAP argument. | ||
// 4. use-libevent-buffers - short-term override for rollout of new buffer implementation. | ||
// 5. allow-unknown-fields - deprecated alias of allow-unknown-static-fields. | ||
// 6. use-fake-symbol-table - short-term override for rollout of real symbol-table implementation. | ||
EXPECT_EQ(options->count() - 6, command_line_options->GetDescriptor()->field_count()); | ||
// 7. hot restart version - print the hot restart version and exit. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure why this doesn't sync? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What do you mean? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't understand why this option isn't defined in the proto as per this test comment? It's defined above! :) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I removed this option from the proto. It's a CLI option that forces Envoy to exit and print the hot restart version, thus it would never be set to true, so it makes no sense. I moved this output to ServerInfo... |
||
EXPECT_EQ(options->count() - 7, command_line_options->GetDescriptor()->field_count()); | ||
} | ||
|
||
TEST_F(OptionsImplTest, BadCliOption) { | ||
|
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.
Since this is
v2alpha
, you have API sign-off.