Documentation ¶
Overview ¶
Package webhooks provides the validating webhooks for KubeadmConfig and KubeadmConfigTemplate.
Index ¶
- type KubeadmConfig
- func (webhook *KubeadmConfig) Default(_ context.Context, obj runtime.Object) error
- func (webhook *KubeadmConfig) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (webhook *KubeadmConfig) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (webhook *KubeadmConfig) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
- func (webhook *KubeadmConfig) ValidateUpdate(_ context.Context, _, newObj runtime.Object) (admission.Warnings, error)
- type KubeadmConfigTemplate
- func (webhook *KubeadmConfigTemplate) Default(_ context.Context, obj runtime.Object) error
- func (webhook *KubeadmConfigTemplate) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (webhook *KubeadmConfigTemplate) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (webhook *KubeadmConfigTemplate) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
- func (webhook *KubeadmConfigTemplate) ValidateUpdate(_ context.Context, _, newObj runtime.Object) (admission.Warnings, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KubeadmConfig ¶
type KubeadmConfig struct{}
KubeadmConfig implements a validation and defaulting webhook for KubeadmConfig.
func (*KubeadmConfig) Default ¶
Default implements webhook.Defaulter so a webhook will be registered for the type.
func (*KubeadmConfig) SetupWebhookWithManager ¶
func (webhook *KubeadmConfig) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*KubeadmConfig) ValidateCreate ¶
func (webhook *KubeadmConfig) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.Validator so a webhook will be registered for the type.
func (*KubeadmConfig) ValidateDelete ¶
func (webhook *KubeadmConfig) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.Validator so a webhook will be registered for the type.
func (*KubeadmConfig) ValidateUpdate ¶
func (webhook *KubeadmConfig) ValidateUpdate(_ context.Context, _, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type.
type KubeadmConfigTemplate ¶
type KubeadmConfigTemplate struct{}
KubeadmConfigTemplate implements a validation and defaulting webhook for KubeadmConfigTemplate.
func (*KubeadmConfigTemplate) Default ¶
Default implements webhook.Defaulter so a webhook will be registered for the type.
func (*KubeadmConfigTemplate) SetupWebhookWithManager ¶
func (webhook *KubeadmConfigTemplate) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*KubeadmConfigTemplate) ValidateCreate ¶
func (webhook *KubeadmConfigTemplate) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.Validator so a webhook will be registered for the type.
func (*KubeadmConfigTemplate) ValidateDelete ¶
func (webhook *KubeadmConfigTemplate) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.Validator so a webhook will be registered for the type.
func (*KubeadmConfigTemplate) ValidateUpdate ¶
func (webhook *KubeadmConfigTemplate) ValidateUpdate(_ context.Context, _, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type.