Skip to content

Commit

Permalink
copy-paste cleanup: webhook validator value Spec.AutoDelete VS `Spe…
Browse files Browse the repository at this point in the history
…c.Durable`
  • Loading branch information
pafmaf committed May 20, 2024
1 parent 70bf6d8 commit fe2812d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/v1beta1/exchange_webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func (e *Exchange) ValidateUpdate(_ context.Context, oldObj, newObj runtime.Obje
if newExchange.Spec.Durable != oldExchange.Spec.Durable {
allErrs = append(allErrs, field.Invalid(
field.NewPath("spec", "durable"),
newExchange.Spec.AutoDelete,
newExchange.Spec.Durable,
"durable cannot be updated",
))
}
Expand Down

0 comments on commit fe2812d

Please sign in to comment.