Documentation
¶
Index ¶
Constants ¶
View Source
const (
// InitContainerName is the name of the init container
InitContainerName = "osm-init"
)
Variables ¶
This section is empty.
Functions ¶
func NewWebhook ¶
func NewWebhook(config Config, kubeClient kubernetes.Interface, certManager certificate.Manager, meshCatalog catalog.MeshCataloger, namespaceController namespace.Controller, meshName, osmNamespace, webhookName 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 ¶
EnvoySidecarData is the type used to represent information about the Envoy sidecar
type InitContainerData ¶
InitContainerData 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 is the type used to represenet a JSON Patch operation
Click to show internal directories.
Click to hide internal directories.