-
Bug
-
Resolution: Done
-
Major
-
None
-
None
When adding/removing environment variables, the openshift-java-client would always request the backend for the full list. This should not be required and avoided
ApplicationResource#addEnvironmentVariable
EnvironmentVariableResourceDTO environmentVariableResourceDTO = new AddEnvironmentVariableRequest().execute(name, value); IEnvironmentVariable environmentVariable = new EnvironmentVariableResource(environmentVariableResourceDTO, this); updateEnvironmentVariables(); return environmentVariable;
ApplicationResource#updateEnvironmentVariables
protected void updateEnvironmentVariables() throws OpenShiftException { if (environmentVariableByName == null) { environmentVariableByName = loadEnvironmentVariables(); } else { environmentVariableByName.clear(); environmentVariableByName.putAll(loadEnvironmentVariables()); } }
- is blocked by
-
OSJC-59 openshift-java-client: add support for List<IEnvironmentVariable> and refactor methods that reference "List" in their names, however are operating on "Map<String,IEnvironmentVariable>", to reference "Map"
- Pull Request Sent