Introduce autosizednodes reconciler which watches aro cluster object
feature flags for ReconcileAutoSizedNodes.
When feature flag is present new KubeletConfig is created enabling the
AutoSizingReserver feature which auto computes the system reserved
for nodes.
* Gets rid of exported constants like `ENABLED` where exported constants are not required
* Gets rid of constant concatenations like `CONFIG_NAMESPACE + ".enabled"` to make search easier
* Removes unnecessary `Copy` method of `OperatorFlags` stuct as well as package level `DefaultOperatorFlags` variable.
Introduces `DefaultOperatorFlags()` instead.
enables ticker mocking by extracting the timer out of the refresher.
with extracted timer, mock is added int he tests, enabling exact steps
as required per test.
Signed-off-by: Petr Kotas <pkotas@redhat.com>
Wraps around KeyvaultManager.GetCertificateSecret and
acts and simple poller. Refreshes certificates in regular
intervals, when error happens, it is logged and old
certificate is preserved.
If certificate is already rotated azure-wise the RP will
fail to authenticate, and there will be mention in the logs
about the error.
Signed-off-by: Petr Kotas <pkotas@redhat.com>
* Add Feature flag for alertwebhook
* Add feature flag DNSMasq
* Add feature flag Geneva Logging
* Add feature flag to monitoring config
* Add feature flag for node drainer
* Add feature flag for secrets
* Add feature flag for routefix
* Add workarounds controller flags
Checks for full image overrides for Geneva's MDM and MDSD images. In certain scenarios, it cannot be programmatically determined based on environment and other variables. This also affords the team to update end-points without the need to recompile code.
I'll commit your suggestion. Reasoning why I went this route is because `srcAuthGeneva` is a very specific var name. Adding the if/else makes it more human readable, but the end-result is still the same.
Co-authored-by: Nils Elde <nils.elde@gmail.com>