Fix typo in webhook dry-run check

This commit is contained in:
jennybuckley
2018-08-07 14:37:24 -07:00
parent 3ed8b49e9f
commit aa36dc94cd
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