From 95ab872faf9aae1937e2e28e83d0a3dc0474a3b3 Mon Sep 17 00:00:00 2001 From: Jose Maria Alvarez Fernandez <52029309+jmalvarezf-lmes@users.noreply.github.com> Date: Fri, 12 Nov 2021 14:16:01 +0100 Subject: [PATCH] Update pkg/scalers/gcp_pub_sub_scaler.go Co-authored-by: Herman --- pkg/scalers/gcp_pub_sub_scaler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/scalers/gcp_pub_sub_scaler.go b/pkg/scalers/gcp_pub_sub_scaler.go index d14133ef3e6..dcd0be31e15 100644 --- a/pkg/scalers/gcp_pub_sub_scaler.go +++ b/pkg/scalers/gcp_pub_sub_scaler.go @@ -21,7 +21,7 @@ import ( const ( defaultTargetSubscriptionSize = 5 pubSubStackDriverMetricName = "pubsub.googleapis.com/subscription/num_undelivered_messages" - compositeSubscriptionIDPrefix = "projects/[a-zA-Z0-9-]+/subscriptions/[a-zA-Z0-9-]+" + compositeSubscriptionIDPrefix = "projects/[a-z][a-zA-Z0-9-]*[a-zA-Z0-9]/subscriptions/[a-zA-Z][a-zA-Z0-9-_~%+]*" ) type gcpAuthorizationMetadata struct {