Skip to content

Enable AutoRefreshKubeConfigLoader ExecPlugin support #388

@gregoiregermain

Description

@gregoiregermain

Related to #317

Current behavior

The AutoRefreshKubeConfigLoader overwrites KubeConfigLoader following methods:

  • _load_oid_token
  • load_gcp_token

Get the expiration timestamp of the provided token and create a task than run before the token expiration.
The user authentification method with an executable:

"exec" in self._user

is not supported and the warning in the refresh_after method is not logged because the kubernetes_asyncio KubeConfigLoader._load_from_exec_plugin is not overwritten.

Desired Behavior

We should be able to get the expiration timestamp from the response of the executable and use it to make the auto refresh supporting executable plugin authentification method.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions