Skip to content

Commit

Permalink
add comment 'ConfigException'
Browse files Browse the repository at this point in the history
  • Loading branch information
shinjiro-watanabe authored and hnarimiya committed Nov 29, 2023
1 parent c696bdb commit 9bd6473
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public static KubernetesClientConfig create(final Optional<String> name,
Config extractedSystemConfig = null;
if (systemConfig != null && systemConfig.get("agent.command_executor.type", String.class, "").equals("kubernetes")) {
if (clusterName == null) {
clusterName = systemConfig.get(KUBERNETES_CLIENT_PARAMS_PREFIX + "name", String.class);
clusterName = systemConfig.get(KUBERNETES_CLIENT_PARAMS_PREFIX + "name", String.class); // ConfigException
}
final String keyPrefix = KUBERNETES_CLIENT_PARAMS_PREFIX + clusterName + ".";
extractedSystemConfig = StorageManager.extractKeyPrefix(systemConfig, keyPrefix);
Expand All @@ -37,7 +37,7 @@ public static KubernetesClientConfig create(final Optional<String> name,
Config extractedRequestConfig = null;
if (requestConfig != null && requestConfig.has("kubernetes")) {
if (clusterName == null) {
clusterName = requestConfig.get("name", String.class);
clusterName = requestConfig.get("name", String.class); // ConfigException
}
extractedRequestConfig = requestConfig.getNested("kubernetes");
}
Expand Down

0 comments on commit 9bd6473

Please sign in to comment.