mirror of
https://github.com/openfaas/faasd.git
synced 2025-06-23 07:13:23 +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
|
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
|
return true, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user