Skip to content

Commit

Permalink
Korrekt url ved bruk av FPApplication fra gcp til fss.
Browse files Browse the repository at this point in the history
  • Loading branch information
espenwaaga committed Apr 24, 2023
1 parent 95e9caa commit d0f7b42
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,10 @@ public static String contextPathFor(FpApplication application) {
if (ENV.isFss()) { // Kaller fra FSS til GCP
return prefix + ".intern" + (ENV.isProd() ? "" : ".dev") + ".nav.no/" + appname;
} else if (ENV.isGcp()) { // Kaller fra GCP til FSS
return prefix + clusterForApplication.clusterName() + "-pub.nais.io/" + appname;
if (FPSAK.equals(application)) {
return prefix + "-api." + clusterForApplication.clusterName() + "-pub.nais.io/" + appname;
}
return prefix + "." + clusterForApplication.clusterName() + "-pub.nais.io/" + appname;
} else {
throw new IllegalStateException("Utviklerfeil: Skal ikke komme hit");
}
Expand Down

0 comments on commit d0f7b42

Please sign in to comment.