Description
Hi,
we do have many operators, one of it is using the cluster
struct for having a connection to an additional remote cluster. The rest.Config
we do load out of a mounted secret during startup. Now I wonder if there is a mechanism to renew the config in use once the secret mount path changes. Sure we can watch that mountpoint (we do that in many other places), but is there a way to change the config of a running client?
I also do wonder how the InClusterConfig
is renewed. The coding here just reads the serviceaccount token and never does a reload. But the tokens do have an expiry, so how this is considered to work? Sure the default expiry is 1 year, but it could not be the assumption that the controller will anyway restart at some time.
Regards