Skip to content

Commit a4689ff

Browse files
author
Jan Markmann
committed
Renamed AutoConfig() to LoadFromDefault() and swapped config file vs incluster-config precedence according to existing JS client implementation.
1 parent 0422c84 commit a4689ff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/KubernetesClient/Config.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,12 +177,12 @@ public static function shutdown()
177177
* @return Config
178178
* @throws \Exception If no config can be found at at all the default paths.
179179
*/
180-
public static function AutoConfig()
180+
public static function LoadFromDefault()
181181
{
182182
try {
183-
return self::InClusterConfig();
184-
} catch (\Exception $e) {
185183
return self::BuildConfigFromFile();
184+
} catch (\Exception $e) {
185+
return self::InClusterConfig();
186186
}
187187
}
188188

0 commit comments

Comments
 (0)