gatekeeper icon indicating copy to clipboard operation
gatekeeper copied to clipboard

fix: only set matchConditions on webhook when not empty

Open martijnvdp opened this issue 1 month ago • 2 comments

What this PR does / why we need it: only set matchConditions on webhooks when the list in values is not empty

empty matchConditions gets ommited by kubernetes and when deploying with argoCD it results in a drift on this property

Which issue(s) this PR fixes (optional, using fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when the PR gets merged): Fixes #3410

Special notes for your reviewer:

martijnvdp avatar Jun 03 '24 15:06 martijnvdp