1cb5493f72
mark namespace with label openfaas=1 valid
...
Signed-off-by: Nitishkumar Singh <nitishkumarsingh71@gmail.com >
2023-11-29 16:40:38 +00:00
a2ea804d2c
Handled list secrets for no secret in namespaces
...
Signed-off-by: Nitishkumar Singh <nitishkumarsingh71@gmail.com >
Test case included for default and non-default
Signed-off-by: Nitishkumar Singh <nitishkumarsingh71@gmail.com >
Changed Fake Labeller Implementation
Signed-off-by: Nitishkumar Singh <nitishkumarsingh71@gmail.com >
2022-01-19 18:05:56 +00:00
5aa4c69e03
Inline namespace check and create const for label
...
* Inlines the namespace check for valid faasd namespaces
* Creates a const for the namespace label applied to faasd
namespaces
Tested with go build and go test.
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com >
2021-09-16 10:43:21 +01:00
12b5e8ca7f
Add check for namespace label openfaas=true
...
This commit adds the checks that the namespace supplied by the user has
the `openfaas=true` label. Without this check the user can
deploy/update/read functions in any namespace using the CLI.
The UI is not effected because it calls the listnamesaces endpoint,
which has the check for the label
Signed-off-by: Alistair Hey <alistair@heyal.co.uk >
2021-09-16 10:37:32 +01:00
dec02f3240
Enable multi namespace support
...
Signed-off-by: Nitishkumar Singh <nitishkumarsingh71@gmail.com >
Included Test cases for utils
Signed-off-by: Nitishkumar Singh <nitishkumarsingh71@gmail.com >
Multi namespace handling in invoke
Signed-off-by: Nitishkumar Singh <nitishkumarsingh71@gmail.com >
List Namespaces capability included
Signed-off-by: Nitishkumar Singh <nitishkumarsingh71@gmail.com >
remove faasd namespace from list result
Signed-off-by: Nitishkumar Singh <nitishkumarsingh71@gmail.com >
Create Secret Folder Path
Signed-off-by: Nitishkumar Singh <nitishkumarsingh71@gmail.com >
Filter only namespaces with openfass label
Signed-off-by: Nitishkumar Singh <nitishkumarsingh71@gmail.com >
Include Testcase for utility function
Signed-off-by: Nitishkumar Singh <nitishkumarsingh71@gmail.com >
move default function secets to openfaas-fn namespace secrets
Signed-off-by: Nitishkumar Singh <nitishkumarsingh71@gmail.com >
Corrected issue with secret moving
Signed-off-by: Nitishkumar Singh <nitishkumarsingh71@gmail.com >
2021-09-15 12:47:52 +01:00