-
-
Notifications
You must be signed in to change notification settings - Fork 626
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add complete platforms for Google Cloud Functions + auto-infer based …
…on runtime (#21248) Closes #18195, closes #20515. This adds `complete_platforms` for all Google Cloud Functions runtimes and allows automatic selection of those platforms based on the provided runtime. Additionally, the `generate_faas_complete_platforms.py` has been updated to support generating `complete_platforms` JSON files for GCF. One complication while building this is that Google [publishes the runtime image for each version of Python to a separate Docker repository](https://cloud.google.com/functions/docs/concepts/execution-environment#python), so the `known_runtime_docker_repo` abstraction that was used before doesn't work for this case. The way I solved this is by pushing the docker repo field down into `PythonFaaSKnownRuntime` instead, and letting this field be customizable per-runtime. Additionally, the tags used by GCF look like this: `python37_20240728_3_7_17_RC00`. This follows the template of `{runtime}_{date}_{python_version}_{signifier}`. This unfortunately makes it very hard to find the "latest" version of the GCF image for a given runtime, so I had to go into Google Container Registry to find the latest tagged versions for each Python version.
- Loading branch information
1 parent
0db6743
commit 9a1381c
Showing
17 changed files
with
4,479 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.