Skip to content

Commit

Permalink
LPD-27028 Remove UAT/DEV/LRDCOM cluster settings and add INTERNAL
Browse files Browse the repository at this point in the history
  • Loading branch information
marcellustavares authored and brianchandotcom committed May 29, 2024
1 parent bd268b6 commit 237d81e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,14 @@ public static Map<String, String> getLocations() {

private static final Map<String, String> _locations = HashMapBuilder.put(
"AS1", LCPProject.Cluster.AS1.toString()
).put(
"DEV", LCPProject.Cluster.DEV.toString()
).put(
"EU2", LCPProject.Cluster.EU2.toString()
).put(
"EU3", LCPProject.Cluster.EU3.toString()
).put(
"SA", LCPProject.Cluster.SA.toString()
"INTERNAL", LCPProject.Cluster.INTERNAL.toString()
).put(
"UAT", LCPProject.Cluster.UAT.toString()
"SA", LCPProject.Cluster.SA.toString()
).put(
"US", LCPProject.Cluster.US.toString()
).build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,23 +105,17 @@ public void setStatus(String status) {
public enum Cluster {

AS1("ac-asiasouth1", "asia-south1-ac5-c1"),
DEV("ac-asahdev", "us-west1-ac-uat-c1-2"),
EU2("ac-europewest2", "europe-west2-ac2-c1"),
EU3("ac-europewest3", "europe-west3-ac3-c1"),
INTERNAL("ac-internal", "us-west1-ac-uat-c1"),
SA("ac-southamericaeast1", "southamerica-east1-ac1-c1"),
UAT("ac-asahuat", "us-west1-ac-uat-c1"),
US("ac-uswest1", "us-west1-ac4-c1"),
US_LRDCOM("ac-uswest1", "us-west1-ac4-c1-2");
US("ac-uswest1", "us-west1-ac4-c1");

public static Cluster fromString(String value) {
if (StringUtil.equals(value, Cluster.AS1._value)) {
return Cluster.AS1;
}

if (StringUtil.equals(value, Cluster.DEV._value)) {
return Cluster.DEV;
}

if (StringUtil.equals(value, Cluster.EU2._value)) {
return Cluster.EU2;
}
Expand All @@ -130,22 +124,18 @@ public static Cluster fromString(String value) {
return Cluster.EU3;
}

if (StringUtil.equals(value, Cluster.SA._value)) {
return Cluster.SA;
if (StringUtil.equals(value, Cluster.INTERNAL._value)) {
return Cluster.INTERNAL;
}

if (StringUtil.equals(value, Cluster.UAT._value)) {
return Cluster.UAT;
if (StringUtil.equals(value, Cluster.SA._value)) {
return Cluster.SA;
}

if (StringUtil.equals(value, Cluster.US._value)) {
return Cluster.US;
}

if (StringUtil.equals(value, Cluster.US_LRDCOM._value)) {
return Cluster.US_LRDCOM;
}

return null;
}

Expand Down

0 comments on commit 237d81e

Please sign in to comment.