Revert "SERVICE_BINDINGS_ROOT"

This reverts commit 54c2687d58.
This commit is contained in:
Ben Hale
2020-08-17 16:22:00 -07:00
parent 397eed2da3
commit c167d98dc2

View File

@@ -44,14 +44,14 @@ public final class Bindings {
* The name of the environment variable to read to determine the bindings file system root. Specified by the
* Kubernetes Service Binding Specification.
*/
public static final String SERVICE_BINDINGS_ROOT = "SERVICE_BINDINGS_ROOT";
public static final String SERVICE_BINDING_ROOT = "SERVICE_BINDING_ROOT";
private final List<Binding> bindings;
/**
* Creates a new {@code Bindings} instance, using the {@code $SERVICE_BINDINGS_ROOT} environment variable or the
* Creates a new {@code Bindings} instance, using the {@code $SERVICE_BINDING_ROOT} environment variable or the
* {@code $CNB_BINDINGS} environment variable if it does not exist to determine the file system root. If neither
* the {@code $SERVICE_BINDINGS_ROOT} nor {@code $CNB_BINDINGS} environment variables are set, an empty
* the {@code $SERVICE_BINDING_ROOT} nor {@code $CNB_BINDINGS} environment variables are set, an empty
* {@code Bindings} is returned. If the directory does not exist, an empty {@code Bindings} is returned.
*/
public Bindings() {
@@ -107,7 +107,7 @@ public final class Bindings {
return environment.get(CNB_BINDINGS);
}
return System.getenv(SERVICE_BINDINGS_ROOT);
return System.getenv(SERVICE_BINDING_ROOT);
}
/**