Skip to content

Commit

Permalink
KAIZEN-0 Gå mot oppgave API i default namespace i Q1
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexGaard committed Nov 25, 2019
1 parent af3bb75 commit 67679b6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,16 @@ public static void main(String... args) {
setProperty(VEILARBARENA_API_PROPERTY_NAME, lagClusterUrl(VEILARBARENA));
setProperty(SAF_API_PROPERTY_NAME, lagClusterUrl(SAF,false));
setProperty(VEILARBOPPFOLGING_API_PROPERTY_NAME, lagClusterUrl(VEILARBOPPFOLGING));
setProperty(OPPGAVE_API_PROPERTY_NAME, lagClusterUrl(OPPGAVE, false));

// PAM CV finnes ikke i Q1, gå mot Q6 istedenfor
// Oppgave i Q1 ligger på default namespace
if (EnvironmentUtils.requireEnvironmentName().equalsIgnoreCase("q1")) {
String pamCVUrl = lagClusterUrl(PAM_CV_API).replace("q1", "q6");
setProperty(CV_API_PROPERTY_NAME, pamCVUrl);
setProperty(OPPGAVE_API_PROPERTY_NAME, "https://oppgave.nais.preprod.local");
} else {
setProperty(CV_API_PROPERTY_NAME, lagClusterUrl(PAM_CV_API));
setProperty(OPPGAVE_API_PROPERTY_NAME, lagClusterUrl(OPPGAVE, false));
}

NaisUtils.Credentials oracleCreds = getCredentials("oracle_creds");
Expand Down

0 comments on commit 67679b6

Please sign in to comment.