serviceconverter

package
v1.10.23 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2022 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

View Source
const DeepMergeAnnotationPrefix = "gloo.solo.io/upstream_config.deep_merge"
View Source
const GlooAnnotationPrefix = "gloo.solo.io/upstream_config"
View Source
const GlooH2Annotation = "gloo.solo.io/h2_service"
View Source
const GlooSslRootCaAnnotation = "gloo.solo.io/sslService.rootCa"
View Source
const GlooSslSecretAnnotation = "gloo.solo.io/sslService.secret"
View Source
const GlooSslTlsCertAnnotation = "gloo.solo.io/sslService.tlsCert"
View Source
const GlooSslTlsKeyAnnotation = "gloo.solo.io/sslService.tlsKey"

Variables

View Source
var DefaultServiceConverters []ServiceConverter

the default annotation converters that will be used these are initialized at runtime

Functions

This section is empty.

Types

type GeneralServiceConverter added in v1.9.25

type GeneralServiceConverter struct{}

func (*GeneralServiceConverter) ConvertService added in v1.9.25

func (s *GeneralServiceConverter) ConvertService(svc *kubev1.Service, port kubev1.ServicePort, us *v1.Upstream) error

type ServiceConverter

type ServiceConverter interface {
	ConvertService(svc *kubev1.Service, port kubev1.ServicePort, us *v1.Upstream) error
}

ServiceConverters apply extra changes to an upstream spec before the upstream is created use this to support things like custom config from annotations

type UseHttp2Converter

type UseHttp2Converter struct{}

sets UseHttp2 on the upstream if the service has the relevant port name

func (*UseHttp2Converter) ConvertService

func (u *UseHttp2Converter) ConvertService(svc *kubev1.Service, port kubev1.ServicePort, us *v1.Upstream) error

type UseSslConverter

type UseSslConverter struct{}

sets UseSsl on the upstream if the service has the relevant port name

func (*UseSslConverter) ConvertService

func (u *UseSslConverter) ConvertService(svc *kubev1.Service, port kubev1.ServicePort, us *v1.Upstream) error

Jump to

Keyboard shortcuts

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