Skip to content

fix: add background filter to restart trigger policies#95

Merged
thesuperzapper merged 1 commit into
deployKF:mainfrom
thesuperzapper:kyverno-preconditions
Feb 5, 2024
Merged

fix: add background filter to restart trigger policies#95
thesuperzapper merged 1 commit into
deployKF:mainfrom
thesuperzapper:kyverno-preconditions

Conversation

@thesuperzapper

Copy link
Copy Markdown
Member

This PR adds a precondition to filter out BACKGROUND events on our restart trigger policies.

This is needed because, in later versions of Kyverno, each BACKGROUND_SCAN_INTERVAL the mutation will be applied, which will cause our deployments to restart erroneously.

Note, that this behavior ONLY applies to "mutate existing" rules (which define targets), so we don't need to update the other rules, like those that annotate the cloned secrets.

@thesuperzapper thesuperzapper added this to the v0.1.4 milestone Feb 5, 2024
@thesuperzapper
thesuperzapper merged commit ebcb24c into deployKF:main Feb 5, 2024
@thesuperzapper
thesuperzapper deleted the kyverno-preconditions branch February 5, 2024 03:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant