webhook

package
v0.0.0-...-8810e6a Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2024 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClientAuth

func GetClientAuth(insecure bool) tls.ClientAuthType

GetClientAuth determines the policy the http server will follow for TLS Client Authentication

func MutateHandler

func MutateHandler(w http.ResponseWriter, req *http.Request)

MutateHandler handles AdmissionReview requests and sends responses back to the K8s API server

func NewClientCertPool

func NewClientCertPool(clientCaPaths *ClientCAFlags, insecure bool) (*clientCertPool, error)

NewClientCertPool will load a single client CA

func NewTlsKeypairReloader

func NewTlsKeypairReloader(certPath, keyPath string) (*tlsKeypairReloader, error)

NewTlsKeypairReloader reload tlsKeypairReloader struct

func SetControlSwitches

func SetControlSwitches(activeConfiguration *controlswitches.ControlSwitches)

func SetNetAttachDefCache

func SetNetAttachDefCache(cache netcache.NetAttachDefCacheService)

SetNetAttachDefCache sets up the net attach def cache service

func SetUserInjectionStructure

func SetUserInjectionStructure(injections *userdefinedinjections.UserDefinedInjections)

func SetupInClusterClient

func SetupInClusterClient() kubernetes.Interface

SetupInClusterClient setups K8s client to communicate with the API server

Types

type ClientCAFlags

type ClientCAFlags []string

func (*ClientCAFlags) Set

func (i *ClientCAFlags) Set(path string) error

func (*ClientCAFlags) String

func (i *ClientCAFlags) String() string

Jump to

Keyboard shortcuts

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