ContainerImage.Pinniped/internal/controller/supervisorconfig
Ryan Richard 7f99d78462 Fix bug where LDAP or AD status conditions were not updated correctly
When the LDAP and AD IDP watcher controllers encountered an update error
while trying to update the status conditions of the IDP resources, then
they would drop the computed desired new value of the condition on the
ground. Next time the controller ran it would not try to update the
condition again because it wants to use the cached settings and had
already forgotten the desired new value of the condition computed during
the previous run of the controller. This would leave the outdated value
of the condition on the IDP resource.

This bug would manifest in CI as random failures in which the expected
condition message and the actual condition message would refer to
different versions numbers of the bind secret. The actual condition
message would refer to an older version of the bind secret because the
update failed and then the new desired message got dropped on the
ground.

This commit changes the in-memory caching strategy to also cache the
computed condition messages, allowing the conditions to be updated
on the IDP resource during future calls to Sync() in the case of a
failed update.
2022-01-07 17:19:13 -08:00
..
activedirectoryupstreamwatcher Fix bug where LDAP or AD status conditions were not updated correctly 2022-01-07 17:19:13 -08:00
generator All controller unit tests should not cancel context until test is over 2021-03-04 17:26:01 -08:00
ldapupstreamwatcher Fix bug where LDAP or AD status conditions were not updated correctly 2022-01-07 17:19:13 -08:00
oidcupstreamwatcher Update all deps to latest where possible, bump Kube deps to v0.23.1 2021-12-16 21:15:27 -05:00
testdata Forgot to commit some test fixtures in a prior commit 2020-10-27 17:00:00 -07:00
upstreamwatchers Fix bug where LDAP or AD status conditions were not updated correctly 2022-01-07 17:19:13 -08:00
federation_domain_watcher.go Update all deps to latest where possible, bump Kube deps to v0.23.1 2021-12-16 21:15:27 -05:00
federation_domain_watcher_test.go Update all deps to latest where possible, bump Kube deps to v0.23.1 2021-12-16 21:15:27 -05:00
jwks_observer.go Use new 'go.pinniped.dev/generated/latest' package. 2021-02-16 13:00:08 -06:00
jwks_observer_test.go All controller unit tests should not cancel context until test is over 2021-03-04 17:26:01 -08:00
jwks_writer.go Use new 'go.pinniped.dev/generated/latest' package. 2021-02-16 13:00:08 -06:00
jwks_writer_test.go All controller unit tests should not cancel context until test is over 2021-03-04 17:26:01 -08:00
tls_cert_observer.go Use hostname instead of host and split on ":" 2021-06-28 23:03:05 +00:00
tls_cert_observer_test.go Use hostname instead of host and split on ":" 2021-06-28 23:03:05 +00:00