Skip to content

Commit

Permalink
Fix Istio AuthorizationPolicy mutate check (#351)
Browse files Browse the repository at this point in the history
  • Loading branch information
guicassolato authored Dec 1, 2023
1 parent b736a7b commit f97417a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/authpolicy_istio_authorizationpolicy.go
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ func alwaysUpdateAuthPolicy(existingObj, desiredObj client.Object) (bool, error)
existing.Spec.Selector = desired.Spec.Selector
}

if reflect.DeepEqual(existing.Annotations, desired.Annotations) {
if !reflect.DeepEqual(existing.Annotations, desired.Annotations) {
update = true
existing.Annotations = desired.Annotations
}
Expand Down

0 comments on commit f97417a

Please sign in to comment.