Documentation ¶
Index ¶
- func ValidateModel(ctx context.Context, res core.ResourceModel) *errors.AdmissionErrors
- type AdmissionCtrl
- func (a AdmissionCtrl) Default(ctx context.Context, obj runtime.Object) error
- func (a AdmissionCtrl) SetupWithManager(mgr ctrl.Manager) error
- func (a AdmissionCtrl) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (a AdmissionCtrl) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (a AdmissionCtrl) ValidateUpdate(ctx context.Context, oldObj runtime.Object, newObj runtime.Object) (admission.Warnings, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateModel ¶
func ValidateModel(ctx context.Context, res core.ResourceModel) *errors.AdmissionErrors
Types ¶
type AdmissionCtrl ¶
type AdmissionCtrl struct{}
func (AdmissionCtrl) SetupWithManager ¶
func (a AdmissionCtrl) SetupWithManager(mgr ctrl.Manager) error
func (AdmissionCtrl) ValidateCreate ¶
func (a AdmissionCtrl) ValidateCreate( ctx context.Context, obj runtime.Object, ) (admission.Warnings, error)
ValidateCreate implements admission.CustomValidator.
func (AdmissionCtrl) ValidateDelete ¶
func (a AdmissionCtrl) ValidateDelete( ctx context.Context, obj runtime.Object, ) (admission.Warnings, error)
ValidateDelete implements admission.CustomValidator.
Click to show internal directories.
Click to hide internal directories.