Skip to content

Commit 6494694

Browse files
authored
PTFE-1144 gcloud runner monitoring and logging scopes (#513)
1 parent 2d6b7bd commit 6494694

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

runner_manager/backend/gcloud.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
NetworkInterface,
2020
Operation,
2121
Scheduling,
22+
ServiceAccount,
2223
ZoneOperationsClient,
2324
)
2425
from pydantic import Field
@@ -140,6 +141,15 @@ def configure_instance(self, runner: Runner) -> Instance:
140141
enable_nested_virtualization=self.instance_config.enable_nested_virtualization
141142
),
142143
scheduling=self.scheduling,
144+
service_accounts=[
145+
ServiceAccount(
146+
email="default",
147+
scopes=[
148+
"https://www.googleapis.com/auth/logging.write",
149+
"https://www.googleapis.com/auth/monitoring.write",
150+
],
151+
)
152+
],
143153
)
144154

145155
def _sanitize_label_value(self, value: str) -> str:

0 commit comments

Comments
 (0)