Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Mar 2, 2024
1 parent 88020c3 commit 85ee53b
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions pangeo_forge_runner/bakery/flink.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,20 +265,21 @@ def make_flink_deployment(self, name: str, worker_image: str):
"metadata": {
"annotations": {
"prometheus.io/port": "9999",
"prometheus.io/scrape": "true"
"prometheus.io/scrape": "true",
}
},
"spec": {
"containers": [
{
"name": "beam-worker-pool",
"image": worker_image,
"ports": [{
"containerPort": 50000
},{
"containerPort": 9999,
"name": "metrics",
}],
"ports": [
{"containerPort": 50000},
{
"containerPort": 9999,
"name": "metrics",
},
],
"readinessProbe": {
# Don't mark this container as ready until the beam SDK harnass starts
"tcpSocket": {"port": 50000},
Expand All @@ -291,13 +292,15 @@ def make_flink_deployment(self, name: str, worker_image: str):
{
"name": "flink-main-container",
"image": f"flink:{self.flink_version}",
"ports": [{
"containerPort": 9999,
"name": "metrics",
}]
}
"ports": [
{
"containerPort": 9999,
"name": "metrics",
}
],
},
]
}
},
},
},
},
Expand Down

0 comments on commit 85ee53b

Please sign in to comment.