Skip to content

Commit

Permalink
ut are actually kind of cool... fix the brokenness
Browse files Browse the repository at this point in the history
  • Loading branch information
vaikas committed Feb 5, 2021
1 parent db6dad4 commit d05fc30
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/apis/eventing/v1beta1/trigger_validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ func (t *Trigger) Validate(ctx context.Context) *apis.FieldError {
errs := t.Spec.Validate(ctx).ViaField("spec")
errs = t.validateAnnotation(errs, DependencyAnnotation, t.validateDependencyAnnotation)
errs = t.validateAnnotation(errs, InjectionAnnotation, t.validateInjectionAnnotation)
if apis.IsInUpdate(ctx) {
original := apis.GetBaseline(ctx).(*Trigger)
errs = errs.Also(t.CheckImmutableFields(ctx, original))
}
return errs
}

Expand Down

0 comments on commit d05fc30

Please sign in to comment.