googleapis / googleapis/ruby-cloud-env

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

Offen
#90 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
priority: p3 type: feature request
Vorherrschende Sprache
Ruby
Sterne
16
Forks
12
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.