syncer

package
v0.20.11 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2019 License: Apache-2.0 Imports: 30 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AcceptAllResourcesByDefault = true

TODO: switch AcceptAllResourcesByDefault to false after validation has been tested in user environments

View Source
var AllowMissingLinks = true

TODO: expose AllowMissingLinks as a setting

Functions

func NewTranslatorSyncer

func NewTranslatorSyncer(writeNamespace string, proxyClient gloov1.ProxyClient, gwClient v2.GatewayClient, vsClient v1.VirtualServiceClient, reporter reporter.Reporter, propagator *propagator.Propagator, translator translator.Translator) v2.ApiSyncer

func RunGateway

func RunGateway(opts Opts) error

func Setup

func Setup(ctx context.Context, kubeCache kube.SharedCache, inMemoryCache memory.InMemoryResourceCache, settings *gloov1.Settings) error

Types

type Opts

type Opts struct {
	WriteNamespace          string
	WatchNamespaces         []string
	Gateways                factory.ResourceClientFactory
	VirtualServices         factory.ResourceClientFactory
	RouteTables             factory.ResourceClientFactory
	Proxies                 factory.ResourceClientFactory
	WatchOpts               clients.WatchOpts
	ValidationServerAddress string
	DevMode                 bool
	DisableAutoGenGateways  bool
	Validation              *ValidationOpts
}

type ValidationOpts added in v0.20.3

type ValidationOpts struct {
	ProxyValidationServerAddress string
	ValidatingWebhookPort        int
	ValidatingWebhookCertPath    string
	ValidatingWebhookKeyPath     string
	IgnoreProxyValidationFailure bool
	AlwaysAcceptResources        bool
	AllowMissingLinks            bool
}

Jump to

Keyboard shortcuts

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