Versions in this module Expand all Collapse all v0 v0.1.0 Jul 17, 2018 Changes in this version + func CreateCerts(ctx context.Context) (serverKey, serverCert, caCert []byte, err error) + type AdmissionController struct + func NewAdmissionController(client kubernetes.Interface, options ControllerOptions, ...) (*AdmissionController, error) + func (ac *AdmissionController) Run(stop <-chan struct{}) error + func (ac *AdmissionController) ServeHTTP(w http.ResponseWriter, r *http.Request) + type ControllerOptions struct + Port int + RegistrationDelay time.Duration + SecretName string + ServiceName string + ServiceNamespace string + WebhookName string + type GenericCRD interface + GetGeneration func() int64 + GetObjectMeta func() metav1.Object + GetSpecJSON func() ([]byte, error) + SetGeneration func(int64) + type GenericCRDHandler struct + Defaulter ResourceDefaulter + Factory runtime.Object + Validator ResourceCallback + type ResourceCallback func(patches *[]jsonpatch.JsonPatchOperation, old GenericCRD, new GenericCRD) error + func Validate(ctx context.Context) ResourceCallback + type ResourceDefaulter func(patches *[]jsonpatch.JsonPatchOperation, crd GenericCRD) error + func SetDefaults(ctx context.Context) ResourceDefaulter