bootstrap

package
v1.18.0-beta23 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: Apache-2.0 Imports: 22 Imported by: 18

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConsulClientForSettings added in v0.18.0

func ConsulClientForSettings(ctx context.Context, settings *v1.Settings) (*api.Client, error)

Deprecated. Use bootstrap/clients

func ValidateBootstrap added in v1.3.25

func ValidateBootstrap(
	ctx context.Context,
	filterName string,
	msg proto.Message,
) error

ValidateBootstrap is deprecated. Please use the functionality exported from the packages in pkg/utils/envoyutils

Types

type Consul added in v1.3.7

type Consul struct {
	ConsulWatcher      consul.ConsulWatcher
	DnsServer          string
	DnsPollingInterval *durationpb.Duration
}

type ControlPlane

type ControlPlane struct {
	*GrpcService
	SnapshotCache cache.SnapshotCache
	XDSServer     server.Server

	Kube KubernetesControlPlaneConfig
}

type GlooGateway added in v1.17.0

type GlooGateway struct {
	EnableK8sGatewayController bool
	IstioValues                IstioValues
}

type GrpcService added in v0.18.43

type GrpcService struct {
	Ctx             context.Context
	BindAddr        net.Addr
	GrpcServer      *grpc.Server
	StartGrpcServer bool
}

func (*GrpcService) GetBindAddress added in v1.17.0

func (g *GrpcService) GetBindAddress() string

GetBindAddress returns the string form of the BindAddr (for example, "192.0.2.1:25", "[2001:db8::1]:80")

func (*GrpcService) GetBindPort added in v1.17.0

func (g *GrpcService) GetBindPort() int

GetBindPort returns the port if the GrpcService relies on a TCPAddr, 0 otherwise

type IstioValues added in v1.17.0

type IstioValues struct {
	// Based on istioSDS helm values. Config used for installing Gloo Edge with Istio SDS cert rotation features for Istio mTLS
	IntegrationEnabled bool
	// Based on enableIstioSidecarOnGateway helm value. If true, the gateway will have the istio sidecar injected.
	SidecarOnGatewayEnabled bool
}

type KubernetesControlPlaneConfig added in v1.17.0

type KubernetesControlPlaneConfig struct {
	// the address and port of the socket address that envoy will connect to
	// to receive xDS config from the gloo control plane
	XdsHost string
	XdsPort int32
}

KubernetesControlPlaneConfig contains information about the control plane when running on Kubernetes.

type Opts

type Opts struct {
	WriteNamespace               string
	StatusReporterNamespace      string
	WatchNamespaces              []string
	Upstreams                    factory.ResourceClientFactory
	KubeServiceClient            skkube.ServiceClient
	UpstreamGroups               factory.ResourceClientFactory
	Proxies                      factory.ResourceClientFactory
	Secrets                      factory.ResourceClientFactory
	Artifacts                    factory.ResourceClientFactory
	AuthConfigs                  factory.ResourceClientFactory
	RateLimitConfigs             factory.ResourceClientFactory
	GraphQLApis                  factory.ResourceClientFactory
	VirtualServices              factory.ResourceClientFactory
	RouteTables                  factory.ResourceClientFactory
	Gateways                     factory.ResourceClientFactory
	MatchableHttpGateways        factory.ResourceClientFactory
	MatchableTcpGateways         factory.ResourceClientFactory
	VirtualHostOptions           factory.ResourceClientFactory
	RouteOptions                 factory.ResourceClientFactory
	KubeClient                   kubernetes.Interface
	Consul                       Consul
	WatchOpts                    clients.WatchOpts
	DevMode                      bool
	ControlPlane                 ControlPlane
	ValidationServer             ValidationServer
	ProxyDebugServer             ProxyDebugServer
	Settings                     *v1.Settings
	KubeCoreCache                corecache.KubeCoreCache
	ValidationOpts               *gwtranslator.ValidationOpts
	ReadGatwaysFromAllNamespaces bool
	GatewayControllerEnabled     bool
	ExtraGatewayClasses          []string
	ProxyCleanup                 func()

	Identity leaderelector.Identity

	GlooGateway GlooGateway
}

type ProxyDebugServer added in v1.9.25

type ProxyDebugServer struct {
	*GrpcService
	Server debug.ProxyEndpointServer
}

ProxyDebugServer returns proxies to callers outside the gloo pod - this is only necessary for UI/debugging purposes.

type ValidationServer added in v0.18.43

type ValidationServer struct {
	*GrpcService
	Server validation.ValidationServer
}

ValidationServer validates proxies generated by controllors outside the gloo pod

Directories

Path Synopsis
vault/mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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