package
0.0.0-20191015002125-7cc1d6a9b808
Repository: https://github.com/chizhg/pkg.git
Documentation: pkg.go.dev
# Functions
CreateCerts creates and returns a CA certificate and certificate and key for the server.
New constructs a Webhook.
NewConfigValidationController constructs a ConfigValidationController.
NewResourceAdmissionController constructs a ResourceAdmissionController.
NewStatsReporter creaters a reporter for webhook metrics.
SetUserInfoAnnotations sets creator and updater annotations on a resource.
# Structs
ConfigValidationController implements the AdmissionController for ConfigMaps.
ControllerOptions contains the configuration for the webhook.
ResourceAdmissionController implements the AdmissionController for resources.
Webhook implements the external webhook for validation of resources and configuration.
# Interfaces
AdmissionController provides the interface for different admission controllers.
GenericCRD is the interface definition that allows us to perform the generic CRD actions like deciding whether to increment generation and so forth.
StatsReporter reports webhook metrics.
# Type aliases
ResourceCallback defines a signature for resource specific (Route, Configuration, etc.) handlers that can validate and mutate an object.
ResourceDefaulter defines a signature for resource specific (Route, Configuration, etc.) handlers that can set defaults on an object.