From 1cb5493f72b2bb5b8ec9446cc16f3128934456f3 Mon Sep 17 00:00:00 2001 From: Nitishkumar Singh Date: Mon, 27 Nov 2023 21:07:57 +0800 Subject: [PATCH] mark namespace with label openfaas=1 valid Signed-off-by: Nitishkumar Singh --- pkg/provider/handlers/utils.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/provider/handlers/utils.go b/pkg/provider/handlers/utils.go index b95dc93..65a1372 100644 --- a/pkg/provider/handlers/utils.go +++ b/pkg/provider/handlers/utils.go @@ -39,7 +39,8 @@ func validNamespace(store provider.Labeller, namespace string) (bool, error) { return false, err } - if value, found := labels[pkg.NamespaceLabel]; found && value == "true" { + // check for true to keep it backward compatible + if value, found := labels[pkg.NamespaceLabel]; found && (value == "true" || value == "1") { return true, nil }