ContainerImage.Pinniped/internal
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
..
apiserviceref Use API service as owner ref for cluster scoped resources 2021-02-10 21:52:08 -05:00
authenticators Move ad specific stuff to controller 2021-12-09 16:16:36 -08:00
certauthority certauthority: tolerate larger clock skew between API server and pinniped 2021-09-21 09:32:24 -04:00
clusterhost Introduce clusterhost package to determine whether a cluster has control plane nodes 2021-02-09 11:16:01 -08:00
concierge Update all deps to latest where possible, bump Kube deps to v0.23.1 2021-12-16 21:15:27 -05:00
config Add impersonationProxyServerPort to the Concierge's static ConfigMap 2021-11-17 13:27:59 -08:00
constable Save 2 lines by using inline-style comments for Copyright 2020-09-16 10:35:19 -04:00
controller Fix bug where LDAP or AD status conditions were not updated correctly 2022-01-07 17:19:13 -08:00
controllerinit kubecertagent: fix flakey tests 2021-09-16 14:48:04 -04:00
controllerlib test/integration: run parallel tests concurrently with serial tests 2021-08-26 12:59:52 -04:00
controllermanager Update all deps to latest where possible, bump Kube deps to v0.23.1 2021-12-16 21:15:27 -05:00
crud Update all deps to latest where possible, bump Kube deps to v0.23.1 2021-12-16 21:15:27 -05:00
crypto/ptls Force the use of secure TLS config 2021-11-17 16:55:35 -05:00
deploymentref Use API service as owner ref for cluster scoped resources 2021-02-10 21:52:08 -05:00
downward internal/downward: add support for (optional) pod name 2020-12-11 11:49:27 -05:00
dynamiccert Force the use of secure TLS config 2021-11-17 16:55:35 -05:00
endpointaddr Add endpointaddr pkg for parsing host+port inputs. 2021-05-25 16:17:26 -05:00
execcredcache Add CLI caching of cluster-specific credentials. 2021-04-08 14:12:34 -05:00
fositestorage Update all deps to latest where possible, bump Kube deps to v0.23.1 2021-12-16 21:15:27 -05:00
fositestoragei More adjustments based on PR feedback 2021-04-27 16:54:26 -07:00
groupsuffix Remove unparam linter 2021-08-19 10:20:24 -07:00
here Save 2 lines by using inline-style comments for Copyright 2020-09-16 10:35:19 -04:00
httputil Force the use of secure TLS config 2021-11-17 16:55:35 -05:00
issuer dynamiccert: split into serving cert and CA providers 2021-03-15 12:24:07 -04:00
kubeclient Drop unsafe unwrapper for exec.roundTripper 2021-12-17 08:28:30 -05:00
leaderelection Ensure concierge and supervisor gracefully exit 2021-08-30 20:29:52 -04:00
localuserauthenticator Force the use of secure TLS config 2021-11-17 16:55:35 -05:00
mocks WIP towards revoking upstream refresh tokens during GC 2021-10-22 14:32:26 -07:00
net/phttp phttp: add generic support for RFC 2616 14.46 warnings headers 2021-11-30 15:11:59 -05:00
oidc Clean up nits in AD code 2021-12-17 08:53:44 -05:00
ownerref internal/groupsuffix: mutate TokenCredentialRequest's Authenticator 2021-02-10 15:53:44 -05:00
plog Update all deps to latest where possible, bump Kube deps to v0.23.1 2021-12-16 21:15:27 -05:00
psession Move ad specific stuff to controller 2021-12-09 16:16:36 -08:00
registry Update all deps to latest where possible, bump Kube deps to v0.23.1 2021-12-16 21:15:27 -05:00
secret All controller unit tests should not cancel context until test is over 2021-03-04 17:26:01 -08:00
supervisor/server Update all deps to latest where possible, bump Kube deps to v0.23.1 2021-12-16 21:15:27 -05:00
testutil Update all deps to latest where possible, bump Kube deps to v0.23.1 2021-12-16 21:15:27 -05:00
upstreamldap Clean up nits in AD code 2021-12-17 08:53:44 -05:00
upstreamoidc Add trace logging to help observe upstream OIDC refresh token revocation 2021-11-11 12:24:05 -08:00
valuelesscontext valuelesscontext: make unit tests more clear 2021-04-30 10:43:29 -04:00