injector

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2020 License: MPL-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Injector toggle and listen path to generate
	AdmissionWebhookAnnotationInjectKey = "injector.tyk.io/inject"

	// Internally used by mesh to track API IDs and state
	AdmissionWebhookAnnotationStatusKey           = "injector.tyk.io/status"
	AdmissionWebhookAnnotationInboundServiceIDKey = "injector.tyk.io/inbound-service-id"
	AdmissionWebhookAnnotationMeshServiceIDKey    = "injector.tyk.io/mesh-service-id"

	// Advanced mesh keys for group access policies TBC
	AdmissionWebhookAnnotationGroupKey            = "injector.tyk.io/group"
	AdmissionWebhookAnnotationAllowedCallerGroups = "injector.tyk.io/caller-access-groups"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Containers        []corev1.Container `yaml:"containers"`
	InitContainers    []corev1.Container `yaml:"initContainers"`
	CreateRoutes      bool               `yaml:"createRoutes"`
	EnableMeshTLS     bool               `yaml:"enableMeshTLS"`
	MeshCertificateID string             `yaml:"meshCertificateID"`
}

type WebhookServer

type WebhookServer struct {
	SidecarConfig *Config
	CAConfig      *ca.Config
	CAClient      ca.CertClient
}

func (*WebhookServer) Serve

func (whsvr *WebhookServer) Serve(w http.ResponseWriter, r *http.Request)

Serve method for webhook server

Jump to

Keyboard shortcuts

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