Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

[Feature] Provide high-level methods for identifying cloud run and cloud functions

Open
#90 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
google-cloud, ruby
Domain
cloud

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

priority: p3 type: feature request

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_REVISION set, and functions framework present
  • GCF second gen: GAE_RUNTIME, K_SERVICE, K_REVISION, K_CONFIGURATION set, and functions framework present
  • GCR first gen: K_SERVICE, K_REVISION, K_CONFIGURATION set, smbios info absent
  • GCR second gen: K_SERVICE, K_REVISION, K_CONFIGURATION set, smbios info present
Dominant language
Ruby
Stars
16
Forks
12
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from googleapis/ruby-cloud-env

All issues in googleapis/ruby-cloud-env

Similar issues

More Ruby issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.