Documentation ¶
Index ¶
- func GetClientAuth(insecure bool) tls.ClientAuthType
- func MutateHandler(w http.ResponseWriter, req *http.Request)
- func NewClientCertPool(clientCaPaths *ClientCAFlags, insecure bool) (*clientCertPool, error)
- func NewTlsKeypairReloader(certPath, keyPath string) (*tlsKeypairReloader, error)
- func SetControlSwitches(activeConfiguration *controlswitches.ControlSwitches)
- func SetNetAttachDefCache(cache netcache.NetAttachDefCacheService)
- func SetUserInjectionStructure(injections *userdefinedinjections.UserDefinedInjections)
- func SetupInClusterClient() kubernetes.Interface
- type ClientCAFlags
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 ¶
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
Click to show internal directories.
Click to hide internal directories.