Skip to content
This repository was archived by the owner on Aug 4, 2023. It is now read-only.

Commit 4b939f4

Browse files
committed
feat: add API Gateway env var by default
1 parent ca52cb2 commit 4b939f4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

flamingo/models/app.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,11 @@ def get_all_env_vars(self) -> List[EnvVar]:
115115
EnvVar(key='GCP_APP_ENDPOINT', value=endpoint, is_secret=False, source=by_flamingo),
116116
])
117117

118+
if self.gateway:
119+
all_vars.extend([
120+
EnvVar(key='GCP_GATEWAY_ENDPOINT', value=self.gateway.gateway_endpoint, is_secret=False, source=by_flamingo),
121+
])
122+
118123
for integrated_app in self.integrated_apps:
119124
try:
120125
app = App.documents.get(name=integrated_app, environment_name=self.environment_name)

0 commit comments

Comments
 (0)