Documentation ¶
Index ¶
Constants ¶
View Source
const HandlePattern = "/pods/inject-sidecar"
Variables ¶
This section is empty.
Functions ¶
func RegisterSidecarInjectionHandler ¶
func RegisterSidecarInjectionHandler()
Types ¶
type AdmissionWebhookServer ¶
func NewSidecarInjectionWebhook ¶
func NewSidecarInjectionWebhook(ctx context.Context) *AdmissionWebhookServer
type SidecarInjectionHandler ¶
type SidecarInjectionHandler interface { // Generate a JSONPatch that injects the given pod with the proxy sidecar(s) GetSidecarPatch(ctx context.Context, candidatePod *corev1.Pod) (patchRequired bool, patch []byte, err error) }
func GetInjectionHandler ¶
func GetInjectionHandler() SidecarInjectionHandler
Click to show internal directories.
Click to hide internal directories.