@staticmethod<EOL><INDENT>def load_first(auth=None):<DEDENT>
if auth is None:<EOL><INDENT>auth = ClusterAuth.DEFAULT<EOL><DEDENT>elif isinstance(auth, ClusterAuth):<EOL><INDENT>auth = [auth]<EOL><DEDENT>elif isinstance(auth, list):<EOL><INDENT>if not auth:<EOL><INDENT>raise kubernetes.config.ConfigException('<STR_LIT>')<EOL><DEDENT><DEDENT>else:<EOL><INDENT>msg = ("<STR_LIT>"<EOL>"<STR_LIT>")<EOL>raise ValueError(msg)<EOL><DEDENT>auth_exc = None<EOL>for auth_instance in auth:<EOL><INDENT>try:<EOL><INDENT>auth_instance.load()<EOL><DEDENT>except kubernetes.config.ConfigException as exc:<EOL><INDENT>logger.debug('<STR_LIT>', auth_instance.__class__, exc)<EOL>auth_exc = exc<EOL><DEDENT>else:<EOL><INDENT>break<EOL><DEDENT><DEDENT>else:<EOL><INDENT>raise auth_exc<EOL><DEDENT>
Load the first valid configuration in the list *auth*. A single
configuration method can be passed.

Parameters
----------

auth: List[ClusterAuth] (optional)
    Configuration methods to attempt in order.  Defaults to
    ``[InCluster(), KubeConfig()]``.