-
-
Notifications
You must be signed in to change notification settings - Fork 558
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into remove-outbound-rules
- Loading branch information
Showing
20 changed files
with
808 additions
and
512 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
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,31 @@ | ||
package cmd | ||
|
||
// Flag constants for system configuration | ||
const ( | ||
disableClientRoutesFlag = "disable-client-routes" | ||
disableServerRoutesFlag = "disable-server-routes" | ||
disableDNSFlag = "disable-dns" | ||
disableFirewallFlag = "disable-firewall" | ||
) | ||
|
||
var ( | ||
disableClientRoutes bool | ||
disableServerRoutes bool | ||
disableDNS bool | ||
disableFirewall bool | ||
) | ||
|
||
func init() { | ||
// Add system flags to upCmd | ||
upCmd.PersistentFlags().BoolVar(&disableClientRoutes, disableClientRoutesFlag, false, | ||
"Disable client routes. If enabled, the client won't process client routes received from the management service.") | ||
|
||
upCmd.PersistentFlags().BoolVar(&disableServerRoutes, disableServerRoutesFlag, false, | ||
"Disable server routes. If enabled, the client won't act as a router for server routes received from the management service.") | ||
|
||
upCmd.PersistentFlags().BoolVar(&disableDNS, disableDNSFlag, false, | ||
"Disable DNS. If enabled, the client won't configure DNS settings.") | ||
|
||
upCmd.PersistentFlags().BoolVar(&disableFirewall, disableFirewallFlag, false, | ||
"Disable firewall configuration. If enabled, the client won't modify firewall rules.") | ||
} |
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.