io.fabric8.kubernetes.client.utils.Utils.convertSystemPropertyNameToEnvVar()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(2.4k)|赞(0)|评价(0)|浏览(139)

本文整理了Java中io.fabric8.kubernetes.client.utils.Utils.convertSystemPropertyNameToEnvVar()方法的一些代码示例,展示了Utils.convertSystemPropertyNameToEnvVar()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Utils.convertSystemPropertyNameToEnvVar()方法的具体详情如下:
包路径:io.fabric8.kubernetes.client.utils.Utils
类名称:Utils
方法名:convertSystemPropertyNameToEnvVar

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);
 }
}

相关文章