-
Notifications
You must be signed in to change notification settings - Fork 335
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(*) remove circular dependency on the Istio submodule (#2742)
The Istio submodule imports Kuma config definitions, and Kuma calls functions from the Istio submodule. Break the circular dependency by moving the config definitions into the Istio submodule, even though they more properly belong in Kuma itself. This makes it possible to run `go mod tidy` in the Istio submodule. This fixes #2087. Signed-off-by: James Peach <james.peach@konghq.com>
- Loading branch information
Showing
6 changed files
with
47 additions
and
1,374 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 |
---|---|---|
@@ -1,18 +1,10 @@ | ||
package config | ||
|
||
type TransparentProxyConfig struct { | ||
DryRun bool | ||
Verbose bool | ||
RedirectPortOutBound string | ||
RedirectInBound bool | ||
RedirectPortInBound string | ||
RedirectPortInBoundV6 string | ||
ExcludeInboundPorts string | ||
ExcludeOutboundPorts string | ||
UID string | ||
GID string | ||
RedirectDNS bool | ||
RedirectAllDNSTraffic bool | ||
AgentDNSListenerPort string | ||
DNSUpstreamTargetChain string | ||
} | ||
import "github.com/kumahq/kuma/pkg/transparentproxy/istio" | ||
|
||
// TransparentProxyConfig defines the configuration for all transparent | ||
// proxy configurations, not just the Istio one. | ||
// | ||
// We alias the types in reverse here to avoid an import loop (the Istio | ||
// submodule depending on Kuma for the config type). | ||
type TransparentProxyConfig = istio.TransparentProxyConfig |
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,18 @@ | ||
package istio | ||
|
||
type TransparentProxyConfig struct { | ||
DryRun bool | ||
Verbose bool | ||
RedirectPortOutBound string | ||
RedirectInBound bool | ||
RedirectPortInBound string | ||
RedirectPortInBoundV6 string | ||
ExcludeInboundPorts string | ||
ExcludeOutboundPorts string | ||
UID string | ||
GID string | ||
RedirectDNS bool | ||
RedirectAllDNSTraffic bool | ||
AgentDNSListenerPort string | ||
DNSUpstreamTargetChain string | ||
} |
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.