util

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConcurrentReconciles           = 1
	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"

	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

type Option

type Option interface {
	SetProxyOption(enable bool)
	SetTunnelOption(enable bool)
	GetProxyOption() bool
	GetTunnelOption() bool
}

func NewOption

func NewOption() Option

type ServerOption

type ServerOption struct {
	// contains filtered or unexported fields
}

func (*ServerOption) GetProxyOption

func (o *ServerOption) GetProxyOption() bool

func (*ServerOption) GetTunnelOption

func (o *ServerOption) GetTunnelOption() bool

func (*ServerOption) SetProxyOption

func (o *ServerOption) SetProxyOption(enable bool)

func (*ServerOption) SetTunnelOption

func (o *ServerOption) SetTunnelOption(enable bool)

Jump to

Keyboard shortcuts

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