public static String getPropertyOrEnvironmentVariable(String property, String defaultValue) { return getPropertyOrEnvironmentVariable(property, propertyToEnvironmentVariableName(property), defaultValue); }
private Map<String, String> createBasicTemplateParameters() { Map<String, String> env = new HashMap<>(); env.putAll(System.getenv()); env.putAll(configuration.getScriptEnvironmentVariables()); env.put(propertyToEnvironmentVariableName(Configuration.KUBERNETES_NAMESPACE), configuration.getNamespace()); env.put(propertyToEnvironmentVariableName(Configuration.KUBERNETES_DOMAIN), configuration.getKubernetesDomain()); env.put(propertyToEnvironmentVariableName(Configuration.KUBERNETES_MASTER), configuration.getMasterUrl().toString()); env.put(propertyToEnvironmentVariableName(Configuration.DOCKER_REGISTY), configuration.getDockerRegistry()); return env; } }
public static String getPropertyOrEnvironmentVariable(String property, String defaultValue) { return getPropertyOrEnvironmentVariable(property, propertyToEnvironmentVariableName(property), defaultValue); }
/** * Creates the environment variables, that will be passed to the shell script (startup, teardown). */ private Map<String, String> createScriptEnvironment() { Map<String, String> env = new HashMap<>(); env.putAll(System.getenv()); env.putAll(configuration.getScriptEnvironmentVariables()); env.put(propertyToEnvironmentVariableName(Configuration.KUBERNETES_NAMESPACE), configuration.getNamespace()); env.put(propertyToEnvironmentVariableName(Configuration.KUBERNETES_DOMAIN), configuration.getKubernetesDomain()); env.put(propertyToEnvironmentVariableName(Configuration.KUBERNETES_MASTER), configuration.getMasterUrl().toString()); env.put(propertyToEnvironmentVariableName(Configuration.DOCKER_REGISTY), configuration.getDockerRegistry()); return env; }
/** * Creates the environment variables, that will be passed to the shell script (startup, teardown). */ private Map<String, String> createScriptEnvironment() { Map<String, String> env = new HashMap<>(); env.putAll(System.getenv()); env.putAll(configuration.getScriptEnvironmentVariables()); env.put(propertyToEnvironmentVariableName(Configuration.KUBERNETES_NAMESPACE), configuration.getNamespace()); env.put(propertyToEnvironmentVariableName(Configuration.KUBERNETES_DOMAIN), configuration.getKubernetesDomain()); env.put(propertyToEnvironmentVariableName(Configuration.KUBERNETES_MASTER), configuration.getMasterUrl().toString()); env.put(propertyToEnvironmentVariableName(Configuration.DOCKER_REGISTY), configuration.getDockerRegistry()); return env; }