From b9d25938dd8612572ff301d81f82fcf4d0626d61 Mon Sep 17 00:00:00 2001 From: Bogdan Novykov Chumak Date: Fri, 21 Jun 2024 17:39:08 +0200 Subject: [PATCH] chore: metadata gce cloud run comment --- compute/metadata/metadata.go | 1 + 1 file changed, 1 insertion(+) diff --git a/compute/metadata/metadata.go b/compute/metadata/metadata.go index f67e3c7eeae0..cbdea5e61807 100644 --- a/compute/metadata/metadata.go +++ b/compute/metadata/metadata.go @@ -111,6 +111,7 @@ var ( ) // OnGCE reports whether this process is running on Google Compute Engine. +// Works for Cloud Run as well. func OnGCE() bool { onGCEOnce.Do(initOnGCE) return onGCE