Add in formatting pre-check. (#431)

This commit is contained in:
Brendan Burns
2020-04-22 12:15:45 -07:00
committed by GitHub
parent 56b7f76d6c
commit c1de779933
32 changed files with 125 additions and 81 deletions

View File

@@ -32,7 +32,8 @@ namespace k8s
public static KubernetesClientConfiguration InClusterConfig()
{
if (!IsInCluster()) {
if (!IsInCluster())
{
throw new KubeConfigException(
"unable to load in-cluster configuration, KUBERNETES_SERVICE_HOST and KUBERNETES_SERVICE_PORT must be defined");
}