-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NET-10195 - allow consul dataplane to be run as a DNS proxy without E…
…nvoy or XDS (#571) * set up flags * disable envoy and xds when flags dictate. change validation for dns bind address to be relaxed when running outside of sidecar mode. add validation that xds and envoy must both be either enabled or disabled. * fix conditional around xDS * change flag approach to use top level mode and get rid of enabled flags * rearrange some code to make it easier to read. * consolidate * get back to baseline * get back to baseline * fixing issues with conditional logic and consul-k8s tests not working. * fixing lint problem * Apply suggestions from code review Co-authored-by: Dhia Ayachi <[email protected]> * added changelog * fix ci errors * fix logic to prevent bootstrap config from getting called when in dns-proxy mode * adding unit tests for validation when in dns proxy mode --------- Co-authored-by: Dhia Ayachi <[email protected]>
- Loading branch information
1 parent
c30b874
commit 6961d4e
Showing
8 changed files
with
242 additions
and
40 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
```release-note:feature | ||
Added the ability to set the `-mode` flag. Options available are `sidecar` and `dns-proxy`. The system defaults to `sidecar`. | ||
When set to `sidecar`: | ||
- DNS Server, xDS Server, and Envoy are enabled. | ||
- The system validates that `-consul-dns-bind-addr` and equivalent environment variable must be set to the loopback address. | ||
When set to `dns-proxy`: | ||
- Only DNS Server is enabled. xDS Server and Envoy are disabled. | ||
- `consul-dns-bind-addr` and equivalent environment variable can be set to other values besides the loopback address. | ||
``` |
This file contains 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 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 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 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 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 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
Oops, something went wrong.