Skip to content

Commit fe2812d

Browse files
committed
copy-paste cleanup: webhook validator value Spec.AutoDelete VS Spec.Durable
1 parent 70bf6d8 commit fe2812d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/v1beta1/exchange_webhook.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ func (e *Exchange) ValidateUpdate(_ context.Context, oldObj, newObj runtime.Obje
8383
if newExchange.Spec.Durable != oldExchange.Spec.Durable {
8484
allErrs = append(allErrs, field.Invalid(
8585
field.NewPath("spec", "durable"),
86-
newExchange.Spec.AutoDelete,
86+
newExchange.Spec.Durable,
8787
"durable cannot be updated",
8888
))
8989
}

0 commit comments

Comments
 (0)