Documentation ¶
Index ¶
Constants ¶
View Source
const ( // MutatingWebhookName is the name of the mutating webhook used for sidecar injection MutatingWebhookName = "osm-inject.k8s.io" // WebhookHealthPath is the HTTP path at which the health of the webhook can be queried WebhookHealthPath = "/healthz" )
Variables ¶
This section is empty.
Functions ¶
func NewMutatingWebhook ¶ added in v0.7.0
func NewMutatingWebhook(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
NewMutatingWebhook 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
Click to show internal directories.
Click to hide internal directories.