injector

package
v0.5.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2020 License: MIT Imports: 32 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// WebhookHealthPath is the HTTP path at which the health of the webhook can be queried
	WebhookHealthPath = "/healthz"
)

Variables

This section is empty.

Functions

func NewWebhook

func NewWebhook(config Config, kubeClient kubernetes.Interface, certManager certificate.Manager, meshCatalog catalog.MeshCataloger, kubeController k8s.Controller, meshName, osmNamespace, webhookConfigName string, stop <-chan struct{}, cfg configurator.Configurator) error

NewWebhook starts a new web server handling requests from the injector MutatingWebhookConfiguration

Types

type Config

type Config struct {
	// DefaultInjection defines whether sidecar injection is enabled by default
	DefaultInjection bool

	// ListenPort defines the port on which the sidecar injector listens
	ListenPort int

	InitContainerImage string

	SidecarImage string
}

Config is the type used to represent the config options for the sidecar injection

type EnvoySidecarData

type EnvoySidecarData struct {
	Name           string
	Image          string
	EnvoyNodeID    string
	EnvoyClusterID string
}

EnvoySidecarData is the type used to represent information about the Envoy sidecar

type InitContainer added in v0.4.1

type InitContainer struct {
	Name  string
	Image string
}

InitContainer is the type used to represent information about the init container

type JSONPatchOperation

type JSONPatchOperation struct {
	Op    string      `json:"op"`
	Path  string      `json:"path"`
	Value interface{} `json:"value,omitempty"`
}

JSONPatchOperation defines a Kubernetes JSON Patch operation

Jump to

Keyboard shortcuts

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