From 6db89303a824dc9b982034300607f943601201ac Mon Sep 17 00:00:00 2001 From: Felix Kunde Date: Fri, 20 Feb 2026 17:37:53 +0100 Subject: [PATCH] check for other env vars, too --- pkg/cluster/util.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/cluster/util.go b/pkg/cluster/util.go index c56923d90..81e927d94 100644 --- a/pkg/cluster/util.go +++ b/pkg/cluster/util.go @@ -8,6 +8,7 @@ import ( "fmt" "net/http" "reflect" + "regexp" "sort" "strings" "time" @@ -665,7 +666,8 @@ func parseResourceRequirements(resourcesRequirement v1.ResourceRequirements) (ac func isStandbyCluster(spec *acidv1.PostgresSpec) bool { for _, env := range spec.Env { - if env.Name == "STANDBY_WALE_S3_PREFIX" && env.Value != "" { + hasStandbyEnv, _ := regexp.MatchString(`^STANDBY_WALE_(S3|GS|GSC|SWIFT)_PREFIX$`, env.Name) + if hasStandbyEnv && env.Value != "" { return true } }