Skip to content

Commit

Permalink
fix: ORV2-2335 - Set openshift route timeout to 2m (#1415)
Browse files Browse the repository at this point in the history
Co-authored-by: Chris Berg <[email protected]>
  • Loading branch information
praju-aot and cberg-aot authored Jun 4, 2024
1 parent 17ba40a commit 1003752
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions charts/onroutebc/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ vehicles:
ingress:
className: openshift-default
annotations:
haproxy.router.openshift.io/timeout: 2m
route.openshift.io/termination: "edge"
enabled: true
hosts:
Expand Down Expand Up @@ -361,6 +362,7 @@ dops:
ingress:
className: openshift-default
annotations:
haproxy.router.openshift.io/timeout: 2m
route.openshift.io/termination: "edge"
enabled: true
hosts:
Expand Down
3 changes: 2 additions & 1 deletion dops/src/helper/gov-common-services.helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ export async function getAccessToken(
);
});

token.expires_at = Date.now() + (token.expires_in - TOKEN_EXPIRY_BUFFER) * 1000;
token.expires_at =
Date.now() + (token.expires_in - TOKEN_EXPIRY_BUFFER) * 1000;

await cacheManager.set(tokenCacheKey, token);

Expand Down

0 comments on commit 1003752

Please sign in to comment.