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>
Add a checks that parses pull-secret from openshift-config
namespace and extracts the list of present Red Hat keys.
Keys are presented in a cluster.status.RedHatKeysPresent field.
Signed-off-by: Petr Kotas <pkotas@redhat.com>
Why: https://www.whitesourcesoftware.com/vulnerability-database/WS-2018-0594
Requires updating azure-sdk-for-go, moved to latest release
Created wrapper util for gofrs/uuid as NewV4() now returns 2 args and we use it a lot in-line
Vendor updates coming in separate commit to keep this one clean.
There is no v1.2.1 tag for these repos on github.com.
A replace was added for these to 'master'.
Running `go mod vendor` updated the value from 'master' to what you see
in go.mod now.
The v0.0.0 versions needed excluded to get them to drop from go.sum.
Do not exlude v1.2.0 or dependencies cannot be resolved.