serviceconverter

package
v1.0.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

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 ServiceConverter

type ServiceConverter interface {
	ConvertService(svc *kubev1.Service, port kubev1.ServicePort, spec *v1.UpstreamSpec) 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, spec *v1.UpstreamSpec) 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, spec *v1.UpstreamSpec) error

Jump to

Keyboard shortcuts

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