serviceconverter

package
v0.11.6-merged-prereqs Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: Apache-2.0 Imports: 14 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(ctx context.Context, svc *corev1.Service, port corev1.ServicePort, us *v1.Upstream) error

type ServiceConverter

type ServiceConverter interface {
	ConvertService(ctx context.Context, svc *corev1.Service, port corev1.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{}

UseHttp2Converter sets UseHttp2 on the upstream if: (1) the service has the "h2_service" annotation; or (2) the "h2_service" annotation defined in Settings.UpstreamOptions; or (3) the service has the relevant port name

func (*UseHttp2Converter) ConvertService

func (u *UseHttp2Converter) ConvertService(ctx context.Context, svc *corev1.Service, port corev1.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(_ context.Context, svc *corev1.Service, port corev1.ServicePort, us *v1.Upstream) error

Jump to

Keyboard shortcuts

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