serviceconverter

package
v1.7.0-beta13 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2021 License: Apache-2.0 Imports: 6 Imported by: 1

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, 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