config

package
v0.0.0-...-f33f640 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// IstioNamespace is the default root namespace of istio
	IstioNamespace = "istio-system"
	// LazyXdsManager is the controller name which will put into fieldManager
	LazyXdsManager = "lazyxds-manager"
	// EgressName is name of egress deployment and service
	EgressName = "istio-egressgateway-lazyxds"
	// EgressServicePort is default port of egress service
	EgressServicePort = 8080
	// EgressGatewayName is the istio gateway name of lazyxds egress
	EgressGatewayName = "lazyxds-egress"
	// AccessLogServicePort is the default port of access log service
	AccessLogServicePort = 8080
	// EgressVirtualServiceName the vs name of lazyxds egress
	EgressVirtualServiceName = "lazyxds-egress"
	// LazyLoadingAnnotation is the annotation name which use to enable/disable lazy xds feature
	LazyLoadingAnnotation = "lazy-xds"
	// ManagedByLabel is the common label indicate the component is managed by which controller
	ManagedByLabel = "app.kubernetes.io/managed-by"
)
View Source
const (
	// AutoCreateEgress ...
	AutoCreateEgress = "LAZYXDS_AUTO_CREATE_EGRESS"
)

Variables

This section is empty.

Functions

func GetEgressCluster

func GetEgressCluster() string

GetEgressCluster returns the egress xds cluster string default is "outbound|8080||istio-egressgateway-lazyxds.istio-system.svc.cluster.local"

Types

type Config

type Config struct {
	KubeConfig       string
	AutoCreateEgress bool
	IstiodAddress    string
	ProxyImage       string
	LeaderElection   *componentbaseconfig.LeaderElectionConfiguration
}

Config is the lazyxds manager configuration

func New

func New(options *options.Options) (*Config, error)

New creates a new Config from Options

Jump to

Keyboard shortcuts

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