Skip to content

Commit

Permalink
Fikset resterende proxier i crashbackloop
Browse files Browse the repository at this point in the history
#deploy-proxy
  • Loading branch information
stigus committed Oct 20, 2023
1 parent a424ac5 commit 4801f47
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ private static ArenaServerProperties copyOf(ArenaServerProperties original) {
ArenaServerProperties forEnvironment(String env) {

var copy = copyOf(this);
copy.setUrl(copy.getUrl().replace("{env}", env));
copy.setName(copy.getName().replace("{env}", env));
copy.setUrl(copy.getUrl().replace("TEMP", env));
copy.setName(copy.getName().replace("TEMP", env));
return copy;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ spring:
app:
arena:
services:
name: arena-services-{env}
name: arena-services-TEMP
namespace: teamarenanais
url: http://arena-ords-{env}.teamarenanais.svc.nais.local
url: http://arena-ords-TEMP.teamarenanais.svc.nais.local
cluster: dev-fss
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ private static SamboerTestdataProperties copyOf(SamboerTestdataProperties origin
public SamboerTestdataProperties forEnvironment(String env) {

var copy = copyOf(this);
copy.setUrl(copy.getUrl().replace("{env}", env + ("q1".equals(env) ? ".very" : "")));
copy.setName(copy.getName().replace("{env}", env));
copy.setUrl(copy.getUrl().replace("TEMP", env + ("q1".equals(env) ? ".very" : "")));
copy.setName(copy.getName().replace("TEMP", env));
return copy;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ consumers:
url: https://popp-testdata.intern.dev.nav.no
cluster: dev-gcp
samboer-testdata:
name: pensjon-samboerforhold-backend-{env}
name: pensjon-samboerforhold-backend-TEMP
namespace: pensjon-person
url: https://pensjon-samboerforhold-backend-{env}.intern.dev.nav.no
url: https://pensjon-samboerforhold-backend-TEMP.intern.dev.nav.no
cluster: dev-gcp
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ private static SafProperties copyOf(SafProperties original) {
public ServerProperties forEnvironment(String env) {
var replacement = "q2".equals(env) ? "" : '-' + env;
var copy = SafProperties.copyOf(this);
copy.setUrl(copy.getUrl().replace("-{env}", replacement));
copy.setName(copy.getName().replace("-{env}", replacement));
copy.setUrl(copy.getUrl().replace("-TEMP", replacement));
copy.setName(copy.getName().replace("-TEMP", replacement));
return copy;
}

Expand Down
4 changes: 2 additions & 2 deletions proxies/saf-proxy/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ spring:

consumers:
saf:
url: http://saf-{env}.teamdokumenthandtering.svc.nais.local
url: http://saf-TEMP.teamdokumenthandtering.svc.nais.local
cluster: dev-fss
name: saf-{env}
name: saf-TEMP
namespace: teamdokumenthandtering

0 comments on commit 4801f47

Please sign in to comment.