Versions in this module Expand all Collapse all v4 v4.6.0 Dec 12, 2024 Changes in this version + const AdmissionWebHookValidating + const ClaimBoundFinalizer + var AdmitFunc func(admissionV1.AdmissionReview) *admissionV1.AdmissionResponse + var Codecs = serializer.NewCodecFactory(scheme) + func CreateCertSecrets(ctx context.Context, webHookCfg WebHook, cert, key []byte, ns string) (*v1.Secret, error) + func CreateValidateWebhook(ctx context.Context, admissionWebhook AdmissionWebHookCFG, caBundle []byte, ...) error + func GenerateCertificate(ctx context.Context, cn string, dnsName string) ([]byte, []byte, error) + func GetStorageWebHookCfg() (WebHook, []AdmissionWebHookCFG) + func GetTLSCertificate(cert, priv []byte) (tls.Certificate, error) + type AdmissionRule struct + APIGroups []string + APIVersions []string + Resources []string + type AdmissionWebHookCFG struct + AdmissionOps []admissionV1.OperationType + AdmissionRule AdmissionRule + ServiceName string + WebhookName string + WebhookPath string + WebhookPort int32 + type AdmissionWebHookType string + type Controller struct + Recorder record.EventRecorder + func (c *Controller) Start(ctx context.Context, webHookCfg WebHook, ...) error + func (c *Controller) Stop(ctx context.Context, webHookCfg WebHook, ...) error + type HandleFuncPair struct + WebHookFunc func(admissionV1.AdmissionReview) *admissionV1.AdmissionResponse + WebhookPath string + type WebHook struct + DefaultNamespace string + HandleFuncPair []HandleFuncPair + NamespaceEnv string + PrivateCert string + PrivateKey string + SecretName string + ServiceName string + WebHookAddress string + WebHookPort int + WebHookType AdmissionWebHookType