Documentation ¶
Index ¶
- Constants
- func UpdateWebHookCA(ctx context.Context, webHookName string, ca []byte) error
- func WriteCertToFiles(bundle CertificateBundle) error
- type CertificateBundle
- type IntentsValidator
- func (v *IntentsValidator) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (v *IntentsValidator) ValidateCreate(ctx context.Context, obj runtime.Object) error
- func (v *IntentsValidator) ValidateDelete(ctx context.Context, obj runtime.Object) error
- func (v *IntentsValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) error
Constants ¶
View Source
const ( Year = 365 * 24 * time.Hour CertDirPath = "/tmp/k8s-webhook-server/serving-certs" CertFilename = "tls.crt" PrivateKeyFilename = "tls.key" )
Variables ¶
This section is empty.
Functions ¶
func UpdateWebHookCA ¶
func WriteCertToFiles ¶
func WriteCertToFiles(bundle CertificateBundle) error
Types ¶
type CertificateBundle ¶
func GenerateSelfSignedCertificate ¶
func GenerateSelfSignedCertificate(hostname string, namespace string) (CertificateBundle, error)
type IntentsValidator ¶
func NewIntentsValidator ¶
func NewIntentsValidator(c client.Client) *IntentsValidator
func (*IntentsValidator) SetupWebhookWithManager ¶
func (v *IntentsValidator) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*IntentsValidator) ValidateCreate ¶
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*IntentsValidator) ValidateDelete ¶
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*IntentsValidator) ValidateUpdate ¶
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type
Click to show internal directories.
Click to hide internal directories.