webhook

package
v0.0.0-...-f06aae9 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package webhook provides the server implementation of Mutating Admission Webhook for pods.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMutatorFunc

func GetMutatorFunc(
	sidecarImageRepo string,
	sidecarImageTag string,
	awsEnvvarsSecret string,
	stsEndpointURL string,
) kwmutating.Mutator

GetMutatorFunc returns a mutator func that insert a sidecar to the given pod.

Types

type Server

type Server interface {
	// Run starts a Webhook server.
	Run() error
}

Server starts a Webhook server.

func NewServer

func NewServer(
	bindAddr string,
	tlsCert string,
	tlsKey string,
	sidecarImageRepo string,
	sidecarImageTag string,
	awsEnvvarsSecret string,
	stsEndpointURL string,
) Server

NewServer creates a Server instance.

Jump to

Keyboard shortcuts

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