Skip to content

Commit

Permalink
skip nad webhook for the internal invoke
Browse files Browse the repository at this point in the history
- skip nad mutating webhook if .spec.config is not changed
- skip nad validating webhook if .spec.config and route annotation are not changed
  • Loading branch information
yaocw2020 committed Mar 24, 2023
1 parent 3021cb1 commit 1caaf2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/webhook/nad/mutator.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func (m *Mutator) Update(_ *types.Request, oldObj, newObj runtime.Object) (types
if newNad.DeletionTimestamp != nil {
return nil, nil
}

// ignore the update if the config is not being updated
if oldNad.Spec.Config == newNad.Spec.Config {
return nil, nil
}
Expand Down

0 comments on commit 1caaf2b

Please sign in to comment.