This repository was archived by the owner on Mar 20, 2026. It is now read-only.
Repository navigation
Control the start of event reporting for expiring certificates - #2232
Merged
allanrogerr merged 3 commits intoJul 23, 2024
Merged
Conversation
allanrogerr
marked this pull request as ready for review
July 22, 2024 16:58
allanrogerr
requested review from
cesnietor,
cniackz,
dvaldivia,
jiuker,
pjuarezd,
prakashsvmx and
ramondeklein
July 22, 2024 16:58
pjuarezd
previously approved these changes
Jul 22, 2024
ramondeklein
suggested changes
Jul 22, 2024
allanrogerr
force-pushed
the
add-certificate-rotate-threshold
branch
from
July 22, 2024 19:47
0b2bacb to
8393905
Compare
jiuker
approved these changes
Jul 23, 2024
ramondeklein
suggested changes
Jul 23, 2024
ramondeklein
left a comment
Contributor
There was a problem hiding this comment.
Would like to see the expiration check to be moved out of the outer if to ensure we're always reporting that. We have already spent a lot of Subnet hours, because of unnoticed certificate expirations.
ramondeklein
approved these changes
Jul 23, 2024
shtripat
approved these changes
Jul 23, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue summary
In cases where users install certificates of short duration, kubernetes events are spammed with multiple warnings of certificate expiry. This is undesirable. A means on reducing the number of warnings produced is more desirable.
See #1791
In the tenant crd,
.spec.certExpiryAlertThresholdrepresents the minimum number of days to expiry before an alert for an expiring certificate is fired.For example considering
.spec.certExpiryAlertThreshold = 1, if a given certificate will expire in 7 days then expiration events will only be triggered 1 day before expiry.Test summary
certExpiryAlertThresholde.g.Verbose tests here:
https://github.com/allanrogerr/public/wiki/operator%E2%80%901791
Fixes: #1791