-
Notifications
You must be signed in to change notification settings - Fork 5.5k
config: making v2-config-only a boolean flag #3847
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
Merged
Merged
Changes from 2 commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,8 +11,8 @@ following are the command line options that Envoy supports. | |
| *(optional)* The path to the v1 or v2 :ref:`JSON/YAML/proto3 configuration | ||
| file <config>`. If this flag is missing, :option:`--config-yaml` is required. | ||
| This will be parsed as a :ref:`v2 bootstrap configuration file | ||
| <config_overview_v2_bootstrap>` and on failure, subject to | ||
| :option:`--v2-config-only`, will be considered as a :ref:`v1 JSON | ||
| <config_overview_v2_bootstrap>`. On failure, if :option:`--allow-deprecated-v1-api`, | ||
| is set, it will be considered as a :ref:`v1 JSON | ||
| configuration file <config_overview_v1>`. For v2 configuration files, valid | ||
| extensions are ``.json``, ``.yaml``, ``.pb`` and ``.pb_text``, which indicate | ||
| JSON, YAML, `binary proto3 | ||
|
|
@@ -34,12 +34,16 @@ following are the command line options that Envoy supports. | |
|
|
||
| .. option:: --v2-config-only | ||
|
|
||
| *(deprecated)* This flag used to allow opting into only using a | ||
| :ref:`v2 bootstrap configuration file <config_overview_v2_bootstrap>`. This is now set by default. | ||
|
|
||
| .. option:: --allow-deprecated-v1-api | ||
|
|
||
| *(optional)* This flag determines whether the configuration file should only | ||
| be parsed as a :ref:`v2 bootstrap configuration file | ||
| <config_overview_v2_bootstrap>`. If false (default), when a v2 bootstrap | ||
| <config_overview_v2_bootstrap>`. If specified when a v2 bootstrap | ||
| config parse fails, a second attempt to parse the config as a :ref:`v1 JSON | ||
| configuration file <config_overview_v1>` will be made. | ||
|
|
||
|
Member
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. nit: leave line break |
||
| .. option:: --mode <string> | ||
|
|
||
| *(optional)* One of the operating modes for Envoy: | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 deep link this using
:option:?