-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
proxy, daemon: Extract common types to separate types package
In the upcoming commits, the DNS proxy code and the datapath iptables code need to share a few variables. This commit is necessary to prevent an import cycle. Signed-off-by: Chris Tarazi <chris@isovalent.com>
- Loading branch information
1 parent
14ddd28
commit b0e63b7
Showing
5 changed files
with
55 additions
and
47 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// Copyright Authors of Cilium | ||
|
||
package types | ||
|
||
const ( | ||
// ProxyTypeAny represents the case where no proxy type is provided. | ||
ProxyTypeAny ProxyType = "" | ||
// ProxyTypeHTTP specifies the Envoy HTTP proxy type | ||
ProxyTypeHTTP ProxyType = "http" | ||
// ProxyTypeDNS specifies the staticly configured DNS proxy type | ||
ProxyTypeDNS ProxyType = "dns" | ||
// ProxyTypeCRD specifies a proxy configured via CiliumEnvoyConfig CRD | ||
ProxyTypeCRD ProxyType = "crd" | ||
|
||
DNSProxyName = "cilium-dns-egress" | ||
) | ||
|
||
type ProxyType string | ||
|
||
func (p ProxyType) String() string { | ||
return (string)(p) | ||
} |