You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Configuration related classes KubeConfigLoader and InClusterConfigLoader behave differently in the load_and_set method. The first one requires an external Configuration object, which can be either automatically generated or passed explicitly by the user in the load_kube_config function.
Conversely, the InClusterConfigLoader only supports the automatically generated default Configuration object. This does not support situations in which a Python client must connect to both the local Kubernetes cluster and a remote cluster in the same run.
A simple fix would be to harmonize the behaviour of the two objects by passing an explicit config object to the load_and_set method of the InClusterConfigLoader class and a client_configuration object to the load_incluster_config function. Backward compatibility can be ensured by defaulting those parameters to None and keeping the actual behaviour in case of None inputs.
The text was updated successfully, but these errors were encountered:
Configuration related classes
KubeConfigLoader
andInClusterConfigLoader
behave differently in theload_and_set
method. The first one requires an externalConfiguration
object, which can be either automatically generated or passed explicitly by the user in theload_kube_config
function.Conversely, the
InClusterConfigLoader
only supports the automatically generated defaultConfiguration
object. This does not support situations in which a Python client must connect to both the local Kubernetes cluster and a remote cluster in the same run.A simple fix would be to harmonize the behaviour of the two objects by passing an explicit
config
object to theload_and_set
method of theInClusterConfigLoader
class and aclient_configuration
object to theload_incluster_config
function. Backward compatibility can be ensured by defaulting those parameters toNone
and keeping the actual behaviour in case ofNone
inputs.The text was updated successfully, but these errors were encountered: