Fix typo in webhook dry-run check

Kubernetes-commit: aa36dc94cd7a2e538ad5e6ef8999fbbe9dc0df78
This commit is contained in:
jennybuckley 2018-08-07 14:37:24 -07:00 committed by Kubernetes Publisher
parent 33e910db15
commit 53e7058d7c
2 changed files with 2 additions and 2 deletions

View File

@ -84,7 +84,7 @@ func (a *mutatingDispatcher) Dispatch(ctx context.Context, attr *generic.Version
func (a *mutatingDispatcher) callAttrMutatingHook(ctx context.Context, h *v1beta1.Webhook, attr *generic.VersionedAttributes) error {
if attr.IsDryRun() {
// TODO: support this
webhookerrors.NewDryRunUnsupportedErr(h.Name)
return webhookerrors.NewDryRunUnsupportedErr(h.Name)
}
// Make the webhook request

View File

@ -99,7 +99,7 @@ func (d *validatingDispatcher) Dispatch(ctx context.Context, attr *generic.Versi
func (d *validatingDispatcher) callHook(ctx context.Context, h *v1beta1.Webhook, attr *generic.VersionedAttributes) error {
if attr.IsDryRun() {
// TODO: support this
webhookerrors.NewDryRunUnsupportedErr(h.Name)
return webhookerrors.NewDryRunUnsupportedErr(h.Name)
}
// Make the webhook request