mirror of
https://github.com/openfaas/faasd.git
synced 2025-06-22 23:03:29 +00:00
mark namespace with label openfaas=1 valid
Signed-off-by: Nitishkumar Singh <nitishkumarsingh71@gmail.com>
This commit is contained in:
committed by
Alex Ellis
parent
d85332be13
commit
1cb5493f72
@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user