@@ -59,6 +59,10 @@ import (
5959// (e.g. through a TimeoutConfiguration interface that components could optionally implement)
6060// TODO: run admission webhooks (if present) in reconcile (e.g. as post-read hook)
6161// TODO: improve overall log output
62+ // TODO: finalizer and fieldowner should be made more configurable (instead of just using the reconciler name)
63+ // TODO: finalizer should have the standard format prefix/finalizer
64+ // TODO: currently, the reconciler always claims/owns dependent objects entirely; but due to server-side-apply it can happen that
65+ // only parts of an object are managed: other parts/fiels might be managed by other actors (or even other components); how to handle such cases?
6266
6367const (
6468 readyConditionReasonNew = "FirstSeen"
@@ -604,11 +608,11 @@ func (r *Reconciler[T]) getClientForComponent(component T) (cluster.Client, erro
604608 clientConfiguration , haveClientConfiguration := assertClientConfiguration (component )
605609 impersonationConfiguration , haveImpersonationConfiguration := assertImpersonationConfiguration (component )
606610
607- var kubeconfig []byte
611+ var kubeConfig []byte
608612 var impersonationUser string
609613 var impersonationGroups []string
610614 if haveClientConfiguration {
611- kubeconfig = clientConfiguration .GetKubeConfig ()
615+ kubeConfig = clientConfiguration .GetKubeConfig ()
612616 }
613617 if haveImpersonationConfiguration {
614618 impersonationUser = impersonationConfiguration .GetImpersonationUser ()
@@ -626,7 +630,7 @@ func (r *Reconciler[T]) getClientForComponent(component T) (cluster.Client, erro
626630 }
627631 }
628632 }
629- clnt , err := r .clients .Get (kubeconfig , impersonationUser , impersonationGroups )
633+ clnt , err := r .clients .Get (kubeConfig , impersonationUser , impersonationGroups )
630634 if err != nil {
631635 return nil , errors .Wrap (err , "error getting remote or impersonated client" )
632636 }
0 commit comments