[Feature] Provide high-level methods for identifying cloud run and cloud functions
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
Research direction
Start with the Google::Cloud::Env class and its existing high-level semantic query methods. Review how the listed environment variables, functions framework, and SMBIOS information distinguish Cloud Functions and Cloud Run generations. Done means providing methods that identify each listed hosting environment and validating them against those criteria.
Written by the indexing model from the issue text.
Description
In the design of this library, class methods of Google::Cloud::Env are generally used for high-level semantic queries, such as "am I running on Cloud Run?"
We should provide some of these for the modern hosting environments such as Cloud Run and Cloud Functions. I believe some criteria that can be used include:
- GCF first gen:
GAE_RUNTIME,K_SERVICE,K_REVISIONset, and functions framework present - GCF second gen:
GAE_RUNTIME,K_SERVICE,K_REVISION,K_CONFIGURATIONset, and functions framework present - GCR first gen:
K_SERVICE,K_REVISION,K_CONFIGURATIONset, smbios info absent - GCR second gen:
K_SERVICE,K_REVISION,K_CONFIGURATIONset, smbios info present
- Dominant language
- Ruby
- Stars
- 16
- Forks
- 12
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from googleapis/ruby-cloud-env
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
googleapis/ruby-cloud-env#112 ·
-
Difficulty 1/5 1-3 hours Newbie friendliness 78/100
googleapis/ruby-cloud-env#111 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 72/100
googleapis/ruby-cloud-env#110 · 1 comment ·
-
Dependency Dashboard Opentype: process
Difficulty 4/5 3-5 days Newbie friendliness 20/100
googleapis/ruby-cloud-env#22 ·
All issues in googleapis/ruby-cloud-env
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
TheOdinProject/curriculum#31417 · 2 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
glossarist/glossarist-ruby#238 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
palladius/rails8-app-on-gcp#145 ·