util

package
v1.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 17, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WorkingNamespace               = "kube-system"
	RavenGlobalConfig              = "raven-cfg"
	RavenAgentConfig               = "raven-agent-config"
	LabelCurrentGatewayEndpoints   = "raven.openyurt.io/endpoints-name"
	GatewayProxyInternalService    = "x-raven-proxy-internal-svc"
	GatewayProxyServiceNamePrefix  = "x-raven-proxy-svc"
	GatewayTunnelServiceNamePrefix = "x-raven-tunnel-svc"
	ExtraAllowedSourceCIDRs        = "raven.openyurt.io/extra-allowed-source-cidrs"

	RavenProxyNodesConfig      = "edge-tunnel-nodes"
	ProxyNodesKey              = "tunnel-nodes"
	ProxyServerSecurePortKey   = "proxy-internal-secure-addr"
	ProxyServerInsecurePortKey = "proxy-internal-insecure-addr"
	ProxyServerExposedPortKey  = "proxy-external-addr"
	VPNServerExposedPortKey    = "tunnel-bind-addr"
	RavenEnableProxy           = "enable-l7-proxy"
	RavenEnableTunnel          = "enable-l3-tunnel"
)

Variables

This section is empty.

Functions

func AddDNSConfigmapToWorkQueue

func AddDNSConfigmapToWorkQueue(q workqueue.RateLimitingInterface)

func AddGatewayProxyInternalService

func AddGatewayProxyInternalService(q workqueue.RateLimitingInterface)

func AddGatewayToWorkQueue

func AddGatewayToWorkQueue(gwName string,
	q workqueue.RateLimitingInterface)

AddGatewayToWorkQueue adds the Gateway the reconciler's workqueue

func CheckServer

func CheckServer(ctx context.Context, client client.Client) (enableProxy, enableTunnel bool)

func FormatName

func FormatName(name string) string

func GetNodeInternalIP

func GetNodeInternalIP(node corev1.Node) string

GetNodeInternalIP returns internal ip of the given `node`.

func HashObject

func HashObject(o interface{}) string

func PrettyYaml

func PrettyYaml(obj interface{}) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL