Documentation ¶
Index ¶
- Constants
- Variables
- type Handler
- func (h *Handler) AddToManager(mgr manager.Manager) error
- func (h *Handler) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (h *Handler) ValidateDelete(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (h *Handler) ValidateUpdate(_ context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
Constants ¶
View Source
const ( // HandlerName is the name of this admission webhook handler. HandlerName = "validator" // WebhookPath is the HTTP handler path for this admission webhook handler. WebhookPath = "/webhooks/validate-operator-gardener-cloud-v1alpha1-garden" )
Variables ¶
View Source
var ForbiddenFinalizersOnCreation = sets.New( operatorv1alpha1.FinalizerName, v1beta1constants.ReferenceProtectionFinalizerName, )
ForbiddenFinalizersOnCreation is a list of finalizers which are forbidden to be specified on Garden creation.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
Handler performs validation.
func (*Handler) AddToManager ¶
AddToManager adds Handler to the given manager.
func (*Handler) ValidateCreate ¶
func (h *Handler) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate performs the validation.
func (*Handler) ValidateDelete ¶
ValidateDelete performs the validation.
Click to show internal directories.
Click to hide internal directories.