本文整理了Java中io.fabric8.kubernetes.client.utils.Utils.convertSystemPropertyNameToEnvVar()
方法的一些代码示例,展示了Utils.convertSystemPropertyNameToEnvVar()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Utils.convertSystemPropertyNameToEnvVar()
方法的具体详情如下:
包路径:io.fabric8.kubernetes.client.utils.Utils
类名称:Utils
方法名:convertSystemPropertyNameToEnvVar
暂无
代码示例来源:origin: fabric8io/kubernetes-client
public static String getSystemPropertyOrEnvVar(String systemPropertyName, String defaultValue) {
return getSystemPropertyOrEnvVar(systemPropertyName, convertSystemPropertyNameToEnvVar(systemPropertyName), defaultValue);
}
代码示例来源:origin: fabric8io/kubernetes-client
public BaseClient(final OkHttpClient httpClient, Config config) throws KubernetesClientException {
try {
this.httpClient = httpClient;
this.namespace = config.getNamespace();
this.configuration = config;
this.apiVersion = config.getApiVersion();
if (config.getMasterUrl() == null) {
throw new KubernetesClientException("Unknown Kubernetes master URL - " +
"please set with the builder, or set with either system property \"" + Config.KUBERNETES_MASTER_SYSTEM_PROPERTY + "\"" +
" or environment variable \"" + Utils.convertSystemPropertyNameToEnvVar(Config.KUBERNETES_MASTER_SYSTEM_PROPERTY) + "\"");
}
this.masterUrl = new URL(config.getMasterUrl());
} catch (Exception e) {
throw KubernetesClientException.launderThrowable(e);
}
}
代码示例来源:origin: org.domeos/kubernetes-client
public static String getSystemPropertyOrEnvVar(String systemPropertyName, String defaultValue) {
return getSystemPropertyOrEnvVar(systemPropertyName, convertSystemPropertyNameToEnvVar(systemPropertyName), defaultValue);
}
代码示例来源:origin: org.domeos/kubernetes-client
public BaseClient(final OkHttpClient httpClient, Config config) throws KubernetesClientException {
try {
this.httpClient = httpClient;
this.namespace = config.getNamespace();
this.configuration = config;
this.apiVersion = config.getApiVersion();
if (config.getMasterUrl() == null) {
throw new KubernetesClientException("Unknown Kubernetes master URL - " +
"please set with the builder, or set with either system property \"" + Config.KUBERNETES_MASTER_SYSTEM_PROPERTY + "\"" +
" or environment variable \"" + Utils.convertSystemPropertyNameToEnvVar(Config.KUBERNETES_MASTER_SYSTEM_PROPERTY) + "\"");
}
this.masterUrl = new URL(config.getMasterUrl());
} catch (Exception e) {
throw KubernetesClientException.launderThrowable(e);
}
}
内容来源于网络,如有侵权,请联系作者删除!