Skip to content

handling of expired kubeconfig #2995

Closed as not planned
Closed as not planned
@kaedwen

Description

@kaedwen

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions