New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Background scan configuration via the ConfigMap #2335
Comments
Hey @chipzoller
and to test the changes that we are trying to debug I tried to add |
As long as this is added in the Kyverno ConfigMap, it should be picked up but it's not. So you're adding it correctly. |
@chipzoller - were you configuring |
From the docs:
|
I must have missed this statement when adding the doc "...must be set in the Kyverno ConfigMap". From PR #1730 I don't see we support this configuration via ConfigMap. @anushkamittal20 - can you please confirm if this works when passing as a flag? If needed, we can open a feature request for the ConfigMap configuration. |
Hey @realshuting @chipzoller when I add in
I get the scans happening every 5 minutes
|
Great, thanks @anushkamittal20! @chipzoller - do you think we need to support this configuration via the ConfigMap? Otherwise we'll need to update the doc. |
It sounds like we, at the least, need to fix the documentation. I personally think it would be good to support this in a ConfigMap though. |
Ok, marked as "good first issue"! |
Making sure, with plans to deprecate the ConfigMap, we're still considering this use case. |
Yes it's still valid. The deprecation is only with |
In 1.8.x, |
Software version numbers
State the version numbers of applications involved in the bug.
Describe the bug
The documentation states there is a flag called
background-scan
which can be added to the Kyverno ConfigMap with a value in the format of (int)(unit) which controls the background scan interval which defaults to one hour. Settingbackground-scan
to5m
appears to do nothing. Even after arollout restart
of the Kyverno Deployment, the new background scan interval is not picked up.To Reproduce
Steps to reproduce the behavior:
background-scan: 5m
Expected behavior
Kyverno picks up the new background scan interval immediately after the new value is set/updated and adopts the custom interval. Kyverno prints a logged message acknowledging a new background scan interval has been detected. Background scans happen at that interval with appropriate logged messages.
Additional context
Related to #2332
The text was updated successfully, but these errors were encountered: