Documentation
¶
Index ¶
- func SetupWorkloadServiceAccountWebhookWithManager(mgr ctrl.Manager) error
- type WorkloadServiceAccountCustomValidator
- func (v *WorkloadServiceAccountCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *WorkloadServiceAccountCustomValidator) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
- func (v *WorkloadServiceAccountCustomValidator) ValidateUpdate(_ context.Context, _, _ runtime.Object) (admission.Warnings, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupWorkloadServiceAccountWebhookWithManager ¶
SetupWorkloadServiceAccountWebhookWithManager registers the webhook for WorkloadServiceAccount in the manager.
Types ¶
type WorkloadServiceAccountCustomValidator ¶
type WorkloadServiceAccountCustomValidator struct {
}
WorkloadServiceAccountCustomValidator struct is responsible for validating the WorkloadServiceAccount resource when it is created.
NOTE: The +kubebuilder:object:generate=false marker prevents controller-gen from generating DeepCopy methods, as this struct is used only for temporary operations and does not need to be deeply copied.
func (*WorkloadServiceAccountCustomValidator) ValidateCreate ¶
func (v *WorkloadServiceAccountCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type WorkloadServiceAccount.
func (*WorkloadServiceAccountCustomValidator) ValidateDelete ¶
func (v *WorkloadServiceAccountCustomValidator) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator but is not used since webhook only handles create operations.
func (*WorkloadServiceAccountCustomValidator) ValidateUpdate ¶
func (v *WorkloadServiceAccountCustomValidator) ValidateUpdate(_ context.Context, _, _ runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.CustomValidator but is not used since webhook only handles create operations.