More LDAP WIP: started controller and LDAP server connection code

Both are unfinished works in progress.
This commit is contained in:
Ryan Richard
2021-04-09 18:49:43 -07:00
parent 7781a2e17a
commit 05daa9eff5
8 changed files with 668 additions and 34 deletions
+11
View File
@@ -241,6 +241,17 @@ func startControllers(
klogr.New(),
controllerlib.WithInformer,
),
singletonWorker).
WithController(
upstreamwatcher.NewLDAPUpstreamWatcherController(
dynamicUpstreamIDPProvider,
// nil means to use a real production dialer when creating objects to add to the dynamicUpstreamIDPProvider cache.
nil,
pinnipedClient,
pinnipedInformers.IDP().V1alpha1().LDAPIdentityProviders(),
secretInformer,
controllerlib.WithInformer,
),
singletonWorker)
kubeInformers.Start(ctx.Done())