Documentation ¶
Index ¶
- Constants
- type AppRevWebhook
- type Validator
- func (v *Validator) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (v *Validator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *Validator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *Validator) ValidateUpdate(ctx context.Context, oldObj, obj runtime.Object) (admission.Warnings, error)
Constants ¶
View Source
const ( AppEntityType = "app" AppDecodingErrorType = "AppDecodingError" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppRevWebhook ¶
type AppRevWebhook struct {
// contains filtered or unexported fields
}
AppRevWebhook does not implement the admission.Defaulter interface as we need to access both oldObject and (new)Object to determine the actual state change. So we use the lower-level admission.Handler interface
func (*AppRevWebhook) SetupWebhookWithManager ¶
func (r *AppRevWebhook) SetupWebhookWithManager(mgr ctrl.Manager)
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
func NewValidator ¶
func NewValidator(duplicateValidator webhooks.NameValidator) *Validator
func (*Validator) SetupWebhookWithManager ¶
func (*Validator) ValidateCreate ¶
func (*Validator) ValidateDelete ¶
Click to show internal directories.
Click to hide internal directories.